Migrate website to Hugo

Signed-off-by: Luc Perkins <lucperkins@gmail.com>
This commit is contained in:
Luc Perkins
2018-05-14 12:18:32 -07:00
parent b511c397c3
commit d1503dc9ce
67 changed files with 236 additions and 241 deletions

View File

@@ -0,0 +1,35 @@
{{- $prodSite := not .Site.IsServer -}}
{{- $faviconUrl := .Site.Params.favicon | absURL -}}
{{- $fontImport := .Site.Params.fontImport -}}
<!DOCTYPE html>
<html lang="{{ default "en" .Site.LanguageCode }}">
<head>
{{ .Hugo.Generator }}
{{- partial "meta.html" . }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{- partial "css.html" . }}
<link rel="icon" type="image/png" href="{{ $faviconUrl }}" sizes="16x16">
<link href="{{ $fontImport }}" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="hero">
{{- partial "navbar.html" . }}
{{- partial "definition.html" . }}
</div>
<div class="content">
<div class="wrapper-details">
{{ block "main" . }}
{{ end }}
</div>
</div>
</div>
{{- partial "footer.html" . }}
{{- partial "javascript.html" . }}
{{- if $prodSite }}
{{- partial "google-analytics.html" . }}
{{- end }}
</body>
</html>

View File

@@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}