M layouts/_default/baseof.html => layouts/_default/baseof.html +1 -16
@@ 1,21 1,6 @@
<!DOCTYPE html>
<html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- {{ block "pagetitle" . }}<title>{{ .Site.Title }}</title>{{ end }}
- <meta name="description" content="{{ .Site.Params.Description }}">
- {{ block "googlefonts" . }}<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed|Source+Code+Pro|Oi|Source+Serif+Pro:400,600,400italic,600italic' rel='stylesheet' type='text/css'>{{ end }}
-
- {{ $style := resources.Get "style/main.scss" | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
- <link rel="stylesheet" href="{{ $style.Permalink }}">
-
- {{ range .AlternativeOutputFormats -}}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end -}}
-
- </head>
+ {{- partial "head.html" . -}}
<body>
<main class="u-container">
<div class="c-page">
A layouts/partials/head.html => layouts/partials/head.html +16 -0
@@ 0,0 1,16 @@
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ block "pagetitle" . }}<title>{{ .Site.Title }}</title>{{ end }}
+ <meta name="description" content="{{ .Site.Params.Description }}">
+ {{ block "googlefonts" . }}<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed|Source+Code+Pro|Oi|Source+Serif+Pro:400,600,400italic,600italic' rel='stylesheet' type='text/css'>{{ end }}
+
+ {{ $style := resources.Get "style/main.scss" | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+</head><
\ No newline at end of file