New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugo + update kool create #244
Conversation
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
==========================================
+ Coverage 87.77% 88.03% +0.25%
==========================================
Files 66 66
Lines 2512 2565 +53
==========================================
+ Hits 2205 2258 +53
Misses 283 283
Partials 24 24
Continue to review full report at Codecov.
|
@@ -0,0 +1,3 @@ | |||
scripts: | |||
hugo: kool docker -p 1313:1313 klakegg/hugo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use hugo entrypoint that we already have inside the container with kool exec
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I didn't give much thought into this. The good thing about using kool docker
instead of kool exec
is not depending on the running container. So the option would be kool exec app hugo
. I am fine either way, let me know what you think is best!
Adding new preset for Hugo the static site builder - https://gohugo.io/
TL;DR
Adding new preset for Hugo to locally develop websites. Refactored how
preset-config.yml
create
key handles the target folder.kool create <preset> <folder>
to put the<folder>
into an environment variable and then updated thecreate:
recipes on each existing preset to use it explicitly.🎯 Kool Target version:
Expected behavior
With the new implementation
kool create hugo my-website
should create a new Hugo site and install the presets;kool preset hugo
should add bothkool.yml
anddocker-compose.yml
to the local directory.