Skip to content

Commit

Permalink
variant: fix import resolution for modified variants #974
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Dec 19, 2024
1 parent 66f4fbf commit f170195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/_relearn/themeVariants.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.1+16d4de84becfa2d2e6bdb2394a2f4fa411bc0007
7.2.1+66f4fbf5f04db1aa128d8f951c0883cc226312b9

0 comments on commit f170195

Please sign in to comment.