Feature: conversion of theme to hugo module (#147) #149
+62
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up in #147, this PR converts the theme into a hugo module and automatically pulls in
bulma
as dependency.With this PR in place, setting up a new site based on
shadocs
can be done via:With this PR applied, you can preview the exampleSite simply via
hugo server
(nobulma
submodule checkout andthemesDir=../..
needed any more).Notes:
v1.3.0
(note the leadingv
), since this conforms to go`s naming convention for go modules.hugo mod vendor
at the command prompt. This creates a directory_vendor
containing the theme module sources (incl.bulma
dependency).hugo mod get -u github.com/jgazeau/[email protected]
. That's it!bulma
within the theme itself:hugo mod get -u github.com/jhthms/[email protected]
I hope you like my PR. With this PR in place, we have the foundation to get some goodies added to your theme, I have something in mind here.
This PR closes #147.