diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2019-04-29 00:13:49 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2019-04-29 00:13:49 +0100 |
| commit | 49f746f1ee9205c4028bdc8f18aa888367eb3ddb (patch) | |
| tree | 8d8b86c72e335a0ebea08e8ed29fb5c7ab439b25 /layouts/partials | |
| parent | 6de514f5ff850ab90495e3230417cf0883940985 (diff) | |
Initial site layout
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 2 | ||||
| -rw-r--r-- | layouts/partials/head.html | 11 | ||||
| -rw-r--r-- | layouts/partials/header.html | 1 | ||||
| -rw-r--r-- | layouts/partials/nav.html | 8 |
4 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..b7245aa --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ +© {{ now.Year }} David T. Sadler. Theme adapted from <a href="https://github.com/panr/hugo-theme-terminal/" target="_blank">hugo-theme-terminal</a>. + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..1114b12 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,11 @@ +<meta charset="utf-8"> +<title>{{ .Title }} · {{ .Site.Title }}</title> +<meta name="description" content="{{ .Description }}"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<link rel="shortcut icon" href="/img/green.png"> +<link rel="canonical" href="{{ .Permalink }}"> +{{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} +<link rel="stylesheet" href="/css/style.css"> +<link rel="stylesheet" href="/css/syntax.css"> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..0a5998a --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1 @@ +<div><a href="{{ $.Site.BaseURL }}">{{ .Site.Params.Name }}</a></div> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..17e4e8d --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,8 @@ +<nav> + <ul> + {{ range .Site.Menus.main }} + <li><a href="{{ .URL | relURL }}" title="{{ .Title}}">{{ .Name }}</a></li> + {{ end }} + </ul> +</nav> + |
