mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-19 00:52:19 +01:00
layouts: retab after addition of modelines
Done in vim using `gg=G` and then `:retab`.
This commit is contained in:
parent
663f3db2a0
commit
b52fac69b1
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Lang }}">
|
||||
|
||||
<head>
|
||||
<head>
|
||||
{{ partial "head-meta.html" . }}
|
||||
|
||||
<base href="{{ .Site.BaseURL }}">
|
||||
@ -27,7 +27,7 @@
|
||||
{{ partial "head-custom.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<div class="blog-masthead">
|
||||
<div class="container">
|
||||
@ -81,7 +81,7 @@
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<nav class="blog-pagination">
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<nav class="blog-pagination">
|
||||
{{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" role="button">{{ i18n "paginatorPrevious" }}</a>
|
||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" role="button">{{ i18n "paginatorNext" }}</a>
|
||||
@ -19,8 +19,8 @@
|
||||
<a class="btn btn-outline-primary disabled" href="#" role="button" aria-disabled="true">{{ i18n "paginatorPrevious" }}</a>
|
||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" role="button">{{ i18n "paginatorNext" }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
{{ define "main" }}
|
||||
{{ $dateFormat := default "Mon Jan 2, 2006" (index .Site.Params "date_format") }}
|
||||
|
||||
<article class="blog-post">
|
||||
<article class="blog-post">
|
||||
<header>
|
||||
<h2 class="blog-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
<p class="blog-post-meta"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format $dateFormat }}</time> by {{ .Params.author | default .Site.Params.author }}{{ if or (.Params.categories) (.Params.tags) }} in {{ partial "meta-terms.html" . }}{{ end }}</p>
|
||||
@ -22,11 +22,11 @@
|
||||
{{ if not .Site.Params.sharingicons.hide }}
|
||||
{{ partial "sharing-icons.html" . }}
|
||||
{{ end }}
|
||||
</article> <!-- /.blog-post -->
|
||||
</article> <!-- /.blog-post -->
|
||||
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<script>
|
||||
window.addEventListener("load", function(){
|
||||
window.cookieconsent.initialise({
|
||||
window.cookieconsent.initialise({
|
||||
"palette": {
|
||||
"popup": {
|
||||
"background": "#428bca",
|
||||
@ -20,7 +20,7 @@ window.cookieconsent.initialise({
|
||||
"href": "{{ .Site.Params.cookie_consent_info_url | absURL}}"
|
||||
},
|
||||
"position": "bottom-right"
|
||||
})});
|
||||
})});
|
||||
</script>
|
||||
|
||||
{{- /* vim: set ts=2 sw=2 et: */}}
|
||||
|
@ -1,24 +1,24 @@
|
||||
<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 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 }}
|
||||
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
|
||||
{{ if .Site.Params.google_verify_meta }}
|
||||
<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" />
|
||||
{{ end }}
|
||||
{{ if .Site.Params.google_verify_meta }}
|
||||
<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.bing_verify_meta }}
|
||||
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" />
|
||||
{{ end }}
|
||||
{{ if .Site.Params.bing_verify_meta }}
|
||||
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.yandex_verify_meta }}
|
||||
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" />
|
||||
{{ end }}
|
||||
{{ if .Site.Params.yandex_verify_meta }}
|
||||
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ .Hugo.Generator }}
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
{{- /* vim: set ts=2 sw=2 et: */}}
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{ if .Params.categories }}
|
||||
<i class="fa fa-folder" aria-hidden="true"></i> {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" rel="category tag">{{ . }}</a>{{ end }}
|
||||
<i class="fa fa-folder" aria-hidden="true"></i> {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" rel="category tag">{{ . }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<i class="fa fa-tag" aria-hidden="true"></i> {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
|
||||
<i class="fa fa-tag" aria-hidden="true"></i> {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{- /* vim: set ts=2 sw=2 et: */}}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<hr>
|
||||
<footer>
|
||||
<hr>
|
||||
<footer>
|
||||
<header>
|
||||
<h4>{{ i18n "share" }}</h4>
|
||||
</header>
|
||||
@ -9,6 +9,6 @@
|
||||
{{ if not (eq .Site.Params.sharingicons.linkedin false) }}<a class="nav-item" href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink }}" title="Share on LinkedIn"><span class="fa fa-linkedin fa-2x" aria-hidden="true"></span></a>{{ end }}
|
||||
{{ if not (eq .Site.Params.sharingicons.twitter false) }}<a class="nav-item" href="https://twitter.com/home?status={{ .Permalink }}" title="Tweet this"><span class="fa fa-twitter fa-2x"></span></a>{{ end }}
|
||||
</nav>
|
||||
</footer>
|
||||
</footer>
|
||||
|
||||
{{- /* vim: set ts=2 sw=2 et: */}}
|
||||
|
Loading…
Reference in New Issue
Block a user