diff --git a/config.toml b/config.toml index 7503f3f..38f8bc0 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ baseURL = "https://fzorb.xyz/" languageCode = "en-us" title = "FzOrb's website" -theme = "zmin" +theme = "fzmin" [[menus.main]] name = "Home" @@ -18,15 +18,10 @@ name = "Services" pageRef = "/services" weight = 30 -[[menus.main]] -name = "Thoughts" -pageRef = "/thoughts" -weight = 40 - [[menus.main]] name = "File Uploader" pageRef = "/upload" -weight = 50 +weight = 40 [markup.goldmark.renderer] unsafe = true \ No newline at end of file diff --git a/content/posts/1-12-2024-updates.md b/content/posts/1-12-2024-updates.md new file mode 100644 index 0000000..1372a55 --- /dev/null +++ b/content/posts/1-12-2024-updates.md @@ -0,0 +1,9 @@ ++++ +title = "01/12/2024 updates (& something about Romania's national day)" +date = 2024-12-01T10:41:09+02:00 +draft = true ++++ + +## Site updates +* Yesterday I have moved the site to a new host, kinda. This is more of an "experiment" as to test how great my new VPS offer would handle a low traffic website. +* I bit the forbidden apple (JavaScript) and you can now choose a theme for this website. Look at the bottom of the page. \ No newline at end of file diff --git a/content/posts/128mb.md b/content/posts/128mb.md index fdf335b..eafefc8 100644 --- a/content/posts/128mb.md +++ b/content/posts/128mb.md @@ -15,4 +15,10 @@ In the end, I dropped the VPN idea and made a SOCKS5 proxy using `microsocks`. S And I would also like to add how annoying it is to use the console feature of Gullo. The password to the user created to access your container via SSH resets every few hours and it's very annoying to have to log into the panel every time I want to tweak something. I can probably setup SSH on my own container though, but I'll do it in the near future. -Anyways, it's getting late and I'm going to go to sleep. Thanks for reading. \ No newline at end of file +Anyways, it's getting late and I'm going to go to sleep. Thanks for reading. + + + +
+ +
diff --git a/content/thoughts/_index.md b/content/thoughts/_index.md deleted file mode 100644 index 109adf2..0000000 --- a/content/thoughts/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "Thoughts" ---- -Small posts about random stuff that's been going through my head lately \ No newline at end of file diff --git a/content/thoughts/wii.md b/content/thoughts/wii.md deleted file mode 100644 index a766c2b..0000000 --- a/content/thoughts/wii.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -title = 'Happy 18th birthday, Nintendo Wii!' -date = 2024-11-19T20:38:57+02:00 -draft = false -+++ -This guy can drink now! \ No newline at end of file diff --git a/themes/fzmin/.gitignore b/themes/fzmin/.gitignore new file mode 100644 index 0000000..ce130a0 --- /dev/null +++ b/themes/fzmin/.gitignore @@ -0,0 +1,5 @@ +.Rproj.user +.Rhistory +.RData +.Ruserdata +exampleSite/public diff --git a/themes/fzmin/LICENSE.md b/themes/fzmin/LICENSE.md new file mode 100644 index 0000000..259e3d6 --- /dev/null +++ b/themes/fzmin/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017-2022 Yihui Xie + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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 OR +COPYRIGHT HOLDERS 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. diff --git a/themes/fzmin/README.md b/themes/fzmin/README.md new file mode 100644 index 0000000..6a49c3d --- /dev/null +++ b/themes/fzmin/README.md @@ -0,0 +1,30 @@ +# HUGO XMIN + +**NOTE**: fzorb/zmin is the fork of xmin that runs on https://fzorb.xyz/ . + +## _Keep it simple, but not simpler_ + +**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines). + + +```bash +find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xargs wc -l +``` + +``` + 5 ./layouts/404.html + 12 ./layouts/_default/single.html + 20 ./layouts/_default/list.html + 13 ./layouts/_default/terms.html + 0 ./layouts/partials/foot_custom.html + 0 ./layouts/partials/head_custom.html + 9 ./layouts/partials/footer.html + 20 ./layouts/partials/header.html + 51 ./static/css/style.css + 7 ./static/css/fonts.css + 137 total +``` + +I can certainly further reduce the code, for example, by eliminating the CSS, but I believe a tiny bit of CSS can greatly improve readability. You cannot really find many CSS frameworks that only contain 50 lines of code. + +[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.org) diff --git a/themes/fzmin/archetypes/default.md b/themes/fzmin/archetypes/default.md new file mode 100644 index 0000000..fb98e92 --- /dev/null +++ b/themes/fzmin/archetypes/default.md @@ -0,0 +1,4 @@ +--- +title: '' +date: '' +--- diff --git a/themes/fzmin/layouts/404.html b/themes/fzmin/layouts/404.html new file mode 100644 index 0000000..c2e4e40 --- /dev/null +++ b/themes/fzmin/layouts/404.html @@ -0,0 +1,5 @@ +{{ partial "header.html" . }} + +404 NOT FOUND + +{{ partial "footer.html" . }} diff --git a/themes/fzmin/layouts/_default/list.html b/themes/fzmin/layouts/_default/list.html new file mode 100644 index 0000000..06b290a --- /dev/null +++ b/themes/fzmin/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ partial "header.html" . }} + +{{if not .IsHome }} +

