diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | UNLICENSE | 24 | ||||
| -rw-r--r-- | content/_index.md | 23 | ||||
| -rw-r--r-- | content/banporn.md | 25 | ||||
| -rw-r--r-- | hugo.toml | 9 | ||||
| -rw-r--r-- | layouts/404.html | 13 | ||||
| -rwxr-xr-x | layouts/_default/_markup/render-image.html | 1 | ||||
| -rw-r--r-- | layouts/_default/baseof.html | 20 | ||||
| -rw-r--r-- | layouts/_default/home.html | 3 | ||||
| -rw-r--r-- | layouts/_default/list.html | 11 | ||||
| -rw-r--r-- | layouts/_default/single.html | 3 | ||||
| -rw-r--r-- | layouts/index.xml | 44 | ||||
| -rw-r--r-- | layouts/partials/buttons.html | 13 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 17 | ||||
| -rw-r--r-- | layouts/partials/head.html | 23 | ||||
| -rw-r--r-- | layouts/partials/header.html | 3 | ||||
| -rw-r--r-- | layouts/shortcodes/article-list.html | 6 | ||||
| -rw-r--r-- | static/assets/banporn.png | bin | 0 -> 1979 bytes | |||
| -rw-r--r-- | static/assets/codeberg.png | bin | 0 -> 1484 bytes | |||
| -rw-r--r-- | static/assets/github.png | bin | 0 -> 6518 bytes | |||
| -rw-r--r-- | static/assets/rss.png | bin | 0 -> 1468 bytes | |||
| -rw-r--r-- | static/favicon.ico | bin | 0 -> 270398 bytes | |||
| -rw-r--r-- | static/nantha.pgp | bin | 0 -> 2275 bytes | |||
| -rw-r--r-- | static/style.css | 132 |
24 files changed, 372 insertions, 0 deletions
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 <https://unlicense.org/> 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 @@ +<!DOCTYPE html> +<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> + +<head> + {{ partial "head.html" . }} +</head> + +<body class="notfound"> + <h1>404</h1> + <p>Tu t'es perdu(e) ? Reviens à la page <a href="/">d'accueil</a>.</p> +</body> + +</html> 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 @@ +<img src="{{ .Page.Permalink }}{{ .Destination }}"{{ with .Text }} alt="{{ . | safeHTML }}" title="{{ . | safeHTML }}"{{- end -}}> 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 @@ +<!DOCTYPE html> +<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `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/_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 }} + +<div class="columns"> + <ul> + {{ range .Pages }} + <li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} + </ul> +</div> +{{ 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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> + <link>{{ .Permalink }}</link> + <description>{{ .Site.Title }}</description> + <author>{{ $authorEmail }} ({{ $authorName }})</author> + <generator>Hugo</generator> + <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} + <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} + <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + <item> + <title>{{ .Title }}</title>{{ $title := .Title }} + <link>{{ .Permalink }}</link> + <pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> + {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} + <guid>{{ .Permalink }}</guid> + {{- $emailprompt := "" }} + {{- with .Site.Params.links.email }}{{ $emailprompt = printf "<a href=\"%s?subject=RE: %s\">← Reply-To</a>" . $title }}{{ end }} + <description>{{ ((printf "%s%s" .Content $emailprompt) | transform.XMLEscape) | safeHTML }}</description> + </item> + {{- end }} + </channel> +</rss> 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 @@ +<div style="text-align: center;"> + <a href="/"><img src="/favicon.ico" alt="Logo de mon site" + title="Page Web de Mielota" width="37" height="37"></a> + <a href="/index.xml"><img src="/assets/rss.png" alt="Rss Feed logo" + title="Rss Feed"></a> + <a href="/banporn/"><img src="/assets/banporn.png" alt="BAN PORN" + title="BAN PORN"></a> + <a href="https://codeberg.org/mielota"><img src="/assets/codeberg.png" alt="Codeberg logo" + title="Codeberg"></a> + <a href="https://github.com/mielota"><img src="/assets/github.png" alt="GitHub logo" + title="GitHub"></a> + +</div> 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 }} +<div class="finaline"> + <p class="no-print"><a href="{{ path.Dir .Path }}">Revenir à l'accueil</a></p>{{ end }} + <time datetime="{{ $dateMachine }}">{{ .Date.Format "02/01/2006" }}</time> +</div> +{{- end -}} + +<hr> +<nav> + {{- $title := .Title -}} + <p> + {{ partial "buttons.html" . }} +</nav> 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 @@ +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +{{ with .Params.css }} +<link rel="stylesheet" href="{{ . }}"> +{{- else -}} +<link rel="stylesheet" href="/style.css"> +{{- with .Section }} +<link rel="stylesheet" href="/{{ . }}/{{ . }}.css"> +{{- end }} +{{- end }} +<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}</title> +<meta name="author" content="{{ .Site.Params.email }} ({{ .Site.Params.name }})"> +<meta name="description" content="{{- plainify (chomp .Summary) -}}"> +<!-- OpenGraph specification --> +<meta property="og:title" content="{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}" /> +<meta property="og:description" content="{{- plainify (chomp .Summary) -}}" /> +<meta property="og:url" content="{{ .Permalink}}" /> +{{- $images := .Page.Resources.ByType "image" }} +{{- with index $images 0 }} +{{- $processed := .Resize "600x" }} +{{- $processed := $processed.Crop "512x512" }} +<meta property="og:image" content="{{ $processed.RelPermalink }}" /> +{{- 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 @@ +<h1>{{ if .IsHome }}{{ site.Title }}</h1>{{ else }}{{ .Title }}</h1> +{{ end -}} +<hr> 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 @@ +<ul> + {{- range where .Site.RegularPages "Type" (.Get "category") | first 7 }} + <li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{- end }} + <li><i><a href="{{ .Get "category" }}">Plus...</a></i></li> +</ul> diff --git a/static/assets/banporn.png b/static/assets/banporn.png Binary files differnew file mode 100644 index 0000000..5efb14d --- /dev/null +++ b/static/assets/banporn.png diff --git a/static/assets/codeberg.png b/static/assets/codeberg.png Binary files differnew file mode 100644 index 0000000..1ccfabd --- /dev/null +++ b/static/assets/codeberg.png diff --git a/static/assets/github.png b/static/assets/github.png Binary files differnew file mode 100644 index 0000000..a59308e --- /dev/null +++ b/static/assets/github.png diff --git a/static/assets/rss.png b/static/assets/rss.png Binary files differnew file mode 100644 index 0000000..bf60d30 --- /dev/null +++ b/static/assets/rss.png diff --git a/static/favicon.ico b/static/favicon.ico Binary files differnew file mode 100644 index 0000000..bb8a57b --- /dev/null +++ b/static/favicon.ico diff --git a/static/nantha.pgp b/static/nantha.pgp Binary files differnew file mode 100644 index 0000000..7cd6637 --- /dev/null +++ b/static/nantha.pgp 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; + } +} |
