Info
This page is a Draft, for testing purpose only
Lier une page par son nom de fichier avec ‘Ref’
Le shortcode ref
permet de lier vers une page par son nom de fichier.md
Syntaxe:
[Autrepage]({{< ref "hugo-test-shortcodes-collection.en.md" >}})
Résultat:
Insert videos
<video controls loop muted>
<source src="/illustrations/webm.webm" type="video/webm">
Sorry, your browser doesn't support embedded videos.
</video>
Video from Asciinema
Shortcodes
(the support of Shortcodes depends on the theme you use)
Insert a picture with caption
{{< figure src="/img/banner.jpg" title="Landscape" >}}
Insert a Gist
{{< gist spf13 7896402 >}}
Video from Youtube
{{< youtube w7Ft2ymGmfc >}}
Param from Front Matter
{{< param title >}}
will display the title : Hugo: default Shortcodes demonstration
Pages liées
Markup
- Markdown
- Characters, smiley
Shortcodes
- Shortcodes collection
- Notices with the “Notice” shortcode from martignoni
- Default shortcodes provided by Hugo
-
Infoboxes (Discarded: requires
unsafe: true
in the markup config) with<div>
and custom CSS