From f89c458d8aadd9e1347e55005f120cda6142b5a0 Mon Sep 17 00:00:00 2001 From: remvn <34063162+remvn@users.noreply.github.com> Date: Mon, 23 Sep 2024 03:38:06 +0700 Subject: [PATCH] add serve script & makefile --- Makefile | 3 +++ go.mod | 1 + go.sum | 2 ++ serve-local.sh | 5 +++++ 4 files changed, 11 insertions(+) create mode 100755 serve-local.sh diff --git a/Makefile b/Makefile index 5b3eac9..27c75e6 100644 --- a/Makefile +++ b/Makefile @@ -3,3 +3,6 @@ clean: @rm -rf ./public @rm -rf ./resources @echo "deleted public & resources" + +serve: + @./serve-local.sh diff --git a/go.mod b/go.mod index 654efd9..dfae61a 100644 --- a/go.mod +++ b/go.mod @@ -4,4 +4,5 @@ go 1.23.0 require ( github.com/jpanther/congo/v2 v2.9.0 // indirect + github.com/remvn/hugo-vmoji v0.1.1 // indirect ) diff --git a/go.sum b/go.sum index 747584e..ce76057 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ github.com/jpanther/congo/v2 v2.9.0 h1:mq1U8Zqw/F+9dk+AgH7W6Wl2M4LLiRP4v/BCTx4c01Y= github.com/jpanther/congo/v2 v2.9.0/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= +github.com/remvn/hugo-vmoji v0.1.1 h1:boq8S8rLfz5IGUwfzNKJaTwg0WMNTXgV2dF+rBGgqok= +github.com/remvn/hugo-vmoji v0.1.1/go.mod h1:3MtlvWg+Tw6xF7P3fosbrxh3nn/vEbb68TXMoBWyXVM= diff --git a/serve-local.sh b/serve-local.sh new file mode 100755 index 0000000..23a4bdc --- /dev/null +++ b/serve-local.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export HUGO_MODULE_REPLACEMENTS="github.com/remvn/blog -> .., github.com/remvn/hugo-vmoji -> /home/remvn/personal/hugo-vmoji" +echo $HUGO_MODULE_REPLACEMENTS +hugo serve