mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +00:00
Render asset urls to absURL (#47)
This commit is contained in:
parent
a1de3cf3aa
commit
71a72311ac
2 changed files with 9 additions and 10 deletions
|
@ -103,9 +103,9 @@
|
|||
|
||||
{{ if .Site.Params.localTime }}
|
||||
<p>My current local time is <span id="time"></span>.</p>
|
||||
<script type="text/javascript" src="/js/moment.js"></script>
|
||||
<script type="text/javascript" src="/js/moment-timezone.js"></script>
|
||||
<script type="text/javascript" src="/js/moment-timezone-with-data-2012-2022.js"></script>
|
||||
<script type="text/javascript" src={{ "js/moment.js" | absURL }}></script>
|
||||
<script type="text/javascript" src={{ "js/moment-timezone.js" | absURL }}></script>
|
||||
<script type="text/javascript" src={{ "js/moment-timezone-with-data-2012-2022.js" | absURL }}></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
|
|
@ -34,17 +34,16 @@
|
|||
{{ end }}
|
||||
|
||||
<!-- jQuery -->
|
||||
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script type="text/javascript" src={{ "js/jquery-3.3.1.min.js"| absURL }}></script>
|
||||
|
||||
<!-- Fonts and icon CSS -->
|
||||
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="/css/nunito_sans.css">
|
||||
<link rel="stylesheet" href={{ "css/font-awesome.min.css" | absURL }}>
|
||||
<link rel="stylesheet" href={{ "css/nunito_sans.css" | absURL }}>
|
||||
|
||||
{{ if .Site.Params.cacheBuster }}
|
||||
{{ $t := now.Unix }}
|
||||
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}">
|
||||
<link rel="stylesheet" href="{{ (printf "css/%s-style.css?t=%d" (.Site.Params.themeStyle | default "dark") now.Unix) |relURL }}">
|
||||
{{ else }}
|
||||
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css">
|
||||
<link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
<!-- Custom css -->
|
||||
|
@ -53,7 +52,7 @@
|
|||
{{- end }}
|
||||
|
||||
<!-- Icon -->
|
||||
<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" }}">
|
||||
<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" | absURL }}">
|
||||
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
|
|
Loading…
Reference in a new issue