Skip to content

Instantly share code, notes, and snippets.

@TomOnTime
Created January 21, 2019 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomOnTime/09d62f321bb796acb7d049efc1461aa2 to your computer and use it in GitHub Desktop.
Save TomOnTime/09d62f321bb796acb7d049efc1461aa2 to your computer and use it in GitHub Desktop.
hello world
cd ~/gitthings/WEBSITEROOT
mkdir -p layouts/partials/plugins/hello_world/
Added these lines to config.toml:
```
[params.plugins.hello_world]
[params.plugins.hello_world.css]
path = "plugins/hello_world/css.css"
[params.plugins.hello_world.head]
path = "plugins/hello_world/head.html"
[params.plugins.hello_world.foot]
path = "plugins/hello_world/foot.html"
cache = true
```
echo '/* css hwcss comment */' > layouts/partials/plugins/hello_world/css.css
echo '<!-- hwhead -->' > layouts/partials/plugins/hello_world/head.html
echo '<!-- hwfoot -->' > layouts/partials/plugins/hello_world/foot.html
$ hugo
| EN
+------------------+-----+
Pages | 54
Paginator pages | 0
Non-page files | 0
Static files | 136
Processed images | 0
Aliases | 13
Sitemaps | 1
Cleaned | 0
Total in 236 ms
$ grep -rl hwcss *
layouts/partials/plugins/hello_world/css.css
$ grep -rl hwhead *
layouts/partials/plugins/hello_world/head.html
$ grep -rl hwfoot *
layouts/partials/plugins/hello_world/foot.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment