diff options
| author | vimux <vimux@protonmail.com> | 2019-07-30 17:32:26 -0400 |
|---|---|---|
| committer | vimux <vimux@protonmail.com> | 2019-07-31 08:49:20 -0400 |
| commit | c8bf719e3d4a4c6ed1e70c5091f72e542ffc7a3d (patch) | |
| tree | d81f0d69cedfc20638d42e88b19b08f23d8632da /layouts/partials/header.html | |
| parent | c71d33abd2c051c19c6298f150277c9dbdbe2bcd (diff) | |
Define the Base Template and fix Hugo warnings
* Define the Base Template (baseof.html)
* Use relative URL link to style.css file
* Move summary.html from partials to _default layouts
* Fix Hugo warnings (needs Hugo 0.20 or newer)
* Fix Paginator rule on main page. Fix #8
* Latest posts: show pages from mainSections only
* Bump Hugo 0.19 -> 0.20
* Formatting
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9a9179c..86e0e27 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,24 +1,10 @@ -<!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 }} - <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css"> - {{ 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> +<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> |