From d29af7ee395555e628ee0f3def31c748394cc93b Mon Sep 17 00:00:00 2001 From: ericmarin Date: Mon, 20 Apr 2026 14:06:38 +0200 Subject: hugo! --- .gitignore | 2 ++ LICENCE | 42 ------------------------------------------ README.md | 2 +- archetypes/default.md | 5 +++++ archetypes/til.md | 6 ++++++ content/_index.md | 7 +++++++ content/til/_index.md | 4 ++++ content/til/g-sense-errors.md | 13 +++++++++++++ hugo.toml | 3 +++ index.html | 27 --------------------------- layouts/_partials/footer.html | 1 + layouts/_partials/head.html | 5 +++++ layouts/_partials/header.html | 3 +++ layouts/baseof.html | 19 +++++++++++++++++++ layouts/home.html | 6 ++++++ layouts/til/page.html | 9 +++++++++ layouts/til/section.html | 13 +++++++++++++ 17 files changed, 97 insertions(+), 70 deletions(-) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 archetypes/til.md create mode 100644 content/_index.md create mode 100644 content/til/_index.md create mode 100644 content/til/g-sense-errors.md create mode 100644 hugo.toml delete mode 100644 index.html create mode 100644 layouts/_partials/footer.html create mode 100644 layouts/_partials/head.html create mode 100644 layouts/_partials/header.html create mode 100644 layouts/baseof.html create mode 100644 layouts/home.html create mode 100644 layouts/til/page.html create mode 100644 layouts/til/section.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f1befd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/public +/.hugo_build.lock diff --git a/LICENCE b/LICENCE index be3f7b2..ca9b055 100644 --- a/LICENCE +++ b/LICENCE @@ -617,45 +617,3 @@ Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/README.md b/README.md index e23be64..ebafdf2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # www.ericmarin.dev -My personal website. +My personal website created using [Hugo](https://gohugo.io/) ## License diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/archetypes/til.md b/archetypes/til.md new file mode 100644 index 0000000..d235b3c --- /dev/null +++ b/archetypes/til.md @@ -0,0 +1,6 @@ ++++ +title = "{{ replace .File.ContentBaseName "-" " " | title }}" +date = {{ .Date }} +draft = true +categories = [ "TIL" ] ++++ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..307dc8c --- /dev/null +++ b/content/_index.md @@ -0,0 +1,7 @@ ++++ +title = "Work In Progress" ++++ + +Eric Marin, Student, **Trento** + +[Github profile](https://github.com/eric-marin/) - [Mail](mailto:me@ericmarin.dev) diff --git a/content/til/_index.md b/content/til/_index.md new file mode 100644 index 0000000..d4341fe --- /dev/null +++ b/content/til/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Today I Learned..." ++++ +Bits of knowledge that I acquire each day. diff --git a/content/til/g-sense-errors.md b/content/til/g-sense-errors.md new file mode 100644 index 0000000..72cfebb --- /dev/null +++ b/content/til/g-sense-errors.md @@ -0,0 +1,13 @@ ++++ +title = "G-Sense errors" +date = 2026-04-20T17:50:05+02:00 +draft = false +categories = [ "TIL" ] ++++ +After running `zpool status` I discovered two read errors on the HDD of my homelab. +I checked `smartctl -x /dev/sda` and found 416 G-Sense events. + +They were probably caused by me moving it carelessly. +I ran a self-test to ensure there wasn't any actual damage, and fortunately it was alright. + +My server needs more love. diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..a4c330e --- /dev/null +++ b/hugo.toml @@ -0,0 +1,3 @@ +baseURL = 'https://www.ericmarin.dev/' +locale = 'en-us' +title = 'My Personal Website' diff --git a/index.html b/index.html deleted file mode 100644 index 0d2b980..0000000 --- a/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - -🧅 - - -

Work in Progress

-

Eric Marin, Student, Trento

-

Check out my self hosted repos here and my Github profile

-

Mail

-

This website is licensed under AGPLv3. View the source here.

- - diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html new file mode 100644 index 0000000..ea78525 --- /dev/null +++ b/layouts/_partials/footer.html @@ -0,0 +1 @@ +

© {{ now.Format "2006" }} Eric Marin - Source (AGPLv3)

diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html new file mode 100644 index 0000000..5c09651 --- /dev/null +++ b/layouts/_partials/head.html @@ -0,0 +1,5 @@ + + + +{{ .Title }} + diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html new file mode 100644 index 0000000..28d4b0a --- /dev/null +++ b/layouts/_partials/header.html @@ -0,0 +1,3 @@ + diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..48c3d32 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,19 @@ + + + + {{ partial "head.html" . }} + + +
+ {{ partial "header.html" . }} +
+ +
+ {{ block "main" . }}{{ end }} +
+ +
+ {{ partial "footer.html" . }} +
+ + diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..46dc417 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,6 @@ +{{ define "main" }} +

{{ .Title }}

+
+ {{ .Content }} +
+{{ end }} diff --git a/layouts/til/page.html b/layouts/til/page.html new file mode 100644 index 0000000..baf1fbd --- /dev/null +++ b/layouts/til/page.html @@ -0,0 +1,9 @@ +{{ define "main" }} +
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+{{ end }} diff --git a/layouts/til/section.html b/layouts/til/section.html new file mode 100644 index 0000000..bd8c690 --- /dev/null +++ b/layouts/til/section.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{ .Content }} +
    + {{ range .Pages }} +
  • + {{ .Date.Format "2006-01-02" }} - {{ .Title }} +
  • + {{ end }} +
+
+{{ end }} -- cgit v1.2.3