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

View file