1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 21:20:17 +01:00

blocks for masthead, header, body and footer

This commit is contained in:
Noah Zoschke 2018-01-02 13:51:28 -08:00 committed by Noah Zoschke
parent 2910e93c67
commit 9cce778e86

View File

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