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

github.com/janraasch/hugo-bearblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Raasch <jan@janraasch.com>2020-09-04 09:54:19 +0300
committerJan Raasch <jan@janraasch.com>2020-09-04 10:02:09 +0300
commite13df26c715f17686fbae1e709a3115ac7377df8 (patch)
treef4770deb71db54feb91aeffd57f5d3522e7668ce
parent58805381571574f39ff3ddeaf98f64d708486ca7 (diff)
refactor: move (non-post) pages to "content"-root
-rw-r--r--README.md19
-rw-r--r--archetypes/blog.md13
-rw-r--r--archetypes/default.md17
-rw-r--r--exampleSite/content/bear.md (renamed from exampleSite/content/blog/bear.md)7
-rw-r--r--exampleSite/content/hugo.md (renamed from exampleSite/content/blog/hugo.md)5
5 files changed, 44 insertions, 17 deletions
diff --git a/README.md b/README.md
index e679dfa..2c0764a 100644
--- a/README.md
+++ b/README.md
@@ -30,9 +30,23 @@ Please check out the [config.toml](https://github.com/janraasch/hugo-bearblog/bl
If you are starting fresh, simply copy over the contents of the `exampleSite`-directory included in this theme to your source directory. That should give you a good idea about how things work, and then you can go on from there to make the site your own.
-### Adding content
+### Adding / editing content
-You can add **a new post/page** via running
+#### Index-Page
+
+The contents of the `index`-page may be changed by editing your `content/_index.md`-file.
+
+#### Page
+
+You can add **a new page** via running
+
+```
+hugo new my-new-page.md
+```
+
+#### Blog-Post
+
+You can add **a new blog-post** via running
```
hugo new blog/my-new-post.md
@@ -63,5 +77,4 @@ A special thank you goes out to [Herman](https://herman.bearblog.dev), for creat
[paypal-dot-me]: https://www.paypal.me/janraasch/7,00
[github-sponsors]: https://github.com/sponsors/janraasch
[insert-coins-svg]: https://img.shields.io/badge/insert-coins-11dde2.svg
-
[hugo-setup-guide]: https://gohugo.io/getting-started/installing
diff --git a/archetypes/blog.md b/archetypes/blog.md
new file mode 100644
index 0000000..e4594c6
--- /dev/null
+++ b/archetypes/blog.md
@@ -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 }}«.
diff --git a/archetypes/default.md b/archetypes/default.md
index ed40bd4..e8406b3 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,9 +1,22 @@
+++
title = "{{ replace .Name "-" " " | title }}"
date = "{{ .Date }}"
+
+#
+# Set menu to "main" to add this page to
+# the main menu on top of the page
+#
+menu = "main"
+
+#
+# description is optional
+#
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
-# menu = "main"
-tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
+
+#
+# tags are optional
+#
+# tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
+++
This is a page about »{{ replace .Name "-" " " | title }}«.
diff --git a/exampleSite/content/blog/bear.md b/exampleSite/content/bear.md
index 83691e5..a25a2dc 100644
--- a/exampleSite/content/blog/bear.md
+++ b/exampleSite/content/bear.md
@@ -1,13 +1,6 @@
+++
title = "Bear"
menu = "main"
-date = "2020-01-01"
-tags = [
- "blogging",
- "no javascript",
- "no stylesheets",
- "no trackers"
-]
+++
# Bear
diff --git a/exampleSite/content/blog/hugo.md b/exampleSite/content/hugo.md
index 2245a48..6f6ce0d 100644
--- a/exampleSite/content/blog/hugo.md
+++ b/exampleSite/content/hugo.md
@@ -1,11 +1,6 @@
+++
title = "Hugo"
menu = "main"
-date = "2020-01-02"
-tags = [
- "blogging",
- "static site generator"
-]
+++
# Hugo