Skip to content

Commit

Permalink
fix: update all occurences to new config key name
Browse files Browse the repository at this point in the history
- `generate_feeds` now
  • Loading branch information
bhodrolok committed Jul 7, 2024
1 parent 346850f commit 734b4dd
Showing 3 changed files with 11 additions and 23 deletions.
12 changes: 0 additions & 12 deletions content/blog/_index.md

This file was deleted.

6 changes: 3 additions & 3 deletions templates/_blog_header.html
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
<div class="icon">
<a id="go-home" href="/" aria-label="home" ><i class="{{ config.extra.home_icon }} ri-xl"></i></a>
{% if config.extra.feed_in_blog_section -%}
<a href="/blog/{{ config.feed_filename }}" aria-label="rss feed" ><i class="{{ config.extra.rss_icon }} ri-xl"></i></a>
{% elif config.generate_feed -%}
<a href="/{{ config.feed_filename }}" aria-label="rss feed" ><i class="{{ config.extra.rss_icon }} ri-xl"></i></a>
<a href="/blog/{{ config.feed_filenames }}" aria-label="rss feed" ><i class="{{ config.extra.rss_icon }} ri-xl"></i></a>
{% elif config.generate_feeds -%}
<a href="/{{ config.feed_filenames }}" aria-label="rss feed" ><i class="{{ config.extra.rss_icon }} ri-xl"></i></a>
{% endif -%}
<button id="color-toggle" aria-label="dark light mode switch"><i class="ri-moon-line ri-xl"></i></button>
{% if page.extra.toc is defined %}{% set show_toc = page.extra.toc -%}
16 changes: 8 additions & 8 deletions templates/_header.html
Original file line number Diff line number Diff line change
@@ -41,14 +41,14 @@

{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% set rss_icon = load_data(path="static/icons/rss.svg") %}
{% if section.generate_feed %}
{% set_global rss_path = blog_section_path ~ "/" ~ config.feed_filename %}
<!-- <a href="{{ blog_section_path }}/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% elif config.generate_feed %}
{% set rss_path = "/" ~ config.feed_filename %}
<!-- <a href="/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% if section.generate_feeds %}
{% set_global rss_path = blog_section_path ~ "/" ~ config.feed_filenames %}
<!-- <a href="{{ blog_section_path }}/{{ config.feed_filenames }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% elif config.generate_feeds %}
{% set rss_path = "/" ~ config.feed_filenames %}
<!-- <a href="/{{ config.feed_filenames }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% endif %}
{% if section.generate_feed or config.generate_feed %}
{% if section.generate_feeds or config.generate_feeds %}
<a id="rss-btn" href="{{ rss_path }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% endif %}
{% endif %}
@@ -77,7 +77,7 @@
</header>

{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% if section.generate_feed or config.generate_feed %}
{% if section.generate_feeds or config.generate_feeds %}
{% set link = config.base_url ~ rss_path %}
<dialog id="rss-mask">
<div>

0 comments on commit 734b4dd

Please sign in to comment.