From a4106b2b0e2bd73bda5a7ecc22659c0920d56ade Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sat, 18 Oct 2025 16:45:59 +0200 Subject: rework website --- content/_index.md | 3 +- content/stuff.md | 7 +---- layouts/_default/_markup/render-heading.html | 4 +++ layouts/_default/baseof.html | 40 ++++++++++++++++++++++++--- layouts/partials/buttons.html | 8 ------ layouts/partials/footer.html | 17 ------------ layouts/partials/head.html | 16 ----------- layouts/partials/header.html | 3 -- layouts/shortcodes/article-list.html | 2 +- static/assets/banporn.png | Bin 1979 -> 0 bytes static/assets/codeberg.png | Bin 1484 -> 0 bytes static/style.css | 27 ++++-------------- 12 files changed, 48 insertions(+), 79 deletions(-) create mode 100644 layouts/_default/_markup/render-heading.html delete mode 100644 layouts/partials/buttons.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html delete mode 100644 static/assets/banporn.png delete mode 100644 static/assets/codeberg.png diff --git a/content/_index.md b/content/_index.md index a9c558e..75f2fb5 100644 --- a/content/_index.md +++ b/content/_index.md @@ -22,6 +22,5 @@ You can contact me if you want to. My public GnuPG key : -- [https://mielota.com/nantha.pgp]() +- https\://mielota.com/nantha.pgp -And [stuff about me](/stuff). diff --git a/content/stuff.md b/content/stuff.md index 8900fdd..6e7ec55 100644 --- a/content/stuff.md +++ b/content/stuff.md @@ -61,15 +61,10 @@ The only workaround I found is using [AUD](https://github.com/Universal-Debloate Here's a small list of people hosting their websites. [You should put](https://zacoons.com/blog/2025-12-09-why-you-should-have-a-website/) tons of links to other people in your website. -- [mielota](/) (yep that's just me) - [Denshi](https://denshi.org) -- [Luke Smith](https://lukesmith.xyz) - [zacoons](https://zacoons.com) - [unixdigest](https://unixdigest.com) -- [Martin Chrzanowski](https://m-chrzan.xyz) -- [Lan (termer)](https://termer.net) -- [Jppaled](https://jppaled.xyz) -- [Eric Murphy](https://ericmurphy.xyz) +- [Luke Smith](https://lukesmith.xyz) ### Guides diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..60e75b7 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ + + + {{strings.Repeat (sub .Level 1) ""}}{{.Text | safeHTML}} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index add4e17..6f4f5b0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,19 +1,51 @@ - + - {{ partial "head.html" . }} + + + + {{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }} + + + + + + {{ $images := .Page.Resources.ByType "image" }} + {{ with index $images 0 }} + {{ $processed := .Resize "600x" }} + {{ $processed := $processed.Crop "512x512" }} + + {{ end }}
- {{ partial "header.html" . }} +

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

{{ else }}{{ .Title }} + {{ end }} +
{{ block "main" . }}{{ end }}
diff --git a/layouts/partials/buttons.html b/layouts/partials/buttons.html deleted file mode 100644 index beb7d9e..0000000 --- a/layouts/partials/buttons.html +++ /dev/null @@ -1,8 +0,0 @@ -
- BAN PORN - Codeberg logo - Logo de mon site -
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 08aa27c..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $isregular := (in .Site.RegularPages .Page) -}} - -{{- if $isregular }} -{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} -{{ if .IsHome }}{{ else }} -
-

Return

{{ end }} - -
-{{- end -}} - -
- diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index c2e3597..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }} - - - - - - -{{- $images := .Page.Resources.ByType "image" }} -{{- with index $images 0 }} -{{- $processed := .Resize "600x" }} -{{- $processed := $processed.Crop "512x512" }} - -{{- end -}} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index a26436e..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,3 +0,0 @@ -

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

{{ else }}{{ .Title }} -{{ end -}} -
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html index 9f245dc..338643c 100644 --- a/layouts/shortcodes/article-list.html +++ b/layouts/shortcodes/article-list.html @@ -3,4 +3,4 @@
  • {{ .Date.Format "02/01/06" }} - {{ .Title }}
  • {{- end }} -See more... +See more... diff --git a/static/assets/banporn.png b/static/assets/banporn.png deleted file mode 100644 index 5efb14d..0000000 Binary files a/static/assets/banporn.png and /dev/null differ diff --git a/static/assets/codeberg.png b/static/assets/codeberg.png deleted file mode 100644 index 1ccfabd..0000000 Binary files a/static/assets/codeberg.png and /dev/null differ diff --git a/static/style.css b/static/style.css index 5e64849..a2ec892 100644 --- a/static/style.css +++ b/static/style.css @@ -9,7 +9,7 @@ @media (prefers-color-scheme: dark) { :root { - --fg: #a9b1d6; + --fg: #bac2e7; --bg: #1a1b26; --sbg: #39405e; --link: #7aa2f7; @@ -18,11 +18,12 @@ body { width: 90%; - max-width: 45em; + max-width: 42em; margin: 1.5em auto; background: var(--bg); color: var(--fg); font-family: var(--regularfont); + font-size: larger; } pre { @@ -38,7 +39,7 @@ code { font-family: var(--titlecodefont); background: var(--sbg); border-radius: 3px; - font-size: smaller; + font-size: 85%; } blockquote { @@ -49,20 +50,10 @@ blockquote { color: #fff; } -.buttons { - text-align: center; -} - a { color: var(--link); } -.finaline { - display: flex; - justify-content: space-between; - align-items: center; -} - .notfound>h1 { font-size: 15em; } @@ -95,7 +86,6 @@ h4, h5, h6 { color: #bb9af7; - line-height: 2em; } hr { @@ -140,13 +130,6 @@ img { } @media print { - - .no-print, - .no-print *, - footer { - display: none !important; - } - .address { overflow: visible; white-space: wrap; @@ -163,4 +146,4 @@ img { .columns { columns: 1; } -} \ No newline at end of file +} -- cgit v1.2.3