mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 05:15:58 -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 }}
|
||||
date: {{ .Date | time.Format "2006-01-02" }}
|
||||
author: {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
toc: true
|
||||
comments: true
|
||||
draft: true
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
|
||||
title: {{ replace .Name "-" " " | title }}
|
||||
author: {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
menu: main
|
||||
toc: true
|
||||
comments: false
|
||||
|
@ -1,12 +1,15 @@
|
||||
baseURL = "https://example.com"
|
||||
theme = "bobatheme"
|
||||
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"
|
||||
enableRobotsTXT = true
|
||||
paginate = 5
|
||||
enableGitInfo = true
|
||||
|
||||
[author]
|
||||
name = "bbaovanc"
|
||||
|
||||
[markup]
|
||||
[markup.highlight]
|
||||
noClasses = false
|
||||
|
@ -20,6 +20,13 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.author }}
|
||||
<span class="post-meta-item">
|
||||
{{ partial "icon.html" "user" }}
|
||||
{{ . }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
{{ if .IsTranslated }}
|
||||
<span class="post-meta-item">
|
||||
{{ partial "icon.html" "globe" }}
|
||||
|
Loading…
Reference in New Issue
Block a user