diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-20 14:06:38 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-04-21 12:24:41 +0200 |
| commit | d29af7ee395555e628ee0f3def31c748394cc93b (patch) | |
| tree | 001c5420dfcc1262d2a5be3980d12e9eb9994933 | |
| parent | 061585b540bae3c29a6c5b96c4616401cc7d5ed9 (diff) | |
| download | www.ericmarin.dev-d29af7ee395555e628ee0f3def31c748394cc93b.tar.gz www.ericmarin.dev-d29af7ee395555e628ee0f3def31c748394cc93b.zip | |
hugo!
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | LICENCE | 42 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | archetypes/default.md | 5 | ||||
| -rw-r--r-- | archetypes/til.md | 6 | ||||
| -rw-r--r-- | content/_index.md | 7 | ||||
| -rw-r--r-- | content/til/_index.md | 4 | ||||
| -rw-r--r-- | content/til/g-sense-errors.md | 13 | ||||
| -rw-r--r-- | hugo.toml | 3 | ||||
| -rw-r--r-- | index.html | 27 | ||||
| -rw-r--r-- | layouts/_partials/footer.html | 1 | ||||
| -rw-r--r-- | layouts/_partials/head.html | 5 | ||||
| -rw-r--r-- | layouts/_partials/header.html | 3 | ||||
| -rw-r--r-- | layouts/baseof.html | 19 | ||||
| -rw-r--r-- | layouts/home.html | 6 | ||||
| -rw-r--r-- | layouts/til/page.html | 9 | ||||
| -rw-r--r-- | layouts/til/section.html | 13 |
17 files changed, 97 insertions, 70 deletions
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 @@ -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. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - 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 <https://www.gnu.org/licenses/>. - -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 -<https://www.gnu.org/licenses/>. @@ -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 @@ -<!-- - Copyright (C) 2025 Eric Marin - - This program is free software: you can redistribute it and/or modify it under the terms of the - GNU 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License along with this program. If - not, see <https://www.gnu.org/licenses/>. ---> -<!DOCTYPE html> -<html> -<head> -<title>🧅</title> -</head> -<body> - <h1>Work in Progress</h1> - <p>Eric Marin, Student, Trento</p> - <p>Check out my self hosted repos <a href="https://git.ericmarin.dev/">here</a> and my <a href="https://github.com/eric-marin/">Github profile</a></p> - <p><a href="mailto:me@ericmarin.dev">Mail</a></p> - <p>This website is licensed under AGPLv3. View the source <a href="https://git.ericmarin.dev/www.ericmarin.dev.git/">here</a>.</p> -</body> -</html> 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 @@ +<p>© {{ now.Format "2006" }} Eric Marin - <a href="https://git.ericmarin.dev/www.ericmarin.dev.git/">Source (AGPLv3)</a></p> 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 @@ +<meta charset="UTF-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ .Site.Params.description }}{{ end }}{{ end }}"> +<title>{{ .Title }}</title> +<link rel="stylesheet" href="/css/style.css"> 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 @@ +<nav> + <a href="/">Home</a> | <a href="/til/">TIL</a> | <a href="https://git.ericmarin.dev/">Git</a> +</nav> 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 @@ +<!DOCTYPE html> +<html lang="{{ site.Language.Locale }}" dir="{{ or site.Language.Direction `ltr` }}"> + <head> + {{ partial "head.html" . }} + </head> + <body> + <header> + {{ partial "header.html" . }} + </header> + + <main> + {{ block "main" . }}{{ end }} + </main> + + <footer> + {{ partial "footer.html" . }} + </footer> + </body> +</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" }} + <h1>{{ .Title }}</h1> + <section> + {{ .Content }} + </section> +{{ 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" }} + <article> + <h1>{{ .Title }}</h1> + <aside>Published on: {{ .Date.Format "02 Jan 2006" }}</aside> + <section> + {{ .Content }} + </section> + </article> +{{ 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" }} + <section> + <h1>{{ .Title }}</h1> + {{ .Content }} + <ul> + {{ range .Pages }} + <li> + <span>{{ .Date.Format "2006-01-02" }}</span> - <a href="{{ .Permalink }}">{{ .Title }}</a> + </li> + {{ end }} + </ul> + </section> +{{ end }} |
