diff options
| author | vimux <vimux@protonmail.com> | 2016-10-14 23:41:10 +0300 |
|---|---|---|
| committer | vimux <vimux@protonmail.com> | 2016-10-14 23:41:10 +0300 |
| commit | 406c5961cbce9b9defde833e3c68c73a0a05536e (patch) | |
| tree | fd21f7fb40fdb52dce0295ae2eae794e569c4bd6 /layouts/partials/header.html | |
Initial commit
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..63e6e84 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="{{ .Site.LanguageCode | default "en-us" }}"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <title>{{ .Title }}</title> + {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} + {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} + {{ if .RSSlink -}}<link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}">{{- end }} + {{ .Hugo.Generator }} +</head> +<body> + <header> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + <nav> + <ul> + {{ range .Site.Menus.main }} + <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> + {{ end }} + </ul> + </nav> + </header>
\ No newline at end of file |