diff options
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a31842e..0470892 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,38 +19,43 @@ {{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}} <link rel="stylesheet" href="{{ $style.RelPermalink }}"> - {{ range .Site.Params.customCSS -}} - <link rel="stylesheet" href="{{ . | relURL }}"> + {{- range .Site.Params.customCSS }} + <link rel="stylesheet" href="{{ . | relURL }}"> + {{- end }} + {{- range .Params.customCSS }} + <link rel="stylesheet" href="{{ . | relURL }}"> {{- end }} {{- with .OutputFormats.Get "rss" }} - {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{- end }} - <link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}"> + {{ partial "favicon" . }} + {{ partial "perpagehead" . }} {{- if not .Site.IsServer }} {{ template "_internal/google_analytics_async.html" . }} {{- end }} </head> <body class="body"> - {{ partial "header" . }} - <div class="container wrapper flex"> - <div class="primary"> - {{ block "main" . }} - {{ with .Content }} - <div class="content main__content clearfix"> - {{ . }} - </div> - {{ end }} - {{ end }} + {{ partial "header" . }} + <div class="container wrapper flex"> + <div class="primary"> + {{ block "main" . }} + {{ with .Content }} + <div class="content main__content clearfix"> + {{ . }} </div> - {{ partial "sidebar.html" . }} + {{ end }} + {{ end }} </div> - {{ partial "footer" . }} -<script async defer src="{{ "js/menu.js" | relURL }}"></script> -{{ range .Site.Params.customJS -}} -<script src="{{ . | relURL }}"></script> -{{- end }} -{{ with .Site.Params.customPartial }}{{ partial . }}{{ end }} + {{ partial "sidebar.html" . }} + </div> + {{ partial "footer" . }} + <script async defer src="{{ "js/menu.js" | relURL }}"></script> + {{ range .Site.Params.customJS -}} + <script src="{{ . | relURL }}"></script> + {{- end }} + {{ with .Site.Params.customPartial }}{{ partial . }}{{ end }} + {{ partial "perpagebody" . }} </body> </html> |