Skip to content

Commit

Permalink
This PR contains 2 fixes/updates to prepare for Hugo 0.55. (letsencry…
Browse files Browse the repository at this point in the history
…pt#493)

* Set distinct weight for German

In next Hugo the language code will be used as a secondary sort, which will make this more visible.

* Mark the def shortcode as version 1

In the upcoming Hugo 0.55 we have adjusted how we handle the outer-most `{{%` delimiter. In short, it's now included when doing Markdown rendering and similar.

Which is normally a good thing, as it can partake in the ToC, footnotes etc.

The `def` shortcode, however, will not work with this setup, and is marked as `version: 1`. This setting will have no effect on older Hugo versions.
  • Loading branch information
bep authored and bdaehlie committed Apr 12, 2019
1 parent daf2d87 commit f770fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ languageCode= "de-de"
#if colon ":" must be prefixed
beforeColon= ""
# Weight used for sorting.
weight = 10
weight = 40
description = """
Let’s Encrypt ist eine freie, automatisierte und offene Zertifizierungsstelle,
herausgebracht für Sie durch <a href="https://www.abetterinternet.org/">Internet Security Research Group (ISRG)</a>.
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/def.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<!--
Usage (in english):
{% def
Expand Down

0 comments on commit f770fae

Please sign in to comment.