Migrate website to Hugo
Signed-off-by: Luc Perkins <lucperkins@gmail.com>
This commit is contained in:
35
docs/layouts/_default/baseof.html
Normal file
35
docs/layouts/_default/baseof.html
Normal 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>
|
||||
3
docs/layouts/_default/single.html
Normal file
3
docs/layouts/_default/single.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user