Skip to content

Commit c36e19d

Browse files
feat: update theme, fix breaking changes
1 parent ee03d49 commit c36e19d

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

config.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ minify_html = true
3333
ignored_content = []
3434

3535
# When set to "true", a feed is automatically generated.
36-
generate_feed = false
36+
generate_feeds = true
3737

3838
# The filename to use for the feed. Used as the template filename, too.
3939
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
4040
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
41-
feed_filename = "atom.xml"
41+
feed_filenames = ["atom.xml"]
42+
43+
author = "TeaDrinkingProgrammer"
4244

4345
# The number of articles to include in the feed. All items are included if
4446
# this limit is not set (the default).
@@ -212,7 +214,7 @@ outdate_alert_days = 183 # How many days will a post be outdated by
212214
outdate_alert_text_before = "This article was last updated "
213215
outdate_alert_text_after = " days ago and may be out of date."
214216

215-
call_to_action_footer_text = "Did you like this blogpost? Then consider subscribing via email or RSS. The email newsletter uses <a href=\"https://buttondown.email/refer/TDP\" target=\"_blank\"> Buttondown</a>, which does not track you."
217+
call_to_action_footer_text = "Did you like this blogpost? Then consider subscribing via email or Atom feed. The email newsletter uses <a href=\"https://buttondown.email/refer/TDP\" target=\"_blank\"> Buttondown</a>, which does not track you."
216218
call_to_action_footer = true
217219

218220
footer_copyright = "© 2023-2024 Stijn van Houwelingen"

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ On the projects page, you can see some of the projects I have made!
1616

1717
This website is made with Zola, Rust and the Selene theme. You can read more about how I made this website on the [blog-post](@/blog/how-to-make-your-blog-blazingly-fast.md).
1818

19-
If you want, you can subscribe using [RSS](/blog/atom.xml) or [email](https://buttondown.email/TDP).
19+
If you want, you can subscribe using [Atom feed](atom.xml) or [email](https://buttondown.email/TDP).

content/blog/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sort_by = "date"
55
template = "blog.html"
66
page_template = "post.html"
77
insert_anchor_links = "left"
8-
generate_feed = true
8+
generate_feeds = true
99

1010
[extra]
1111
lang = 'en'

templates/_call_to_action_footer.html

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
<div class="col gap-8">
2-
{% if page.extra.call_to_action_footer_text is defined %}{% set call_to_action_footer_text = page.extra.call_to_action_footer_text %}{% else %}{% set call_to_action_footer_text = config.extra.call_to_action_footer_text %}{% endif %}
3-
<p class="[&>a]:underline [&>a]:underline-offset-4 [&>a]:decoration-2 [&>a]:decoration-sky-500 [&>a]:dark:decoration-sky-400">{{ call_to_action_footer_text | safe }} </p>
2+
{% if page.extra.call_to_action_footer_text is defined %}{% set call_to_action_footer_text =
3+
page.extra.call_to_action_footer_text %}{% else %}{% set call_to_action_footer_text =
4+
config.extra.call_to_action_footer_text %}{% endif %}
5+
<p
6+
class="[&>a]:underline [&>a]:underline-offset-4 [&>a]:decoration-2 [&>a]:decoration-sky-500 [&>a]:dark:decoration-sky-400">
7+
{{ call_to_action_footer_text | safe }} </p>
48
<div class="flex gap-5">
5-
<form
6-
action="https://buttondown.email/api/emails/embed-subscribe/TDP"
7-
method="post"
8-
target="popupwindow"
9-
onsubmit="window.open('https://buttondown.email/TDP', 'popupwindow')"
10-
class="col gap-2 w-1/2"
11-
>
12-
<input aria-label="Email input field" class="p-2 bg-stone-300 dark:bg-stone-700n placeholder:text-slate-700 dark:placeholder:text-slate-900" placeholder="Enter your email address" type="email" name="email" id="bd-email" />
13-
9+
<form action="https://buttondown.email/api/emails/embed-subscribe/TDP" method="post" target="popupwindow"
10+
onsubmit="window.open('https://buttondown.email/TDP', 'popupwindow')" class="col gap-2 w-1/2">
11+
<input aria-label="Email input field"
12+
class="p-2 bg-stone-300 dark:bg-stone-700n placeholder:text-slate-700 dark:placeholder:text-slate-900"
13+
placeholder="Enter your email address" type="email" name="email" id="bd-email" />
14+
1415
<input class="rounded-md text-black dark:bg-sky-600 p-2 bg-sky-500" type="submit" value="Subscribe" />
1516
</form>
1617
<div class="flex justify-center items-center w-1/2">
1718
{% set rss_icon = load_data(path="static/icon/rss.svg") %}
1819
{% if section.generate_feed -%}
19-
<a class="" href="{{ config.base_url }}/blog/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
20+
<a class="" href="{{ config.base_url }}/blog/{{ config.feed_filenames | first }}" aria-label="atom feed">{{
21+
rss_icon
22+
| safe }}</a>
2023
{% elif config.generate_feed -%}
21-
<a class="" href="{{ config.base_url }}/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
24+
<a class="" href="{{ config.base_url }}/{{ config.feed_filenames | first }}" aria-label="atom feed">{{
25+
rss_icon
26+
|
27+
safe }}</a>
2228
{% endif %}
2329
</div>
2430
</div>
25-
</div>
26-
27-
31+
</div>

0 commit comments

Comments
 (0)