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

layouts: retab after addition of modelines

Done in vim using `gg=G` and then `:retab`.
This commit is contained in:
Alan Orth 2016-11-24 14:39:39 +02:00
parent 663f3db2a0
commit b52fac69b1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
8 changed files with 132 additions and 132 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Lang }}"> <html lang="{{ .Lang }}">
<head> <head>
{{ partial "head-meta.html" . }} {{ partial "head-meta.html" . }}
<base href="{{ .Site.BaseURL }}"> <base href="{{ .Site.BaseURL }}">
@ -27,7 +27,7 @@
{{ partial "head-custom.html" . }} {{ partial "head-custom.html" . }}
</head> </head>
<body> <body>
<div class="blog-masthead"> <div class="blog-masthead">
<div class="container"> <div class="container">
@ -81,7 +81,7 @@
</p> </p>
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -1,12 +1,12 @@
{{ define "main" }} {{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
{{ .Render "summary" }} {{ .Render "summary" }}
{{ end }} {{ end }}
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav class="blog-pagination"> <nav class="blog-pagination">
{{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }} {{ 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.Prev.URL }}" role="button">{{ i18n "paginatorPrevious" }}</a>
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" role="button">{{ i18n "paginatorNext" }}</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 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> <a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" role="button">{{ i18n "paginatorNext" }}</a>
{{ end }} {{ end }}
</nav> </nav>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -2,7 +2,7 @@
{{ define "main" }} {{ define "main" }}
{{ $dateFormat := default "Mon Jan 2, 2006" (index .Site.Params "date_format") }} {{ $dateFormat := default "Mon Jan 2, 2006" (index .Site.Params "date_format") }}
<article class="blog-post"> <article class="blog-post">
<header> <header>
<h2 class="blog-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2> <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> <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 }} {{ if not .Site.Params.sharingicons.hide }}
{{ partial "sharing-icons.html" . }} {{ partial "sharing-icons.html" . }}
{{ end }} {{ end }}
</article> <!-- /.blog-post --> </article> <!-- /.blog-post -->
{{ if .Site.DisqusShortname }} {{ if .Site.DisqusShortname }}
{{ partial "disqus.html" . }} {{ partial "disqus.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -3,7 +3,7 @@
<script> <script>
window.addEventListener("load", function(){ window.addEventListener("load", function(){
window.cookieconsent.initialise({ window.cookieconsent.initialise({
"palette": { "palette": {
"popup": { "popup": {
"background": "#428bca", "background": "#428bca",
@ -20,7 +20,7 @@ window.cookieconsent.initialise({
"href": "{{ .Site.Params.cookie_consent_info_url | absURL}}" "href": "{{ .Site.Params.cookie_consent_info_url | absURL}}"
}, },
"position": "bottom-right" "position": "bottom-right"
})}); })});
</script> </script>
{{- /* vim: set ts=2 sw=2 et: */}} {{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -1,24 +1,24 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <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 }} {{ "<!-- 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/opengraph.html" . }}
{{ template "_internal/schema.html" . }} {{ template "_internal/schema.html" . }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ if .Site.Params.google_verify_meta }} {{ if .Site.Params.google_verify_meta }}
<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" /> <meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" />
{{ end }} {{ end }}
{{ if .Site.Params.bing_verify_meta }} {{ if .Site.Params.bing_verify_meta }}
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" /> <meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" />
{{ end }} {{ end }}
{{ if .Site.Params.yandex_verify_meta }} {{ if .Site.Params.yandex_verify_meta }}
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" /> <meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" />
{{ end }} {{ end }}
{{ .Hugo.Generator }} {{ .Hugo.Generator }}
{{- /* vim: set ts=2 sw=2 et: */}} {{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -1,8 +1,8 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<i class="fa fa-folder" aria-hidden="true"></i>&nbsp;{{ 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>&nbsp;{{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" rel="category tag">{{ . }}</a>{{ end }}
{{ end }} {{ end }}
{{ if .Params.tags }} {{ if .Params.tags }}
<i class="fa fa-tag" aria-hidden="true"></i>&nbsp;{{ 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>&nbsp;{{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
{{ end }} {{ end }}
{{- /* vim: set ts=2 sw=2 et: */}} {{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -1,5 +1,5 @@
<hr> <hr>
<footer> <footer>
<header> <header>
<h4>{{ i18n "share" }}</h4> <h4>{{ i18n "share" }}</h4>
</header> </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&amp;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.linkedin false) }}<a class="nav-item" href="https://www.linkedin.com/shareArticle?mini=true&amp;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 }} {{ 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> </nav>
</footer> </footer>
{{- /* vim: set ts=2 sw=2 et: */}} {{- /* vim: set ts=2 sw=2 et: */}}