Would it be worth adding an "extended" flavor that has, e.g., SCSS support? A number of hugo themes require this.
See: https://gohugo.io/troubleshooting/faq/#i-get-tocss--this-feature-is-not-available-in-your-current-hugo-version Perhaps something like this? Untested because my web server isn't -current yet. - todd Index: Makefile =================================================================== RCS file: /cvs/ports/www/hugo/Makefile,v retrieving revision 1.20 diff -u -p -u -r1.20 Makefile --- Makefile 21 May 2020 16:37:44 -0000 1.20 +++ Makefile 21 May 2020 17:47:22 -0000 @@ -26,6 +26,16 @@ ALL_TARGET = github.com/gohugoio/hugo SEPARATE_BUILD = Yes +FLAVORS = extended +FLAVOR ?= + +.if ${FLAVOR:Mextended} +MODGO_FLAGS += --tags extended +LIB_DEPENDS += www/libsass +WANTLIB += sass +MAKE_ENV += CGO_CPPFLAGS='-I${LOCALBASE}/include -DUSE_LIBSASS' CGO_LDFLAGS='-L${LOCALBASE}/lib -lsass' +.endif + post-build: cd ${MODGO_WORKSPACE}/bin/ && ./hugo gen man