Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-01-21 19:37:59 +0300
committeruPagge <git@upagge.ru>2021-01-21 19:37:59 +0300
commitfd51e62f2641cb59baabd2e798333e772d5ae8d5 (patch)
treeae5e04dd3111bd465b5288b23f22e4c494ff80ab
parent60b36992a3344581683c80dedb7801260f0a2ada (diff)
author
-rw-r--r--layouts/partials/head/seo.html4
-rw-r--r--layouts/partials/single/footer.html2
-rw-r--r--layouts/posts/single.html4
3 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html
index 8021636..2067721 100644
--- a/layouts/partials/head/seo.html
+++ b/layouts/partials/head/seo.html
@@ -122,7 +122,7 @@
{{- with .Site.Copyright -}}
"license": {{ . | safeHTML }},
{{- end -}}
- {{- $publisher := .Params.author.name | default .Site.Author.name | default (T "author") | dict "name" -}}
+ {{- $publisher := .Params.author | default .Site.Author.name | default (T "author") | dict "name" -}}
{{- $publisher = $params.seo.publisher | default dict | merge $publisher -}}
"publisher": {
"@type": "Organization",
@@ -141,7 +141,7 @@
{{- end -}}
{{- end -}}
},
- {{- with .Params.author.name | default .Site.Author.name | default (T "author") -}}
+ {{- with .Params.author | default .Site.Author.name | default (T "author") -}}
"author": {
"@type": "Person",
"name": {{ . | safeHTML }}
diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html
index be8a2e7..d37d5eb 100644
--- a/layouts/partials/single/footer.html
+++ b/layouts/partials/single/footer.html
@@ -6,7 +6,7 @@
</span>
</div>
-{{- $authorName := $params.author.name | default .Site.Author.name | default " " -}}
+{{- $authorName := $params.author | default .Site.Author.name | default " " -}}
{{- if not (eq $authorName " ") -}}
{{ $author := index .Site.Data.authors $authorName }}
<div class="footer-post-author" {{- if not $author.ps -}} style="border-radius: 10px;border-bottom: solid 2px #ececec" {{- end -}}>
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index e2b753f..2f35dc2 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -31,7 +31,7 @@
{{- $image = .RelPermalink -}}
{{- end -}}
- {{- $authorName := $params.author.name | default .Site.Author.name | default " " -}}
+ {{- $authorName := $params.author | default .Site.Author.name | default " " -}}
{{ $author := index .Site.Data.authors $authorName }}
<div class="header-post">
@@ -51,7 +51,7 @@
<img class="hero-author-avatar" src="{{ with $author.avatar }} {{- . | safeHTML -}}{{ end }}" alt="Bruno Krebs">
<div class="profile-text-wrapper">
<h4 class="hero-author-profile-name">{{ $author.full_name }}</h4>
- <h4 class="hero-author-profile-title">{{ $params.author.short_about | default $author.short_about }}</h4>
+ <h4 class="hero-author-profile-title">{{ $params.customAuthor.short_about | default $author.short_about }}</h4>
</div>
</a>