diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | config.toml | 6 | ||||
| -rw-r--r-- | netlify.toml | 2 | ||||
| -rw-r--r-- | templates/partials/head.html | 14 | ||||
| -rw-r--r-- | templates/partials/social.html | 13 | ||||
| -rw-r--r-- | theme.toml | 2 |
6 files changed, 29 insertions, 10 deletions
@@ -55,7 +55,7 @@ The Abridge.css demo is simply using Abridge theme as a submodule: [config.toml] ## Quick Start -This theme requires version 0.18.0 or later of [Zola](https://www.getzola.org/documentation/getting-started/installation/) +This theme requires version 0.19.1 or later of [Zola](https://www.getzola.org/documentation/getting-started/installation/) ```bash git clone https://github.com/jieiku/abridge.git diff --git a/config.toml b/config.toml index 21d5258..e7fa3f3 100644 --- a/config.toml +++ b/config.toml @@ -12,7 +12,7 @@ default_language = "en" compile_sass = true minify_html = false build_search_index = true -generate_feed = true +generate_feeds = true taxonomies = [ # {name = "categories", feed = true}, {name = "tags", feed = true}, @@ -44,7 +44,7 @@ smart_punctuation = false # `...` to `…`, `"quote"` to `“curly”` [languages.fr] title = "Abridge" description = "Abridge est un thème Zola rapide et léger utilisant le html sémantique, le CSS abridge.css class-light et aucun JS obligatoire." -generate_feed = true +generate_feeds = true build_search_index = true search.include_title = true # include title of page/section in index search.include_description = true # include description of page/section in index @@ -58,7 +58,7 @@ taxonomies = [ [languages.es] title = "Abridge" description = "Abridge es un tema de Zola rápido y liviano que utiliza HTML semántico, CSS ligero de clase abridge.css y JS no obligatorio." -generate_feed = true +generate_feeds = true build_search_index = true search.include_title = true # include title of page/section in index search.include_description = true # include description of page/section in index diff --git a/netlify.toml b/netlify.toml index 6f854a3..88cfe4d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "zola build && npm run abridge && zola build" [build.environment] -ZOLA_VERSION = "0.18.0" +ZOLA_VERSION = "0.19.1" [context.deploy-preview] command = "zola build --base-url $DEPLOY_PRIME_URL && npm run abridge && zola build --base-url $DEPLOY_PRIME_URL" diff --git a/templates/partials/head.html b/templates/partials/head.html index 4e6b713..b96531c 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -120,10 +120,20 @@ {#- Rss / Atom Feed #} - {%- if config.generate_feed %} - <link rel="alternate" type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="{{ config.title }} Atom/RSS Feed" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" /> + + {%- if config.generate_feeds %} + {%- for feed in config.feed_filenames %} + + {%- if feed is containing('atom') %} + <link rel="alternate" type="application/atom+xml" title="{{ config.title }} Atom Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> {%- endif %} + {%- if feed is containing('rss') %} + <link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> + {%- endif %} + + {%- endfor %} + {%- endif %} diff --git a/templates/partials/social.html b/templates/partials/social.html index 1652a55..cf5d058 100644 --- a/templates/partials/social.html +++ b/templates/partials/social.html @@ -1,7 +1,16 @@ {#- Social Footer Icons #} <nav><div> - {%- if config.generate_feed and config.extra.feed -%} - <a type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom/RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom/RSS Feed"></i></a>{% endif -%} + {%- if config.generate_feeds and config.extra.feed -%} + {%- for feed in config.feed_filenames -%} + + {%- if feed is containing('atom') -%} + <a type="application/atom+xml" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom Feed"></i></a>{% endif -%} + {%- if feed is containing('rss') -%} + <a type="application/rss+xml" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} RSS Feed"></i></a>{% endif -%} + + {%- endfor -%} + {%- endif -%} + {%- if config.extra.mail -%} {%- if config.extra.mail_encode | default(value=true) -%} {%- set base64_email = config.extra.mail -%} @@ -2,7 +2,7 @@ name = "abridge" description = "A fast and lightweight Zola theme using semantic html, a class-light abridge.css, and No mandatory JS." license = "MIT" homepage = "https://github.com/jieiku/abridge" -min_version = "0.18.0" +min_version = "0.19.1" demo = "https://abridge.pages.dev/" # Abridge theme author info |
