mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 05:42:04 +08:00
variant: fix import resolution for modified variants #974
This commit is contained in:
parent
66f4fbf5f0
commit
f1701957c3
@ -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…
x
Reference in New Issue
Block a user