Created
January 21, 2019 13:50
-
-
Save TomOnTime/09d62f321bb796acb7d049efc1461aa2 to your computer and use it in GitHub Desktop.
hello world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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