mirror of
https://git.kittycat.homes/zoe/hugo-battheme.git
synced 2024-08-15 03:25:18 +00:00
switch to sass
This commit is contained in:
parent
b5d4f59eaf
commit
572bc88b45
4 changed files with 11 additions and 7 deletions
|
@ -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
1
assets/scss/main.scss
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*{color:red;}
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue