add default.scss

This commit is contained in:
Vri 🌈 2023-01-15 00:24:10 +01:00
parent 190c0acf7f
commit aa106280af
Signed by: vrifox
GPG key ID: D40098E5B60B2197
7 changed files with 17 additions and 5 deletions

View file

@ -1,6 +1,6 @@
// general // general
@import "variables"; @import "variables";
@import "style"; @import "main";
// partials // partials
@import "partials/sidebar"; @import "partials/sidebar";

8
assets/scss/default.scss Normal file
View file

@ -0,0 +1,8 @@
// general
@import "variables";
@import "main";
// partials
@import "partials/sidebar";
@import "partials/footer";
@import "partials/helpers/icons.scss";

View file

@ -1,6 +1,6 @@
// general // general
@import "variables"; @import "variables";
@import "style"; @import "main";
// shortcodes // shortcodes
@import "shortcodes/verticalposts"; @import "shortcodes/verticalposts";

View file

@ -1,5 +1,5 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $scss := resources.Get "/scss/style.scss" -}} {{- $scss := resources.Get "/scss/default.scss" -}}
{{- $style := $scss | resources.ToCSS -}} {{- $style := $scss | resources.ToCSS -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}

View file

@ -1,3 +1,9 @@
{{- define "stylesheet" -}}
{{- $scss := resources.Get "/scss/default.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}}
{{- define "main" }} {{- define "main" }}
<main> <main>
{{- if eq .Params.type "post" }} {{- if eq .Params.type "post" }}

View file

@ -6,9 +6,7 @@
{{- define "main" }} {{- define "main" }}
<main> <main>
{{- if eq .Params.type "post" }}
<p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p> <p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
{{- end }}
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
{{ .Content -}} {{ .Content -}}
<aside> <aside>