From 1706ade7a4d2161072028aa37dc0af574853a56f Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sun, 30 Jul 2023 06:31:27 +0000
Subject: Linkify demo URL
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 5396a5b..bcf21e0 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
## Demo
-For a current & working demo of this theme, please check out https://alanpearce.codeberg.page/zola-bearblog/ 🎯.
+For a current & working demo of this theme, please check out 🎯.
## Screenshots
--
cgit 1.4.1
From 34239851f861a84de4cc73d8e9a2027656e64c37 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sat, 2 Sep 2023 18:39:12 +0200
Subject: Add netlify status badge to readme
---
README.md | 2 ++
1 file changed, 2 insertions(+)
(limited to 'README.md')
diff --git a/README.md b/README.md
index bcf21e0..e1f2e99 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# Zola ʕ•ᴥ•ʔ Bear Blog
+[![Netlify Status](https://api.netlify.com/api/v1/badges/121b53ce-c913-4604-9179-eb3cca31cd2c/deploy-status)](https://app.netlify.com/sites/zola-bearblog/deploys)
+
🧸 A [Zola](https://www.getzola.org/)-theme based on [Bear Blog](https://bearblog.dev).
> Free, no-nonsense, super-fast blogging.
--
cgit 1.4.1
From 53d198f0745df32ad0a2547e177c57cbdf96eb60 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sat, 2 Sep 2023 18:41:12 +0200
Subject: Move demo site to netlify
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index e1f2e99..2661641 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
## Demo
-For a current & working demo of this theme, please check out 🎯.
+For a current & working demo of this theme, please check out 🎯.
## Screenshots
--
cgit 1.4.1
From 099acbd690f8ae103cee08ed3e693ad7d7bc9ed6 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sat, 2 Sep 2023 19:04:45 +0200
Subject: Add "deploy to netlify" button
---
README.md | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 2661641..9711ad7 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,12 @@ Then, adjust the `config.toml` as detailed below.
For more information, read the official [setup guide][zola-setup-guide] of Zola.
+Alternatively, you can quickly deploy a copy of the theme site to Netlify using this button:
+
+[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://gitlab.com/alanpearce/zola-bearblog)
+
+(Note that this method makes it harder to keep up-to-date with theme updates, which might be necessary for newer versions of Zola.)
+
## Adjust configuration / config.toml
Please check out the included [config.toml](https://codeberg.org/alanpearce/zola-bearblog/src/branch/main/config.toml)
--
cgit 1.4.1
From eed984fb5d48cd39a9444bee5d49e733cc4ee093 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sun, 3 Sep 2023 07:49:31 +0200
Subject: Merge dark/light screenshots into one
---
README.md | 11 +++--------
screenshot-dark.png | Bin 319272 -> 0 bytes
screenshot.png | Bin 317002 -> 262700 bytes
3 files changed, 3 insertions(+), 8 deletions(-)
delete mode 100644 screenshot-dark.png
(limited to 'README.md')
diff --git a/README.md b/README.md
index 9711ad7..db77233 100644
--- a/README.md
+++ b/README.md
@@ -10,13 +10,9 @@
For a current & working demo of this theme, please check out 🎯.
-## Screenshots
+## Screenshot
-⬜️ [Light][light-screenshot]
-![light mode screenshot][light-screenshot]
-
-⬛️ [Dark][dark-screenshot]
-![dark mode screenshot][dark-screenshot]
+![Screenshot][screenshot]
When the user's browser is running »dark mode«, the dark color scheme will be used automatically. The default is the light/white color scheme. Check out the [`style.html`](https://codeberg.org/alanpearce/zola-bearblog/src/branch/main/templates/style.html)-file for the implementation.
@@ -84,5 +80,4 @@ A special thank you goes out to [Herman](https://herman.bearblog.dev), for creat
[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Alan Pearce](https://www.alanpearce.eu/)
[zola-setup-guide]: https://www.getzola.org/documentation/getting-started/installation/
-[light-screenshot]: https://codeberg.org/alanpearce/zola-bearblog/raw/branch/main/screenshot.png
-[dark-screenshot]: https://codeberg.org/alanpearce/zola-bearblog/raw/branch/main/screenshot-dark.png
+[screenshot]: https://codeberg.org/alanpearce/zola-bearblog/raw/branch/main/screenshot.png
diff --git a/screenshot-dark.png b/screenshot-dark.png
deleted file mode 100644
index 266f883..0000000
Binary files a/screenshot-dark.png and /dev/null differ
diff --git a/screenshot.png b/screenshot.png
index 4013a5c..273266a 100644
Binary files a/screenshot.png and b/screenshot.png differ
--
cgit 1.4.1
From a423677c42b7a3f755ee5c2ba434ed77ef6f6b99 Mon Sep 17 00:00:00 2001
From: Oleksii Dobrovolskyi
Date: Wed, 14 Feb 2024 17:30:00 +0200
Subject: Add Home to extra.main_menu so it can be translated on the
multilingual websites
---
README.md | 4 ++++
config.toml | 4 ++++
templates/nav.html | 1 -
3 files changed, 8 insertions(+), 1 deletion(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index db77233..7ebe80b 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,10 @@ Please check out the included [config.toml](https://codeberg.org/alanpearce/zola
Create an array in `extra` with a key of `main_menu`. `url` is passed to [`get_url`](https://www.getzola.org/documentation/templates/overview/#get-url)
```toml
+[[extra.main_menu]]
+name = "Home"
+url = "/"
+
[[extra.main_menu]]
name = "Bear"
url = "@/bear.md"
diff --git a/config.toml b/config.toml
index 78e9f9a..bd675af 100644
--- a/config.toml
+++ b/config.toml
@@ -22,6 +22,10 @@ highlight_code = true
date_format="%d %b, %Y"
webserver_sends_csp_headers=true
+[[extra.main_menu]]
+name = "Home"
+url = "/"
+
[[extra.main_menu]]
name = "Bear"
url = "@/bear.md"
diff --git a/templates/nav.html b/templates/nav.html
index e18fda2..a71652e 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -1,4 +1,3 @@
-Home
{%- if config.extra.main_menu %}
{%- for item in config.extra.main_menu %}
{%- if item.url is matching("https?://") %}
--
cgit 1.4.1
From baabcb634bdffb8623eacc410e8707a3b4afe2b5 Mon Sep 17 00:00:00 2001
From: Emilio Ziniades
Date: Sun, 12 May 2024 15:54:40 +0200
Subject: feat(table of contents): Add table of contents
This feature is disabled by default, but can be enabled/disabled
globally or per-page.
Zola already provides `page.toc`, this PR simply adds a macro
to recursively render that data in nested `ul`s.
It also establishes some configuration options to display it
and set a maximum headers level.
---
README.md | 23 +++++++++++++++++++++++
config.toml | 6 +++++-
content/zola.md | 1 +
templates/macros.html | 12 ++++++++++++
templates/page.html | 7 +++++++
theme.toml | 5 +++++
6 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 templates/macros.html
(limited to 'README.md')
diff --git a/README.md b/README.md
index 7ebe80b..5152949 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,29 @@ The contents of the `index`-page may be changed by editing your `content/_index.
Add a `custom_head.html`-file to your `templates/`-directory. In there you may add a `