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:
commit
fda0d8dfb0
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user