diff options
author | Julien Dessaux | 2021-09-13 00:48:07 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-13 00:48:07 +0200 |
commit | 23766907958505259eee7dd1c8812f658e5b2ba2 (patch) | |
tree | 86218bf04bfa43a6a703343d3b9cabb27d8885de /content/blog/hugo | |
parent | Updated gentoo upgrades article (diff) | |
download | www-23766907958505259eee7dd1c8812f658e5b2ba2.tar.gz www-23766907958505259eee7dd1c8812f658e5b2ba2.tar.bz2 www-23766907958505259eee7dd1c8812f658e5b2ba2.zip |
Tags overhaul to improve search results, and some light rewording or reformating
Diffstat (limited to '')
-rw-r--r-- | content/blog/hugo/adding-custom-shortcode-age.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/blog/hugo/adding-custom-shortcode-age.md b/content/blog/hugo/adding-custom-shortcode-age.md index afa96b4..1f912bc 100644 --- a/content/blog/hugo/adding-custom-shortcode-age.md +++ b/content/blog/hugo/adding-custom-shortcode-age.md @@ -28,7 +28,12 @@ With this `layouts/shortcodes/age.html` file I can just add the following in a p {{< print "{{% age %}}" >}} {{< / highlight >}} -And if you are wondering how I am able to display a shortcode code inside this page without having it render, it is because I defined another shortcode that does exactly that [here](https://git.adyxax.org/adyxax/www/src/branch/master/layouts/shortcodes/print.html)! Hugo really is a powerful static website generator, it is amazing. +And if you are wondering how I am able to display a shortcode code inside this page without having it render, it is because I defined another shortcode that does exactly like this : +{{< highlight html >}} +{{< print "{{ index .Params 0 }}" >}} +{{< / highlight >}} + +You can find these examples [here](https://git.adyxax.org/adyxax/www/src/branch/master/layouts/shortcodes/)! Hugo really is a powerful static website generator, it is amazing. ## References |