mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Add author
param and display it
This commit is contained in:
parent
d393d9eef9
commit
9e5a8e6785
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
title: {{ replace .Name "-" " " | title }}
|
title: {{ replace .Name "-" " " | title }}
|
||||||
date: {{ .Date | time.Format "2006-01-02" }}
|
date: {{ .Date | time.Format "2006-01-02" }}
|
||||||
|
author: {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||||
toc: true
|
toc: true
|
||||||
comments: true
|
comments: true
|
||||||
draft: true
|
draft: true
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
title: {{ replace .Name "-" " " | title }}
|
title: {{ replace .Name "-" " " | title }}
|
||||||
|
author: {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||||
menu: main
|
menu: main
|
||||||
toc: true
|
toc: true
|
||||||
comments: false
|
comments: false
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
baseURL = "https://example.com"
|
baseURL = "https://example.com"
|
||||||
theme = "bobatheme"
|
theme = "bobatheme"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
author = "bbaovanc"
|
copyright = '© 2021 bbaovanc <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>'
|
||||||
sectionPagesMenu = "main"
|
sectionPagesMenu = "main"
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
paginate = 5
|
paginate = 5
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "bbaovanc"
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
noClasses = false
|
noClasses = false
|
||||||
|
@ -20,6 +20,13 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Params.author }}
|
||||||
|
<span class="post-meta-item">
|
||||||
|
{{ partial "icon.html" "user" }}
|
||||||
|
{{ . }}
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "globe" }}
|
{{ partial "icon.html" "globe" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user