diff --git a/.gitignore b/.gitignore index c75eecc..73fdcda 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /public +/resources +/.hugo_build.lock diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..021c624 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Nemo D'ACREMONT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..37dd283 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +docker=docker +# docker=podman # if you prefer using podman + +hugo=$(docker) run -u $(shell id -u):$(shell id -g) --rm -p 127.0.0.1:1313:1313 -v .:/src hugomods/hugo +# hugo=hugo # if you have hugo installed + +PHONY += all +all: build + +PHONY += theme +theme: themes/nostyleplease/README.md + +themes/nostyleplease/README.md: + git submodule update + +PHONY += build +build: theme + $(hugo) build + +PHONY += dev +dev: theme + $(hugo) server + +PHONY += clean +clean: + rm -rf public + +.PHONY: $(PHONY) diff --git a/README.md b/README.md index e69de29..0f016ca 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,21 @@ +# My portfolio + +Welcome to my portfolio source, it uses [hugo](https://gohugo.io/) to generate +the site, and it uses the [nostyleplease](https://github.com/hanwenguo/hugo-theme-nostyleplease) theme. + +## Build + +Build the site (it uses docker by default to use hugo, if you have hugo +installed, you can uncomment the hugo=hugo line in the Makefile) : + +```sh +make build +``` + +## Dev mode + +You can run hugo in dev mode using the following command : + +```sh +make dev +```