From df3d7d5734855f72b72bdb18bbf9e3599dec0156 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sun, 21 Sep 2025 17:32:32 +0200 Subject: first commit --- .gitignore | 2 + UNLICENSE | 24 ++++++ content/_index.md | 23 +++++ content/banporn.md | 25 ++++++ hugo.toml | 9 ++ layouts/404.html | 13 +++ layouts/_default/_markup/render-image.html | 1 + layouts/_default/baseof.html | 20 +++++ layouts/_default/home.html | 3 + layouts/_default/list.html | 11 +++ layouts/_default/single.html | 3 + layouts/index.xml | 44 ++++++++++ layouts/partials/buttons.html | 13 +++ layouts/partials/footer.html | 17 ++++ layouts/partials/head.html | 23 +++++ layouts/partials/header.html | 3 + layouts/shortcodes/article-list.html | 6 ++ static/assets/banporn.png | Bin 0 -> 1979 bytes static/assets/codeberg.png | Bin 0 -> 1484 bytes static/assets/github.png | Bin 0 -> 6518 bytes static/assets/rss.png | Bin 0 -> 1468 bytes static/favicon.ico | Bin 0 -> 270398 bytes static/nantha.pgp | Bin 0 -> 2275 bytes static/style.css | 132 +++++++++++++++++++++++++++++ 24 files changed, 372 insertions(+) create mode 100644 .gitignore create mode 100644 UNLICENSE create mode 100644 content/_index.md create mode 100644 content/banporn.md create mode 100644 hugo.toml create mode 100644 layouts/404.html create mode 100755 layouts/_default/_markup/render-image.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.xml create mode 100644 layouts/partials/buttons.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/shortcodes/article-list.html create mode 100644 static/assets/banporn.png create mode 100644 static/assets/codeberg.png create mode 100644 static/assets/github.png create mode 100644 static/assets/rss.png create mode 100644 static/favicon.ico create mode 100644 static/nantha.pgp create mode 100644 static/style.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4b387a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.hugo_build.lock +public/ diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..efb9808 --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +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 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. + +For more information, please refer to diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..7cec2e9 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,23 @@ +--- +title: "Accueil" +date: 2025-09-14T11:51:17+02:00 +--- + +## Bonjour! + +Bienvenue sur ma page web, ici tu peux retrouver pleins de choses me concernant comme des articles, ma clé publique GnuPG, et mes dépôts git. + +## Bidules + +Ici j'ajouterais différents 'trucs' utile à propos de moi au fil du temps. + +- [nantha@mielota.com]() ✉️ +- [https://mielota.com/nantha.pgp](/nantha.pgp) 🔒 + +Avec ma clé publique tu pourras chiffrer des fichiers/mails et je serais le seul à pouvoir les décrypter, si tu sais pas comment ça fonctionne lis [ce guide](https://comfy.guide/client/gpg); ou regardes [cette vidéo](https://www.youtube.com/watch?v=eLKOIjNFwVs) si t'aimes pas lire. + +## Articles + +{{< article-list category="articles" >}} + +Il y a un flux RSS à dispostion si t'es ce genre de personne :) diff --git a/content/banporn.md b/content/banporn.md new file mode 100644 index 0000000..4f01c10 --- /dev/null +++ b/content/banporn.md @@ -0,0 +1,25 @@ +--- +title: "Bannissez la pornographie" +date: 2024-12-26T20:22:08+02:00 +--- + +## La pornographie est une addiction. + +La pornographie a les effets suivants sur ses utilisateurs, elle : + +- Agit comme une drogue sur votre cerveau +- Est cause de dysfonctionnements sexuels +- Donne un sentiment de désintérêt envers votre partenaire +- Donne des attentes irréalistes envers votre partenaire +- Participe à la sexualisation des femmes +- Utilise vos précieuses ressources tel que votre temps, votre énergie (et possiblement votre argent) +- Affecte votre vision de vous même. (vous n'êtes pas fier de consommer ces contenus, l'êtes vous ?) + +## EasyPeasy + +Si vous souhaitez arrêter, il existe un livre donnant [une méthode très simple](https://easypeasymethod.org) pour arrêter de consommer ce genre de contenu. + +## Encore plus de raisons pour arrêter + +- [La page de zacoons sur le sujet](https://zacoons.com/banporn) +- [La page de Denshi sur le sujet](https://denshi.org/antiporn) diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..73972a1 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,9 @@ +baseURL = 'https://mielota.com' +languageCode = 'fr' +title = 'mielota' + +[params] + Email = 'mailto:nantha@mielota.com' + +[markup.highlight] + style = "dracula" diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..737d495 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,13 @@ + + + + + {{ partial "head.html" . }} + + + +

404

+

Tu t'es perdu(e) ? Reviens à la page d'accueil.

+ + + diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100755 index 0000000..0a338b6 --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1 @@ +{{ . | safeHTML }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..add4e17 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,20 @@ + + + + + {{ partial "head.html" . }} + + + +
+ {{ partial "header.html" . }} +
+
+ {{ block "main" . }}{{ end }} +
+
+ {{ partial "footer.html" . }} +
+ + + diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..a3eb9d3 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,11 @@ +{{ define "main" }} +{{ .Content }} + +
+
    + {{ range .Pages }} +
  • {{ .Date.Format "02/01/06" }} - {{ .Title }}
  • + {{ end }} +
+
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..366e181 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{- .Content }} +{{ end }} diff --git a/layouts/index.xml b/layouts/index.xml new file mode 100644 index 0000000..3af797c --- /dev/null +++ b/layouts/index.xml @@ -0,0 +1,44 @@ +{{- $authorEmail := .Site.Params.email }} + +{{- $authorName := .Site.Params.name }} + +{{- $pctx := . }} +{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} +{{- $pages = $pctx.RegularPages }} +{{- else }} +{{- $pages = $pctx.Pages }} +{{- end }} +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ .Site.Title }} + {{ $authorEmail }} ({{ $authorName }}) + Hugo + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + + {{ .Title }}{{ $title := .Title }} + {{ .Permalink }} + {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{- $emailprompt := "" }} + {{- with .Site.Params.links.email }}{{ $emailprompt = printf "← Reply-To" . $title }}{{ end }} + {{ ((printf "%s%s" .Content $emailprompt) | transform.XMLEscape) | safeHTML }} + + {{- end }} + + diff --git a/layouts/partials/buttons.html b/layouts/partials/buttons.html new file mode 100644 index 0000000..7eab99d --- /dev/null +++ b/layouts/partials/buttons.html @@ -0,0 +1,13 @@ +
+ Logo de mon site + Rss Feed logo + BAN PORN + Codeberg logo + GitHub logo + +
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..18bc220 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,17 @@ +{{- $isregular := (in .Site.RegularPages .Page) -}} + +{{- if $isregular }} +{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} +{{ if .IsHome }}{{ else }} +
+

Revenir à l'accueil

{{ end }} + +
+{{- end -}} + +
+ diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..477643d --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,23 @@ + + +{{ with .Params.css }} + +{{- else -}} + +{{- with .Section }} + +{{- end }} +{{- end }} +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }} + + + + + + +{{- $images := .Page.Resources.ByType "image" }} +{{- with index $images 0 }} +{{- $processed := .Resize "600x" }} +{{- $processed := $processed.Crop "512x512" }} + +{{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..96f7542 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,3 @@ +

{{ if .IsHome }}{{ site.Title }}

{{ else }}{{ .Title }} +{{ end -}} +
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html new file mode 100644 index 0000000..755b229 --- /dev/null +++ b/layouts/shortcodes/article-list.html @@ -0,0 +1,6 @@ + diff --git a/static/assets/banporn.png b/static/assets/banporn.png new file mode 100644 index 0000000..5efb14d Binary files /dev/null and b/static/assets/banporn.png differ diff --git a/static/assets/codeberg.png b/static/assets/codeberg.png new file mode 100644 index 0000000..1ccfabd Binary files /dev/null and b/static/assets/codeberg.png differ diff --git a/static/assets/github.png b/static/assets/github.png new file mode 100644 index 0000000..a59308e Binary files /dev/null and b/static/assets/github.png differ diff --git a/static/assets/rss.png b/static/assets/rss.png new file mode 100644 index 0000000..bf60d30 Binary files /dev/null and b/static/assets/rss.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..bb8a57b Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/nantha.pgp b/static/nantha.pgp new file mode 100644 index 0000000..7cd6637 Binary files /dev/null and b/static/nantha.pgp differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..f9a1c56 --- /dev/null +++ b/static/style.css @@ -0,0 +1,132 @@ +:root { + --bg: #e1e2e7; + --fg: #32344a; + --title: #7aa2f7; + --subtitle: #449dab; + --link: #ad80f6; + --regularfont: system-ui; + --titlecodefont: 'Courier New', Courier, monospace; +} + +@media (prefers-color-scheme: dark) { + :root { + --fg: #a9b1d6; + --bg: #1a1b26; + --title: #ad8ee6; + --link: #7aa2f7; + --subtitle: #0db9d7; + } +} + +body { + width: 90%; + max-width: 45em; + margin: 1.5em auto; + background: var(--bg); + color: var(--fg); + font-family: var(--regularfont); +} + +pre { + padding: 1em 1em; + line-break: auto; +} + +a { + color: var(--link); +} + +.finaline { + display: flex; + justify-content: space-between; + align-items: center; +} + +.notfound > h1 { + font-size: 15em; +} + +.notfound { + text-align: center; +} + +h1, h2, h3, pre { + font-family: var(--titlecodefont); +} + +h1 { + font-size: 2.3em; + margin: 0.32em 0em 0em 0em; + color: var(--title); +} + +h2 { + color: var(--subtitle); +} + +hr { + color: var(--fg); +} + +.columns { + columns: 2; +} + +.columns ul { + margin-top: 0em; +} + +.block { + break-inside: avoid; +} + +ul { + padding: 0 0 0 1em; +} + +li { + margin: 0 0 0.1em 0; +} + +footer { + text-align: center; +} + +footer img { + margin: auto; + display: inline-block; +} + +img { + display: block; + margin: auto; + max-height: 25em; + width: auto; + max-width: 100%; +} + +@media print { + + .no-print, + .no-print *, + footer { + display: none !important; + } + + .address { + overflow: visible; + white-space: wrap; + word-break: break-all; + } +} + +@media only screen and (max-width: 768px) { + body { + width: 90%; + font-size: 1.1em; + } + + .columns { + columns: 1; + } +} -- cgit v1.2.3