diff options
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6bce2dc..475d6f9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,12 +11,23 @@ {{- partial "seo_tags.html" . -}} <meta name="referrer" content="no-referrer-when-downgrade" /> + {{ $style := resources.Get "style.css" | minify }} + <link href="{{ $style.RelPermalink }}" rel="stylesheet"> + + {{ if (.Page.Store.Get "hasCodeBlock") }} + {{ $syntax := resources.Get "syntax.css" | minify }} + <link href="{{ $syntax.RelPermalink }}" rel="stylesheet"> + {{ end }} + + {{ with .Params.style }} + {{ $extra := resources.Get . | minify }} + <link href="{{ $extra.RelPermalink }}" rel="stylesheet"> + {{ end }} + {{ with .OutputFormats.Get "rss" -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{- partial "style.html" . -}} - <!-- A partial to be overwritten by the user. Simply place a custom_head.html into your local /layouts/partials-directory --> @@ -27,7 +38,7 @@ <header> {{- partial "header.html" . -}} </header> - <main> + <main id="main-content"> {{- block "main" . }}{{- end }} </main> <footer> |