mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 02:40:24 +00:00
variant: fix import resolution for modified variants #974
This commit is contained in:
parent
66f4fbf5f0
commit
f1701957c3
2 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ Generator run:
|
|||
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?theme-([^.]*?)\.css` $themecontent }}
|
||||
{{- $subidentifier := index . 1 }}
|
||||
{{- $themevariant = partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $subidentifier) }}
|
||||
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
|
||||
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css["']?\s*\)?\s*;?` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
|
||||
{{- $chroma = $themevariant.chroma }}
|
||||
{{- $chromacontent = $themevariant.chromacontent }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
7.2.1+16d4de84becfa2d2e6bdb2394a2f4fa411bc0007
|
||||
7.2.1+66f4fbf5f04db1aa128d8f951c0883cc226312b9
|
Loading…
Reference in a new issue