mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
task: adhere to established naming standard
This commit is contained in:
parent
9527cd17bb
commit
239ae4ed64
2 changed files with 7 additions and 7 deletions
|
@ -52,8 +52,8 @@ Generator run:
|
||||||
{{- $light := index $themevariant.auto 0 | default (index $defaultautothemevariants 0) }}
|
{{- $light := index $themevariant.auto 0 | default (index $defaultautothemevariants 0) }}
|
||||||
{{- $dark := index $themevariant.auto 1 | default (index $defaultautothemevariants 1) }}
|
{{- $dark := index $themevariant.auto 1 | default (index $defaultautothemevariants 1) }}
|
||||||
{{- $themevariant = collections.Merge $themevariant (dict "auto" (slice | append $light | append $dark)) }}
|
{{- $themevariant = collections.Merge $themevariant (dict "auto" (slice | append $light | append $dark)) }}
|
||||||
{{- $lightthemevariant := partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $light) }}
|
{{- $lightthemevariant := partial "inline/get-theme-details" (dict "themevariant" $themevariant "identifier" $light) }}
|
||||||
{{- $darkthemevariant := partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $dark) }}
|
{{- $darkthemevariant := partial "inline/get-theme-details" (dict "themevariant" $themevariant "identifier" $dark) }}
|
||||||
{{- $formathtmlpre = print $formathtmlpre
|
{{- $formathtmlpre = print $formathtmlpre
|
||||||
":not([data-r-theme-variant='" $themevariant.identifier "'])"
|
":not([data-r-theme-variant='" $themevariant.identifier "'])"
|
||||||
}}
|
}}
|
||||||
|
@ -70,7 +70,7 @@ Generator run:
|
||||||
"\n}"
|
"\n}"
|
||||||
}}
|
}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $themevariant = partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $themevariant.identifier)}}
|
{{- $themevariant = partial "inline/get-theme-details" (dict "themevariant" $themevariant "identifier" $themevariant.identifier)}}
|
||||||
{{- $formathtmlpre = print $formathtmlpre
|
{{- $formathtmlpre = print $formathtmlpre
|
||||||
":not([data-r-theme-variant='" $themevariant.identifier "'])"
|
":not([data-r-theme-variant='" $themevariant.identifier "'])"
|
||||||
}}
|
}}
|
||||||
|
@ -87,7 +87,7 @@ Generator run:
|
||||||
{{- /*
|
{{- /*
|
||||||
- Read default stuff
|
- Read default stuff
|
||||||
*/}}
|
*/}}
|
||||||
{{- $defaultthemevariant := partial "get-theme-details.html" (dict "themevariant" (dict) "identifier" "relearn-light") }}
|
{{- $defaultthemevariant := partial "inline/get-theme-details" (dict "themevariant" (dict) "identifier" "relearn-light") }}
|
||||||
{{- $nucleuscontent := "" }}
|
{{- $nucleuscontent := "" }}
|
||||||
{{- with resources.Get "css/nucleus.css" }}
|
{{- with resources.Get "css/nucleus.css" }}
|
||||||
{{- $nucleuscontent = .Content }}
|
{{- $nucleuscontent = .Content }}
|
||||||
|
@ -212,7 +212,7 @@ Generator run:
|
||||||
|
|
||||||
{{- return $themevariants }}
|
{{- return $themevariants }}
|
||||||
|
|
||||||
{{- define "partials/get-theme-details.html" }}
|
{{- define "partials/inline/get-theme-details" }}
|
||||||
{{- $themevariant := .themevariant }}
|
{{- $themevariant := .themevariant }}
|
||||||
{{- $identifier := .identifier }}
|
{{- $identifier := .identifier }}
|
||||||
{{- $themecontent := "" }}
|
{{- $themecontent := "" }}
|
||||||
|
@ -230,7 +230,7 @@ Generator run:
|
||||||
{{- $tempthemecontent := $themecontent }}
|
{{- $tempthemecontent := $themecontent }}
|
||||||
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?theme-([^.]*?)\.css` $themecontent }}
|
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?theme-([^.]*?)\.css` $themecontent }}
|
||||||
{{- $subidentifier := index . 1 }}
|
{{- $subidentifier := index . 1 }}
|
||||||
{{- $themevariant = partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $subidentifier) }}
|
{{- $themevariant = partial "inline/get-theme-details" (dict "themevariant" $themevariant "identifier" $subidentifier) }}
|
||||||
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css["']?\s*\)?\s*;?` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
|
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css["']?\s*\)?\s*;?` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
|
||||||
{{- $chroma = $themevariant.chroma }}
|
{{- $chroma = $themevariant.chroma }}
|
||||||
{{- $chromacontent = $themevariant.chromacontent }}
|
{{- $chromacontent = $themevariant.chromacontent }}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7.3.2+1205aa0448dcc4400e39e22e532ab4b62bb8b4c6
|
7.3.2+9527cd17bb1201408284d6b2e99b705ea9bb8a8b
|
Loading…
Add table
Reference in a new issue