mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
variant: cache variant config #679
This commit is contained in:
parent
ff978f3be1
commit
1119b3f9a6
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $siteLanguages := .Site.Languages }}
|
{{- $siteLanguages := .Site.Languages }}
|
||||||
{{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
|
{{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
|
||||||
{{- $themevariants := partial "get-theme-variants.hugo" . }}
|
{{- $themevariants := partialCached "get-theme-variants.hugo" . }}
|
||||||
{{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
|
{{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
|
||||||
{{- $footer := partial "menu-footer.html" . }}
|
{{- $footer := partial "menu-footer.html" . }}
|
||||||
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
|
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"></noscript>
|
<link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"></noscript>
|
||||||
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
{{- $themevariants := partial "get-theme-variants.hugo" . }}
|
{{- $themevariants := partialCached "get-theme-variants.hugo" . }}
|
||||||
{{- with index $themevariants 0 }}
|
{{- with index $themevariants 0 }}
|
||||||
<link href="{{(printf "css/chroma-%s.css" .chroma) | safeHTML | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" id="R-variant-chroma-style">
|
<link href="{{(printf "css/chroma-%s.css" .chroma) | safeHTML | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" id="R-variant-chroma-style">
|
||||||
<link href="{{(printf "css/theme-%s.css" .identifier) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" id="R-variant-style">
|
<link href="{{(printf "css/theme-%s.css" .identifier) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" id="R-variant-style">
|
||||||
|
|
Loading…
Reference in a new issue