1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 09:02:18 +01:00

Merge pull request #80 from nzoschke/master

blocks for masthead, header, body and footer
This commit is contained in:
Alan Orth 2018-01-05 15:02:57 -08:00 committed by GitHub
commit fda0d8dfb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@
<body>
{{ block "masthead" . }}
<div class="blog-masthead">
<div class="container">
<nav class="nav blog-nav">
@ -50,14 +51,18 @@
</nav>
</div>
</div>
{{ end }}
{{ block "header" . }}
<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>
{{ end }}
{{ block "body" . }}
<div class="container">
<div class="row">
<div class="col-sm-8 blog-main">
@ -72,7 +77,9 @@
</div> {{ "<!-- /.row -->" | safeHTML }}
</div> {{ "<!-- /.container -->" | safeHTML }}
{{ end }}
{{ block "footer" . }}
<footer class="blog-footer">
<p>
{{ if .Site.Copyright }}
@ -85,6 +92,7 @@
<a href="#">{{ i18n "backToTop" }}</a>
</p>
</footer>
{{ end }}
</body>