mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
Use relURL
where possible
This commit is contained in:
parent
6562adeb7b
commit
2c664160b0
3 changed files with 6 additions and 6 deletions
|
@ -48,8 +48,8 @@
|
||||||
</p>
|
</p>
|
||||||
<p>{{T "message-404"}}</p>
|
<p>{{T "message-404"}}</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<p><a href="{{.Site.BaseURL}}">{{T "Go-to-homepage"}}</a></p>
|
<p><a href='{{ "" | relURL }}'>{{T "Go-to-homepage"}}</a></p>
|
||||||
<p><img src="{{ .Site.BaseURL }}/images/gopher-404.jpg" style="width:50%"></img></p>
|
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%"></img></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{{ if .Site.IsMultiLingual }}
|
{{ if .Site.IsMultiLingual }}
|
||||||
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
|
var baseurl = "{{.Site.LanguagePrefix | relURL }}";
|
||||||
{{ else }}
|
{{ else }}
|
||||||
var baseurl = "{{.Site.BaseURL}}";
|
var baseurl = '{{ "" | relURL }}';
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{{if ($.Get "pattern")}}
|
{{if ($.Get "pattern")}}
|
||||||
{{if (findRE ($.Get "pattern") .Name)}}
|
{{if (findRE ($.Get "pattern") .Name)}}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ printf "%s/%s%s/%s" $.Site.BaseURL $fileDir ($.Scratch.Get "filesName") .Name }}" >
|
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
|
||||||
{{.Name}}
|
{{.Name}}
|
||||||
</a>
|
</a>
|
||||||
({{div .Size 1024 }} ko)
|
({{div .Size 1024 }} ko)
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ printf "%s/%s%s/%s" $.Site.BaseURL $fileDir ($.Scratch.Get "filesName") .Name }}" >
|
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
|
||||||
{{.Name}}
|
{{.Name}}
|
||||||
</a>
|
</a>
|
||||||
({{div .Size 1024 }} ko)
|
({{div .Size 1024 }} ko)
|
||||||
|
|
Loading…
Add table
Reference in a new issue