Add style-first.css, style-last.css

master
Will Faught 2 years ago
parent 1f06a33ceb
commit d6d2117fbb

@ -753,6 +753,8 @@ It has the parameters of the `paige/figure` shortcode.
| `partials/paige/header-last.html` | The end of the header tag |
| `partials/paige/main-first.html` | The beginning of the main tag |
| `partials/paige/main-last.html` | The end of the main tag |
| `partials/paige/style-first.html` | The beginning of the style tag |
| `partials/paige/style-last.html` | The end of the style tag |
### Override

@ -1,4 +1,3 @@
<style>
.paige-authors,
.paige-date,
.paige-reading-time,
@ -12,4 +11,3 @@
#paige-pages .paige-terms {
display: none;
}
</style>

@ -1,6 +1,10 @@
{{ $page := . }}
<style>
{{ if templates.Exists "partials/paige/style-first.css" }}
{{ partial "paige/style-first.css" $page | safeCSS }}
{{ end }}
body, html {
height: 100%;
}
@ -96,4 +100,8 @@ body, html {
{{ partial "paige/light.css" . | safeCSS }}
}
{{ end }}
{{ if templates.Exists "partials/paige/style-last.css" }}
{{ partial "paige/style-last.css" $page | safeCSS }}
{{ end }}
</style>

Loading…
Cancel
Save