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

github.com/themefisher/liva-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2020-05-23 08:02:00 +0300
committersomrat <monnaf37@gmail.com>2020-05-23 08:02:00 +0300
commit781456c4aa17f48ded2164c5b931e98612f1e1f2 (patch)
tree5ac18d0f3e177381f8838721e46fc89c8186ed06
parentaa188d0faff1d14ce791d816011d55fc3d392c31 (diff)
modified single page author
-rw-r--r--layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9a78368..7946ba2 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,12 +5,12 @@
<div class="row">
<div class="col-lg-8 mx-auto">
{{ range .Params.Categories }}
- <a href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}"
+ <a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"
class="text-primary">{{ . | title | humanize }}</a>
{{ end }}
<h2>{{ .Title | markdownify }}</h2>
<div class="mb-3 post-meta">
- <span>By {{ .Site.Params.Author }}</span>
+ <span>By {{if .Params.Author}}{{ .Params.Author }}{{else}}{{.Site.Params.Author}}{{end}}</span>
{{ if not .Params.HideDate }}
<span class="border-bottom border-primary px-2 mx-1"></span>
<span>{{ .PublishDate.Format "02 January 2006" }}</span>