add default.scss
This commit is contained in:
parent
190c0acf7f
commit
aa106280af
7 changed files with 17 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
// general
|
||||
@import "variables";
|
||||
@import "style";
|
||||
@import "main";
|
||||
|
||||
// partials
|
||||
@import "partials/sidebar";
|
||||
|
|
8
assets/scss/default.scss
Normal file
8
assets/scss/default.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
// general
|
||||
@import "variables";
|
||||
@import "main";
|
||||
|
||||
// partials
|
||||
@import "partials/sidebar";
|
||||
@import "partials/footer";
|
||||
@import "partials/helpers/icons.scss";
|
|
@ -1,6 +1,6 @@
|
|||
// general
|
||||
@import "variables";
|
||||
@import "style";
|
||||
@import "main";
|
||||
|
||||
// shortcodes
|
||||
@import "shortcodes/verticalposts";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{- define "stylesheet" -}}
|
||||
{{- $scss := resources.Get "/scss/style.scss" -}}
|
||||
{{- $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 -}}
|
||||
|
|
|
@ -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" }}
|
||||
<main>
|
||||
{{- if eq .Params.type "post" }}
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
|
||||
{{- define "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>
|
||||
{{- end }}
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
{{ .Content -}}
|
||||
<aside>
|
||||
|
|
Loading…
Reference in a new issue