All checks were successful
Build and Publish / build (push) Successful in 1m42s
43 lines
4.7 KiB
Markdown
43 lines
4.7 KiB
Markdown
<div align="center">
|
|
|
|
# Blog 🌐
|
|
|
|
[](https://www.gohugo.io)
|
|
[](https://brainmade.org)
|
|
[](https://choosealicense.com/licenses/cc-by-sa-4.0/)
|
|
[](https://buymeacoffee.com/nicolabelluti)
|
|
<br>
|
|
[](https://git.nicolabelluti.me/nicolabelluti/blog/actions/?workflow=build-and-publish.yaml)
|
|
|
|
</div><br>
|
|
|
|
> My personal blog, powered by [Hugo](https://gohugo.io/) and the
|
|
> [Blowfish](https://blowfish.page/) theme
|
|
|
|
## Building
|
|
|
|
Install [Hugo](https://gohugo.io/), then run:
|
|
|
|
```shell
|
|
git clone --recursive https://git.nicolabelluti.me/nicolabelluti/blog.git
|
|
cd blog
|
|
hugo --minify --gc
|
|
```
|
|
|
|
You can find the source code of the website in the `public/` directory
|
|
|
|
If you want to start the dev server, you need to run:
|
|
|
|
```shell
|
|
hugo server --buildDrafts --buildFuture
|
|
```
|
|
|
|
## Create a new article
|
|
|
|
To create a new article using the default structure
|
|
(`posts/<year>/<month>/<article_name>`), use this command:
|
|
|
|
```shell
|
|
hugo new content/posts/$(date +%Y/%m)/<Article name>/index.md
|
|
```
|