Configured the site a little
This commit is contained in:
parent
2411e64a53
commit
b465899f85
10 changed files with 121 additions and 20 deletions
13
providers/themes/overlays/hugo-bearblog/archetype-posts.md
Normal file
13
providers/themes/overlays/hugo-bearblog/archetype-posts.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
+++
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
date = "{{ .Date }}"
|
||||
|
||||
#
|
||||
# description is optional
|
||||
#
|
||||
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||
|
||||
tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
|
||||
+++
|
||||
|
||||
This is a page about »{{ replace .Name "-" " " | title }}«.
|
||||
24
providers/themes/overlays/hugo-bearblog/index.html
Normal file
24
providers/themes/overlays/hugo-bearblog/index.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
|
||||
<h3>Recent Posts</h3>
|
||||
|
||||
<ul class="blog-posts">
|
||||
{{ range site.RegularPages }}
|
||||
<li>
|
||||
<span>
|
||||
<i>
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}'>
|
||||
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||
</time>
|
||||
</i>
|
||||
</span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
No posts yet
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<a href="{{ "" | relURL }}">Home</a>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ with .Site.GetPage "/posts" }}
|
||||
<a href="{{ "posts" | relURL }}">Posts</a>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue