diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-08-31 03:48:02 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-08-31 03:48:02 -0400 |
commit | 30e9489b68540678ffeda38773e41429a0bb16f5 (patch) | |
tree | accf9680a12f00541a1aa6ef60d22f4a3c89fd06 /Makefile | |
parent | 526026c3e9df262e14651e2d6160171f89f5f761 (diff) | |
download | thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.tar.gz thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.tar.bz2 thedroneely.com-30e9489b68540678ffeda38773e41429a0bb16f5.zip |
generators/hugo: Add references and make file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fecbe4d --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +generators: + make openring + make fortune + +openring: + generators/openring/openring \ + -s "https://drewdevault.com/feed.xml" \ + -s "https://mxb.dev/feed.xml" \ + -s "https://www.taniarascia.com/rss.xml" \ + < generators/openring/template.html \ + > generators/hugo/themes/tdro/layouts/partials/generators/openring/openring.html + +fortune: + strfile generators/fortune/quotes.fortune + +hugo: + ln -sfT ../../public generators/hugo/public + cd generators/hugo && hugo && { cd ../.. || exit 1; } + +cockpit: + sed --in-place "s|^hugo_base_dir.*|hugo_base_dir: $PWD/generators/hugo|" cockpit/addons/Hugo/config.yaml + sed --in-place "s|^hugo_theme.*|hugo_theme: tdro|" cockpit/addons/Hugo/config.yaml + +.PHONY: generators |