mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2025-02-22 20:20:00 +00:00
refactor(resources): use relative links (#245)
This commit is contained in:
parent
3788f6d46d
commit
fa5f2aed89
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
|
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
|
||||||
<link href="{{ $style.Permalink }}" rel="stylesheet">
|
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
|
||||||
{{ if .Site.Params.publicCDN.enable -}}
|
{{ if .Site.Params.publicCDN.enable -}}
|
||||||
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
|
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
{{ $even := resources.Get "js/even.js" }}
|
{{ $even := resources.Get "js/even.js" }}
|
||||||
{{ $main := resources.Get "js/main.js" }}
|
{{ $main := resources.Get "js/main.js" }}
|
||||||
{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }}
|
{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }}
|
||||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
<script type="text/javascript" src="{{ $js.RelPermalink }}"></script>
|
||||||
|
|
||||||
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
|
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in a new issue