mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-16 01:07:03 +01:00
Alan Orth
e8ee0c68b7
Use the post's author from frontmatter, or else use the author from the site's config. You MUST have one of these set or else you will get an error during site generation. I think it's better to force the user to define an author tag rather than only printing it if it is defined because it is a good practice to help bots understand content.
69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
{{ "<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->" | safeHTML }}
|
|
|
|
<meta name="description" content="{{ .Params.description | default .Site.Params.description }}">
|
|
<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
|
|
|
|
{{ if .Site.Params.google_verify_meta }}<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}">{{ end }}
|
|
|
|
{{ .Hugo.Generator }}
|
|
|
|
<base href="{{ .Site.BaseURL }}">
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
{{ "<!-- combined, minified CSS -->" | safeHTML }}
|
|
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="blog-masthead">
|
|
<div class="container">
|
|
<nav class="nav blog-nav">
|
|
<a class="nav-link" href="{{ .Site.BaseURL }}">Home</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<header class="blog-header">
|
|
<div class="container">
|
|
<h1 class="blog-title"><a href="{{ .Site.BaseURL }}" rel="home">{{ .Site.Title | safeHTML }}</a></h1>
|
|
{{ if .Site.Params.description }}<p class="lead blog-description">{{ .Site.Params.description | markdownify }}</p>{{ end }}
|
|
</div>
|
|
</header>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-8 blog-main">
|
|
|
|
{{ block "main" . }}
|
|
<!-- The part of the page that begins to differ between templates -->
|
|
{{ end }}
|
|
|
|
</div> {{ "<!-- /.blog-main -->" | safeHTML }}
|
|
|
|
{{ if not .Site.Params.sidebar.hide }}
|
|
{{ partial "sidebar.html" . }}
|
|
{{ end }}
|
|
|
|
</div> {{ "<!-- /.row -->" | safeHTML }}
|
|
</div> {{ "<!-- /.container -->" | safeHTML }}
|
|
|
|
<footer class="blog-footer">
|
|
<p>
|
|
Blog template built by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
|
</p>
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|