Split & convert CSS into 4 SCSS, dont use .button for now

This commit is contained in:
DarkCat09 2023-11-04 20:58:45 +04:00
parent 5b990659a6
commit 36fdb286ae
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
7 changed files with 79 additions and 61 deletions

View file

@ -1,5 +1,6 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/css.html" (dict "Css" "main") "main" }}
{{ partialCached "head/css.html" (dict "Css" "post-item") "post-item" }}
{{ partialCached "head/js.html" . }}

View file

@ -1,4 +1,7 @@
{{- with resources.Get "css/main.css" }}
{{- $file_from := printf "scss/%s.scss" .Css }}
{{- $file_to := printf "css/%s.css" .Css }}
{{- $options := dict "transpiler" "libsass" "targetPath" $file_to }}
{{- with resources.Get $file_from | toCSS $options }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}