diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-21 21:41:35 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-21 21:41:35 +0200 |
| commit | 555e95319513c7c8289ffe9d188ca1899e5cf70d (patch) | |
| tree | 261d25f66986f42ae7f8ac6455011191cd14c423 /layouts/partials | |
| download | blog-555e95319513c7c8289ffe9d188ca1899e5cf70d.tar.gz blog-555e95319513c7c8289ffe9d188ca1899e5cf70d.zip | |
migrate to hugo
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 10 | ||||
| -rw-r--r-- | layouts/partials/header.html | 19 |
2 files changed, 29 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..87a4c15 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + <footer role="contentinfo"> + <div class="hr"></div> + <div class="footer-link"> + {{ with .Site.Params.email }}<a href="mailto:{{ . }}" target="_blank">Email</a>{{ end }} + {{ with .Site.Params.github }}<a href="{{ . }}" target="_blank">GitHub</a>{{ end }} + </div> + </footer> +</div> +</body> +</html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..f8a935b --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> +<head> +<meta charset="utf-8"> +{{ .Hugo.Generator }} +<meta name="viewport" content="width=device-width, initial-scale=1"> +<link rel="stylesheet" href="/css/min.css"> +<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}"> +<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title> +</head> +<body> + +<div class="container"> + <header role="banner"> + <div class="header-logo"> + <a href="/"><img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}"></a> + </div> + {{ if eq $isHomePage true }}<h1 class="site-title">{{ .Site.Title }}</h1>{{ end }} + </header> |
