Browse Source

Move some theme changes to custom hugo-bearblog fork

master
BBaoVanC 2 months ago
parent
commit
ed1f1bc8ca
Signed by: bbaovanc GPG Key ID: 18089E4E3CCF1D3A
  1. 2
      .gitmodules
  2. 13
      archetypes/blog.md
  3. 8
      archetypes/default.md
  4. 20
      layouts/_default/single.html
  5. 2
      themes/hugo-bearblog

2
.gitmodules

@ -1,4 +1,4 @@
[submodule "themes/hugo-bearblog"]
path = themes/hugo-bearblog
url = https://github.com/janraasch/hugo-bearblog.git
url = https://github.com/BBaoVanC/hugo-bearblog.git
branch = master

13
archetypes/blog.md

@ -1,13 +0,0 @@
+++
title = "{{ replace .Name "-" " " | title }}"
date = "{{ .Date }}"
# Format date like 2006-01-02 (it gives an error if I use .Format)
description = """
Lorem ipsum
"""
tags = [
"",
]
+++

8
archetypes/default.md

@ -1,8 +0,0 @@
+++
title = "{{ replace .Name "-" " " | title }}"
menu = "main"
description = """
Lorem ipsum
"""
+++

20
layouts/_default/single.html

@ -1,20 +0,0 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
<p>
<i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
</time>
</i>
</p>
{{ end }}{{ end }}
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
</p>
{{ end }}

2
themes/hugo-bearblog

@ -1 +1 @@
Subproject commit 6408d03c688d8998476f35ee3beca49fc7b990b1
Subproject commit b6e86389d0a27ee1491a5a1929b0c1403bbe2904
Loading…
Cancel
Save