{{ .Title | markdownify }}

+{{ end }} + +{{ .Content }} + + + +{{ partial "footer.html" . }} diff --git a/themes/fzmin/layouts/_default/single.html b/themes/fzmin/layouts/_default/single.html new file mode 100644 index 0000000..de3f121 --- /dev/null +++ b/themes/fzmin/layouts/_default/single.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +
+

{{ .Title | markdownify }}

+{{ with .Params.author }}

{{ . }}

{{ end }} +{{ if (gt .Params.date 0) }}

{{ .Date.Format "2006/01/02" }}

{{ end }} +
+ +
+{{ .Content }} +
+ +{{ partial "footer.html" . }} diff --git a/themes/fzmin/layouts/_default/terms.html b/themes/fzmin/layouts/_default/terms.html new file mode 100644 index 0000000..71f47e7 --- /dev/null +++ b/themes/fzmin/layouts/_default/terms.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +

{{ .Title }}

+ + + +{{ partial "footer.html" . }} diff --git a/themes/fzmin/layouts/partials/foot_custom.html b/themes/fzmin/layouts/partials/foot_custom.html new file mode 100644 index 0000000..5ea231d --- /dev/null +++ b/themes/fzmin/layouts/partials/foot_custom.html @@ -0,0 +1,6 @@ +
+ + +
+
\ No newline at end of file diff --git a/themes/fzmin/layouts/partials/footer.html b/themes/fzmin/layouts/partials/footer.html new file mode 100644 index 0000000..f603e17 --- /dev/null +++ b/themes/fzmin/layouts/partials/footer.html @@ -0,0 +1,9 @@ + + + diff --git a/themes/fzmin/layouts/partials/head_custom.html b/themes/fzmin/layouts/partials/head_custom.html new file mode 100644 index 0000000..0ad6f30 --- /dev/null +++ b/themes/fzmin/layouts/partials/head_custom.html @@ -0,0 +1,2 @@ + + diff --git a/themes/fzmin/layouts/partials/header.html b/themes/fzmin/layouts/partials/header.html new file mode 100644 index 0000000..88b3be2 --- /dev/null +++ b/themes/fzmin/layouts/partials/header.html @@ -0,0 +1,21 @@ + + + + + + {{ .Title }} | {{ .Site.Title }} + + + {{ partial "head_custom.html" . }} + + + + diff --git a/themes/fzmin/static/css/fonts.css b/themes/fzmin/static/css/fonts.css new file mode 100644 index 0000000..6d86e4c --- /dev/null +++ b/themes/fzmin/static/css/fonts.css @@ -0,0 +1,9 @@ +body { + font-family: Verdana,sans-serif; + font-size: 100%; + line-height: 1.5; +} +code { + font-family: monospace; + font-size: 100%; +} diff --git a/themes/fzmin/static/css/style.css b/themes/fzmin/static/css/style.css new file mode 100644 index 0000000..69a43aa --- /dev/null +++ b/themes/fzmin/static/css/style.css @@ -0,0 +1,66 @@ + +body { + max-width: 800px; + margin: auto; + padding: 1em; + line-height: 1.5; + background: var(--bg0); + color: var(--text-color); +} + +a { + color: var(--accent); +} + +.isso-thread-heading { + color: var(--text-color) !important; +} + +/* header and footer areas */ +.menu { padding: 0; } +.menu li { display: inline-block;} +.article-meta, .menu a { + text-decoration: none; + background: var(--bg1); + padding: 5px; + border-radius: 5px; +} +.menu h1 { + border-left: 4px solid var(--accent); +} +.menu a:hover { + border-bottom: solid var(--accent); +} +.article-meta, footer { text-align: center;} +.title { font-size: 1.1em; } +footer a { text-decoration: none; } +hr { + border-style: dashed; + color: #ddd; +} + +/* code */ +pre { + border: 1px solid #ddd; + /*box-shadow: 5px 5px 5px #eee;*/ + padding: 1em; + overflow-x: auto; +} +code { background: none; } +pre code { background: none; } + +/* misc elements */ +img, iframe, video { max-width: 100%; } +main { hyphens: auto; } +blockquote { + background: #f9f9f9; + border-left: 5px solid #ccc; + padding: 3px 1em 3px; +} + +table { + margin: auto; +} +table thead th { border-bottom: 1px solid var(--bg3); } +th, td { padding: 5px; } +thead, tfoot, tr:nth-child(even) { background: var(--bg3); } diff --git a/themes/fzmin/static/css/themes/1337.css b/themes/fzmin/static/css/themes/1337.css new file mode 100644 index 0000000..a2fb081 --- /dev/null +++ b/themes/fzmin/static/css/themes/1337.css @@ -0,0 +1,8 @@ +:root { + --text-color: rgb(0, 255, 0); + --accent: rgb(0, 255, 0); + --bg0: black; + --bg1: black; + --bg2: black; + --bg3: black; +} \ No newline at end of file diff --git a/themes/fzmin/static/css/themes/default.css b/themes/fzmin/static/css/themes/default.css new file mode 100644 index 0000000..d2f8071 --- /dev/null +++ b/themes/fzmin/static/css/themes/default.css @@ -0,0 +1,8 @@ +:root { + --text-color: #fdfaff; + --accent: #ff4949; + --bg0: #110e0e; + --bg1: #292323; + --bg2: #131010; + --bg3: #2e2a2a; +} \ No newline at end of file diff --git a/themes/fzmin/static/css/themes/red.css b/themes/fzmin/static/css/themes/red.css new file mode 100644 index 0000000..d2f8071 --- /dev/null +++ b/themes/fzmin/static/css/themes/red.css @@ -0,0 +1,8 @@ +:root { + --text-color: #fdfaff; + --accent: #ff4949; + --bg0: #110e0e; + --bg1: #292323; + --bg2: #131010; + --bg3: #2e2a2a; +} \ No newline at end of file diff --git a/themes/fzmin/static/css/themes/winter.css b/themes/fzmin/static/css/themes/winter.css new file mode 100644 index 0000000..a4e05e6 --- /dev/null +++ b/themes/fzmin/static/css/themes/winter.css @@ -0,0 +1,8 @@ +:root { + --text-color: #222627; + --accent: #33c5ff; + --bg0: #eafeff; + --bg1: #d3fcff; + --bg2: #d6f7ff; + --bg3: #defaff; +} \ No newline at end of file diff --git a/themes/fzmin/static/css/themes/xmin.css b/themes/fzmin/static/css/themes/xmin.css new file mode 100644 index 0000000..634efd9 --- /dev/null +++ b/themes/fzmin/static/css/themes/xmin.css @@ -0,0 +1,8 @@ +:root { + --text-color: black; + --accent: #666; + --bg0: #eee; + --bg1: #ddd; + --bg2: #ddd; + --bg3: #f9f9f9; +} diff --git a/themes/fzmin/static/js/themes.js b/themes/fzmin/static/js/themes.js new file mode 100644 index 0000000..b4a3a4f --- /dev/null +++ b/themes/fzmin/static/js/themes.js @@ -0,0 +1,19 @@ +const themes = ['default', 'xmin', 'winter', '1337', 'red'] + +themes.forEach(theme => { + document.getElementById("themes").insertAdjacentHTML('afterbegin', "" ) +}); + +function changeClientTheme(theme) { + let link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = "/css/themes/" + theme + ".css"; + document.head.appendChild(link); +} + +function changetheme() { + localStorage.setItem("theme", document.getElementById('themes').value); + changeClientTheme(document.getElementById('themes').value) +} + +changeClientTheme(localStorage.getItem('theme')) \ No newline at end of file diff --git a/themes/fzmin/theme.toml b/themes/fzmin/theme.toml new file mode 100644 index 0000000..dc7c1c8 --- /dev/null +++ b/themes/fzmin/theme.toml @@ -0,0 +1,12 @@ +name = "fznin" +license = "MIT" +licenselink = "https://github.com/yihui/hugo-xmin/blob/master/LICENSE.md" +description = "eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS" +homepage = "https://xmin.yihui.org" +tags = ["minimal", "blog", "personal", "clean", "simple", "starter", "minimalist"] +features = ["blog"] +min_version = "0.18" + +[author] + name = "Yihui Xie" + homepage = "https://yihui.org" diff --git a/themes/zmin b/themes/zmin deleted file mode 160000 index c01873d..0000000 --- a/themes/zmin +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c01873d657a5f884643b575800b116db6b4d2978