mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-16 01:07:03 +01:00
65 lines
1.8 KiB
HTML
65 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
{{ partial "head-meta.html" . }}
|
|
|
|
<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">
|
|
|
|
{{ "<!-- RSS 2.0 feed of posts -->" | safeHTML }}
|
|
<link href="{{ .Site.BaseURL }}post/index.xml" type="application/rss+xml" rel="alternate">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="blog-masthead">
|
|
<div class="container">
|
|
<nav class="nav blog-nav">
|
|
<a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL }}">Home</a>
|
|
{{ range where .Site.Pages "Type" "!=" "post" }}
|
|
<a class="nav-link" href="{{ .Permalink }}">{{ .Title }}</a>
|
|
{{ end }}
|
|
</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 and (.Site.Params.sidebar) (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>
|