47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<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">
|
|
|
|
{{/* Format: "[page title] | [site title]" */}}
|
|
<title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
{{ $sassOptions := (dict "targetPath" "app.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
|
{{ $appStyle := resources.Get "sass/app.scss" | resources.ToCSS $sassOptions }}
|
|
{{/* We fingerprint in production for cache busting purposes */}}
|
|
{{ if eq (getenv "HUGO_ENV") "production" }}
|
|
{{ $appStyle = $appStyle | fingerprint }}
|
|
{{ end }}
|
|
<link rel="stylesheet" href="{{ $appStyle.Permalink }}">
|
|
</head>
|
|
|
|
<body class="page-home">
|
|
{{ partial "header" . }}
|
|
|
|
<div class="container">
|
|
<div class="split-content">
|
|
<main>
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
<aside>
|
|
{{ block "aside" . }}{{ end }}
|
|
</aside>
|
|
</div>
|
|
|
|
{{ partial "footer" . }}
|
|
</div>
|
|
|
|
{{ $jsOptions := (dict "targetPath" "app.js" "minify" true) }}
|
|
{{ $appJs := resources.Get "js/app.js" | js.Build $jsOptions }}
|
|
{{/* We fingerprint in production for cache busting purposes */}}
|
|
{{ if eq (getenv "HUGO_ENV") "production" }}
|
|
{{ $appJs = $appJs | fingerprint }}
|
|
{{ end }}
|
|
<script src="{{ $appJs.Permalink }}" type="application/javascript"></script>
|
|
</body>
|
|
|
|
</html>
|