add stuff & i dont really want to do this but i have no choice. testing in prod....
Some checks failed
pipeline / deploy-job (push) Failing after 37s
Some checks failed
pipeline / deploy-job (push) Failing after 37s
This commit is contained in:
parent
df2491f0c0
commit
73a51d5fbd
@ -1,7 +1,7 @@
|
|||||||
baseURL = "https://fzorb.xyz/"
|
baseURL = "https://fzorb.xyz/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "FzOrb's website"
|
title = "FzOrb's website"
|
||||||
theme = "zmin"
|
theme = "fzmin"
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Home"
|
name = "Home"
|
||||||
@ -18,15 +18,10 @@ name = "Services"
|
|||||||
pageRef = "/services"
|
pageRef = "/services"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
[[menus.main]]
|
|
||||||
name = "Thoughts"
|
|
||||||
pageRef = "/thoughts"
|
|
||||||
weight = 40
|
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "File Uploader"
|
name = "File Uploader"
|
||||||
pageRef = "/upload"
|
pageRef = "/upload"
|
||||||
weight = 50
|
weight = 40
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
9
content/posts/1-12-2024-updates.md
Normal file
9
content/posts/1-12-2024-updates.md
Normal file
@ -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.
|
@ -16,3 +16,9 @@ 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.
|
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.
|
Anyways, it's getting late and I'm going to go to sleep. Thanks for reading.
|
||||||
|
|
||||||
|
<script data-isso="https://isso.fzorb.xyz/" src="https://isso.fzorb.xyz/js/embed.min.js"></script>
|
||||||
|
|
||||||
|
<section id="isso-thread">
|
||||||
|
<noscript>Javascript needs to be activated to view comments.</noscript>
|
||||||
|
</section>
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Thoughts"
|
|
||||||
---
|
|
||||||
Small posts about random stuff that's been going through my head lately
|
|
@ -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!
|
|
5
themes/fzmin/.gitignore
vendored
Normal file
5
themes/fzmin/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.Rproj.user
|
||||||
|
.Rhistory
|
||||||
|
.RData
|
||||||
|
.Ruserdata
|
||||||
|
exampleSite/public
|
20
themes/fzmin/LICENSE.md
Normal file
20
themes/fzmin/LICENSE.md
Normal file
@ -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.
|
30
themes/fzmin/README.md
Normal file
30
themes/fzmin/README.md
Normal file
@ -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)
|
4
themes/fzmin/archetypes/default.md
Normal file
4
themes/fzmin/archetypes/default.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: ''
|
||||||
|
date: ''
|
||||||
|
---
|
5
themes/fzmin/layouts/404.html
Normal file
5
themes/fzmin/layouts/404.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
404 NOT FOUND
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
20
themes/fzmin/layouts/_default/list.html
Normal file
20
themes/fzmin/layouts/_default/list.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
{{if not .IsHome }}
|
||||||
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{{ $pages := .Pages }}
|
||||||
|
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
|
||||||
|
{{ range (where $pages "Section" "!=" "") }}
|
||||||
|
<li>
|
||||||
|
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
12
themes/fzmin/layouts/_default/single.html
Normal file
12
themes/fzmin/layouts/_default/single.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
<div class="article-meta">
|
||||||
|
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
|
||||||
|
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
|
||||||
|
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
{{ .Content }}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
13
themes/fzmin/layouts/_default/terms.html
Normal file
13
themes/fzmin/layouts/_default/terms.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
|
<ul class="terms">
|
||||||
|
{{ range .Data.Terms }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
6
themes/fzmin/layouts/partials/foot_custom.html
Normal file
6
themes/fzmin/layouts/partials/foot_custom.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<div>
|
||||||
|
<select id="themes">
|
||||||
|
</select>
|
||||||
|
<button onclick="changetheme()">Change theme</button>
|
||||||
|
</div>
|
||||||
|
<div id="aaa"></div>
|
9
themes/fzmin/layouts/partials/footer.html
Normal file
9
themes/fzmin/layouts/partials/footer.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<footer>
|
||||||
|
{{ partial "foot_custom.html" . }}
|
||||||
|
{{ with .Site.Params.footer }}
|
||||||
|
<hr/>
|
||||||
|
{{ replace . "{Year}" now.Year | markdownify}}
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
themes/fzmin/layouts/partials/head_custom.html
Normal file
2
themes/fzmin/layouts/partials/head_custom.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<script defer src="/js/themes.js"></script>
|
||||||
|
<link rel="stylesheet" href="/css/themes/default.css">
|
21
themes/fzmin/layouts/partials/header.html
Normal file
21
themes/fzmin/layouts/partials/header.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.LanguageCode }}">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
||||||
|
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
|
||||||
|
<link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}" />
|
||||||
|
{{ partial "head_custom.html" . }}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<nav>
|
||||||
|
<ul class="menu">
|
||||||
|
<h1>{{ .Site.Title }}</h1>
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
<hr/>
|
||||||
|
</nav>
|
9
themes/fzmin/static/css/fonts.css
Normal file
9
themes/fzmin/static/css/fonts.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
body {
|
||||||
|
font-family: Verdana,sans-serif;
|
||||||
|
font-size: 100%;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
66
themes/fzmin/static/css/style.css
Normal file
66
themes/fzmin/static/css/style.css
Normal file
@ -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); }
|
8
themes/fzmin/static/css/themes/1337.css
Normal file
8
themes/fzmin/static/css/themes/1337.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:root {
|
||||||
|
--text-color: rgb(0, 255, 0);
|
||||||
|
--accent: rgb(0, 255, 0);
|
||||||
|
--bg0: black;
|
||||||
|
--bg1: black;
|
||||||
|
--bg2: black;
|
||||||
|
--bg3: black;
|
||||||
|
}
|
8
themes/fzmin/static/css/themes/default.css
Normal file
8
themes/fzmin/static/css/themes/default.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:root {
|
||||||
|
--text-color: #fdfaff;
|
||||||
|
--accent: #ff4949;
|
||||||
|
--bg0: #110e0e;
|
||||||
|
--bg1: #292323;
|
||||||
|
--bg2: #131010;
|
||||||
|
--bg3: #2e2a2a;
|
||||||
|
}
|
8
themes/fzmin/static/css/themes/red.css
Normal file
8
themes/fzmin/static/css/themes/red.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:root {
|
||||||
|
--text-color: #fdfaff;
|
||||||
|
--accent: #ff4949;
|
||||||
|
--bg0: #110e0e;
|
||||||
|
--bg1: #292323;
|
||||||
|
--bg2: #131010;
|
||||||
|
--bg3: #2e2a2a;
|
||||||
|
}
|
8
themes/fzmin/static/css/themes/winter.css
Normal file
8
themes/fzmin/static/css/themes/winter.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:root {
|
||||||
|
--text-color: #222627;
|
||||||
|
--accent: #33c5ff;
|
||||||
|
--bg0: #eafeff;
|
||||||
|
--bg1: #d3fcff;
|
||||||
|
--bg2: #d6f7ff;
|
||||||
|
--bg3: #defaff;
|
||||||
|
}
|
8
themes/fzmin/static/css/themes/xmin.css
Normal file
8
themes/fzmin/static/css/themes/xmin.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:root {
|
||||||
|
--text-color: black;
|
||||||
|
--accent: #666;
|
||||||
|
--bg0: #eee;
|
||||||
|
--bg1: #ddd;
|
||||||
|
--bg2: #ddd;
|
||||||
|
--bg3: #f9f9f9;
|
||||||
|
}
|
19
themes/fzmin/static/js/themes.js
Normal file
19
themes/fzmin/static/js/themes.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
const themes = ['default', 'xmin', 'winter', '1337', 'red']
|
||||||
|
|
||||||
|
themes.forEach(theme => {
|
||||||
|
document.getElementById("themes").insertAdjacentHTML('afterbegin', "<option id='" + theme + "'>" + theme + "</option>" )
|
||||||
|
});
|
||||||
|
|
||||||
|
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'))
|
12
themes/fzmin/theme.toml
Normal file
12
themes/fzmin/theme.toml
Normal file
@ -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"
|
@ -1 +0,0 @@
|
|||||||
Subproject commit c01873d657a5f884643b575800b116db6b4d2978
|
|
Loading…
Reference in New Issue
Block a user