Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martignoni/hugo-loremipsum
A Hugo theme component to generate Lorem ipsum
https://github.com/martignoni/hugo-loremipsum
hugo hugo-theme-component lorem lorem-ipsum lorem-ipsum-generator
Last synced: 3 months ago
JSON representation
A Hugo theme component to generate Lorem ipsum
- Host: GitHub
- URL: https://github.com/martignoni/hugo-loremipsum
- Owner: martignoni
- License: gpl-3.0
- Created: 2019-03-29T08:57:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T09:01:27.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T02:07:07.056Z (4 months ago)
- Topics: hugo, hugo-theme-component, lorem, lorem-ipsum, lorem-ipsum-generator
- Language: HTML
- Size: 13.7 KB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hugo - hugo-loremipsum - A Hugo theme component to generate Lorem ipsum. (Theme Components / Non-Official)
README
# hugo-loremipsum
## About
This is not a standalone theme. It is a [Hugo](https://gohugo.io) 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.
## Usage
1. Add the `hugo-loremipsum` as a submodule to be able to get upstream changes later `git submodule add https://github.com/martignoni/hugo-loremipsum.git themes/hugo-loremipsum`
2. Add `hugo-loremipsum` as the left-most element of the `theme` list variable in your site's or theme's configuration file `config.yaml` or `config.toml`. Example, with `config.yaml`:
```yaml
theme: ["hugo-loremipsum", "my-theme"]
```
or, with `config.toml`,
```toml
theme = ["hugo-loremipsum", "my-theme"]
```
3. In your site, use the shortcode, e.g. to generate 3 paragraphs of Lorem ipsum greek text :
```go
{{< loremipsum 3 >}}
```
or simply, for just one paragraph
```go
{{< loremipsum >}}
```### Credits
Copyright © 2019 onwards, Nicolas Martignoni [email protected].
This theme component was possible because of the code published by Chris Allmark in [this Hugo forum post](https://discourse.gohugo.io/t/lorem-ipsum-shortcode-for-hugo/15604/5), with his friendly permission.