diff options
author | Episteme Health Inc <ehi-git@epistemehealth.com> | 2020-07-23 06:48:55 +0300 |
---|---|---|
committer | Episteme Health Inc <ehi-git@epistemehealth.com> | 2020-07-23 06:48:55 +0300 |
commit | 7e1f2322f75336b5f691effa4f52a374e8976429 (patch) | |
tree | 0e9f6955d77fa80b32d13d0513aaa75cf12f7314 | |
parent | 1f34e447b9f7eca0c3a873d1baaef940aa59388d (diff) |
use absURL
-rw-r--r-- | layouts/article/single.galleypdf.html | 2 | ||||
-rw-r--r-- | layouts/article/single.galleyxml.html | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/layouts/article/single.galleypdf.html b/layouts/article/single.galleypdf.html index 13ac67c..8264c9e 100644 --- a/layouts/article/single.galleypdf.html +++ b/layouts/article/single.galleypdf.html @@ -26,7 +26,7 @@ Download </div> </div> <div id="pdfCanvasContainer" class="pdf-frame"> -<iframe src="{{ .Site.BaseURL}}/pdfViewer/viewer.html?file={{ .Permalink }}{{ .Page.Params.PDF }}" width="100%" height="100%" style="min-height: 500px;" allowfullscreen webkitallowfullscreen></iframe> +<iframe src="{{ "pdfViewer/viewer.html" | absURL }}?file={{ .Permalink }}{{ .Page.Params.PDF }}" width="100%" height="100%" style="min-height: 500px;" allowfullscreen webkitallowfullscreen></iframe> </div> </body> </html>
\ No newline at end of file diff --git a/layouts/article/single.galleyxml.html b/layouts/article/single.galleyxml.html index 785e28c..78044f1 100644 --- a/layouts/article/single.galleyxml.html +++ b/layouts/article/single.galleyxml.html @@ -3,14 +3,14 @@ <head>{{ partial "favicon.html" . }} {{ partial "relcanonical.html" . }} <title>Lens Viewer: {{ .Title }} | {{ .Site.Title }}</title> - <link href='{{ if eq .Site.Params.useCDN true }}https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic{{ else }}{{ .Site.BaseURL }}/css/lensfonts.css{{ end }}' rel='stylesheet' type='text/css'> + <link href='{{ if eq .Site.Params.useCDN true }}https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic{{ else }}{{ "css/lensfonts.css" | absURL }}{{ end }}' rel='stylesheet' type='text/css'> - <link rel="stylesheet" type="text/css" media="all" href="{{ if eq .Site.Params.useCDN true }}https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css{{ else }}{{ .Site.BaseURL }}/fa/css/all.min.css{{ end }}" /> + <link rel="stylesheet" type="text/css" media="all" href="{{ if eq .Site.Params.useCDN true }}https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css{{ else }}{{ "fa/css/all.min.css" | absURL }}{{ end }}" /> <!-- A combined lens.css will be generated in the bundling process --> <!-- While in development, separate links for each CSS file are added, so we don't need a source map --> - <link href='{{ .Site.BaseURL }}/css/lens.css' rel='stylesheet' type='text/css'/> - <script src="{{ .Site.BaseURL }}/js/jquery-3.5.1.min.js"></script> + <link href='{{ "css/lens.css" | absURL }}' rel='stylesheet' type='text/css'/> + <script src="{{ "js/jquery-3.5.1.min.js" | absURL }}"></script> <!-- MathJax Configuration --> <script type="text/x-mathjax-config"> @@ -21,9 +21,9 @@ styles: {".MathJax_Display": {padding: "0em 0em 0em 3em" },".MathJax_SVG_Display": {padding: "0em 0em 0em 3em" }} }); </script> - <script type="text/javascript" src="{{ if eq .Site.Params.useCDN true }}https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.5/es5/startup.js{{ else }}{{ .Site.BaseURL }}/MathJax/startup.js{{ end }}"></script> + <script type="text/javascript" src="{{ if eq .Site.Params.useCDN true }}https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.5/es5/startup.js{{ else }}{{ "MathJax/startup.js" | absURL }}{{ end }}"></script> - <script src='{{ .Site.BaseURL }}/js/customlens.js'></script> + <script src='{{ "js/customlens.js" | absURL }}'></script> <script> |