This is not a standalone theme. It is a Hugo theme component providing a shortcode: loremipsum
to generate greek text paragraphs.
It starts off with a standard "Lorem ipsum …" text, then randomises the sentence order on each subsequent paragraph.
- Add the
hugo-loremipsum
as a submodule to be able to get upstream changes latergit submodule add https://github.com/martignoni/hugo-loremipsum.git themes/hugo-loremipsum
- Add
hugo-loremipsum
as the left-most element of thetheme
list variable in your site's or theme's configuration fileconfig.yaml
orconfig.toml
. Example, withconfig.yaml
:or, withtheme: ["hugo-loremipsum", "my-theme"]
config.toml
,theme = ["hugo-loremipsum", "my-theme"]
- In your site, use the shortcode, e.g. to generate 3 paragraphs of Lorem ipsum greek text :
or simply, for just one paragraph
{{< loremipsum 3 >}}
{{< loremipsum >}}
Copyright © 2019 onwards, Nicolas Martignoni nicolas@martignoni.net.
This theme component was possible because of the code published by Chris Allmark in this Hugo forum post, with his friendly permission.