Compatibility with newer Zola

This commit is contained in:
Wesley Moore 2021-08-26 09:09:18 +10:00
parent 8a129c1b36
commit c0f032325c
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE
4 changed files with 10 additions and 6 deletions

View file

@ -11,12 +11,14 @@ compile_sass = true
generate_feed = true generate_feed = true
feed_filename = "rss.xml" feed_filename = "rss.xml"
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
[markdown]
# Whether to do syntax highlighting # Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true highlight_code = true
smart_punctuation = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
[extra] [extra]
author = "Wesley Moore" author = "Wesley Moore"

View file

@ -5,7 +5,7 @@
<link>{{ config.base_url }}</link> <link>{{ config.base_url }}</link>
<description>{{ config.description }}</description> <description>{{ config.description }}</description>
<generator>Zola</generator> <generator>Zola</generator>
<language>{{ config.default_language }}</language> <language>{{ lang }}</language>
<managingEditor>{{ config.extra.email }} ({{ config.extra.author }})</managingEditor> <managingEditor>{{ config.extra.email }} ({{ config.extra.author }})</managingEditor>
<webMaster>{{ config.extra.email }} ({{ config.extra.author }})</webMaster> <webMaster>{{ config.extra.email }} ({{ config.extra.author }})</webMaster>
<atom:link href="{{ feed_url }}" rel="self" type="application/rss+xml"/> <atom:link href="{{ feed_url }}" rel="self" type="application/rss+xml"/>

View file

@ -1 +1,2 @@
<img src="{{ resize_image(path=image, width=width * 2, op="fit_width") }}" width="{{ width }}" alt="{{ alt }}" class="image-{{ float }}" /> {% set image = resize_image(path=image, width=width * 2, op="fit_width") %}
<img src="{{ image.url }}" width="{{ width }}" alt="{{ alt }}" class="image-{{ float }}" />

View file

@ -1 +1,2 @@
<img src="{{ resize_image(path=image, width=width, op="fit_width", quality=quality | default(value=75)) }}" alt="{{ alt }}" /> {% set image = resize_image(path=image, width=width, op="fit_width", quality=quality | default(value=75)) %}
<img src="{{ image.url }}" alt="{{ alt }}" />