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 18:31:49 +0300
committeruPagge <git@upagge.ru>2021-01-21 18:31:49 +0300
commit60b36992a3344581683c80dedb7801260f0a2ada (patch)
treea0540d1bc0e7dcd0e10d33ee8ff281f3e0ee48d5 /layouts
parent68d57ea5ba867f92e88ad51a3a135c44908c60a6 (diff)
author
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/summary.html2
-rw-r--r--layouts/partials/head/seo.html4
-rw-r--r--layouts/partials/single/footer.html2
-rw-r--r--layouts/posts/single.html14
4 files changed, 9 insertions, 13 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 8627793..02c0ca8 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -37,7 +37,7 @@
{{- if not $params.summaryStyle.hiddenMeta -}}
{{- /* Meta */ -}}
<div class="post-meta summary-post-meta">
- {{- $authorName := $params.author | default .Site.Author.name | default " " -}}
+ {{- $authorName := $params.name | default .Site.Author.name | default " " -}}
{{- if not (eq $authorName " ") -}}
{{ $author := index .Site.Data.authors $authorName }}
{{- $authorLink := $author.link | default .Site.Home.RelPermalink -}}
diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html
index 2067721..8021636 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 | default .Site.Author.name | default (T "author") | dict "name" -}}
+ {{- $publisher := .Params.author.name | 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 | default .Site.Author.name | default (T "author") -}}
+ {{- with .Params.author.name | 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 d37d5eb..be8a2e7 100644
--- a/layouts/partials/single/footer.html
+++ b/layouts/partials/single/footer.html
@@ -6,7 +6,7 @@
</span>
</div>
-{{- $authorName := $params.author | default .Site.Author.name | default " " -}}
+{{- $authorName := $params.author.name | 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 b3bd667..e2b753f 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -31,11 +31,9 @@
{{- $image = .RelPermalink -}}
{{- end -}}
- {{- $authorName := $params.author | default .Site.Author.name | default " " -}}
+ {{- $authorName := $params.author.name | default .Site.Author.name | default " " -}}
{{ $author := index .Site.Data.authors $authorName }}
-
-
<div class="header-post">
{{ if eq $pageTheme "hero" }}
@@ -43,8 +41,6 @@
<div class="post-hero-info">
<div class="hero-text-container">
-
-
<h1 itemprop="headline">{{ $.Title }}</h1>
<p class="hero-text-description" itemprop="description">{{ $.Description }}</p>
</div>
@@ -54,8 +50,8 @@
<a href="{{ with $author.site }} {{- . | safeHTML -}}{{ end }}" class="hero-author-profile">
<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.name }}</h4>
- <h4 class="hero-author-profile-title">Java Backend Developer</h4>
+ <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>
</div>
</a>
@@ -212,7 +208,7 @@
{{ end }}
</div>
- <div class="post">
+ <div class="post" style="padding: 0 60px 40px;">
{{- /* Footer Post */ -}}
{{- partial "single/footer.html" . -}}
</div>
@@ -237,7 +233,7 @@
{{- if $authorComment -}}
<div class="author-comment">
<div class="author-avatar" style="float: left"><a href="{{ with $author.site }} {{- . | safeHTML -}}{{ end }}" target="_blank"><img alt="" src="{{ with $author.avatar }} {{- . | safeHTML -}}{{ end }}" border="0"></a></div>
- <div class="name">{{ $author.name }}</div>
+ <div class="name">{{ $author.full_name }}</div>
<div class="author-comment-text">{{ $authorComment }}</span></div>
</div>
{{- end -}}