switch to sass

This commit is contained in:
zoe 2022-04-09 10:16:52 +02:00
parent b5d4f59eaf
commit 572bc88b45
4 changed files with 11 additions and 7 deletions

View File

@ -1,2 +1,6 @@
+++
+++
<title>{{ .Title }}</title>
{{ $css := resources.Get "sass/main.sass" }}
{{ $css = $css | toCSS }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}"

1
assets/scss/main.scss Normal file
View File

@ -0,0 +1 @@
*{color:red;}

View File

@ -1,9 +1,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/style.css">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<title>{{ .Title }}</title>
{{ $css := resources.Get "scss/main.scss" }}
{{ $css = $css | toCSS }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
</head>

View File