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
|
// general
|
||||||
@import "variables";
|
@import "variables";
|
||||||
@import "style";
|
@import "main";
|
||||||
|
|
||||||
// partials
|
// partials
|
||||||
@import "partials/sidebar";
|
@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
|
// general
|
||||||
@import "variables";
|
@import "variables";
|
||||||
@import "style";
|
@import "main";
|
||||||
|
|
||||||
// shortcodes
|
// shortcodes
|
||||||
@import "shortcodes/verticalposts";
|
@import "shortcodes/verticalposts";
|
||||||
|
|
|
@ -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 -}}
|
||||||
|
|
|
@ -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" }}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue