hugo-owu-se : hard commitment
This commit is contained in:
parent
54ec37ee4f
commit
92fb79c4ef
4
assets/css/specials.css
Normal file
4
assets/css/specials.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#footer-url {
|
||||||
|
text-decoration: none;
|
||||||
|
color:rgb(214, 124, 40);
|
||||||
|
}
|
42
assets/js/image-array.js
Normal file
42
assets/js/image-array.js
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
let imgArray = [
|
||||||
|
"10.avif",
|
||||||
|
"11.avif",
|
||||||
|
"12.avif",
|
||||||
|
"13.avif",
|
||||||
|
"14.avif",
|
||||||
|
"15.avif",
|
||||||
|
"16.avif",
|
||||||
|
"17.avif",
|
||||||
|
"18.avif",
|
||||||
|
"19.avif",
|
||||||
|
"1.avif",
|
||||||
|
"20.avif",
|
||||||
|
"21.avif",
|
||||||
|
"22.avif",
|
||||||
|
"23.avif",
|
||||||
|
"24.avif",
|
||||||
|
"25.avif",
|
||||||
|
"26.avif",
|
||||||
|
"27.avif",
|
||||||
|
"28.avif",
|
||||||
|
"29.avif",
|
||||||
|
"2.avif",
|
||||||
|
"30.avif",
|
||||||
|
"31.avif",
|
||||||
|
"32.avif",
|
||||||
|
"33.avif",
|
||||||
|
"34.avif",
|
||||||
|
"35.avif",
|
||||||
|
"36.avif",
|
||||||
|
"37.avif",
|
||||||
|
"38.avif",
|
||||||
|
"39.avif",
|
||||||
|
"3.avif",
|
||||||
|
"40.avif",
|
||||||
|
"4.avif",
|
||||||
|
"5.avif",
|
||||||
|
"6.avif",
|
||||||
|
"7.avif",
|
||||||
|
"8.avif",
|
||||||
|
"9.avif",
|
||||||
|
];
|
19
assets/js/image-randomize.js
Normal file
19
assets/js/image-randomize.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
function randomImageBroker(ElemName, imgArray) {
|
||||||
|
const imgEl = document.getElementById(ElemName);
|
||||||
|
randomImage(imgEl, imgArray)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function randomImage(imgELM, srcArray) {
|
||||||
|
const randomIndex = Math.floor(Math.random()*srcArray.length);
|
||||||
|
imgELM.src = srcArray[randomIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
base_path = "/images/weebos_avif/";
|
||||||
|
//file_extension = ".avif"
|
||||||
|
|
||||||
|
// Create a new array to store the modified strings
|
||||||
|
imgArray = imgArray.map(img_path => base_path + img_path);
|
||||||
|
|
||||||
|
//console.log(imgArray)
|
||||||
|
document.onload = randomImageBroker('homepage-rand-img', imgArray);
|
13
config.toml
13
config.toml
@ -1,6 +1,6 @@
|
|||||||
baseURL = 'https://owu.se'
|
baseURL = 'https://owu.se'
|
||||||
languageCode = 'en-us'
|
languageCode = 'en-us'
|
||||||
title = 'My New Hugo Site'
|
title = "Cozy Camp owu.se Mountain(´∀`)"
|
||||||
theme = 'hugo-bearblog'
|
theme = 'hugo-bearblog'
|
||||||
|
|
||||||
# Generate a nice robots.txt for SEO
|
# Generate a nice robots.txt for SEO
|
||||||
@ -14,7 +14,7 @@ ignoreErrors = ["error-disable-taxonomy"]
|
|||||||
|
|
||||||
[params]
|
[params]
|
||||||
# The "description" of your website. This is used in the meta data of your generated html.
|
# The "description" of your website. This is used in the meta data of your generated html.
|
||||||
description = "Hugo + Bear = :heart:"
|
description = "With ♥️ from An indoor enthusiast"
|
||||||
|
|
||||||
# The path to your "favicon". This should be a square (at least 32px x 32px) png-file.
|
# The path to your "favicon". This should be a square (at least 32px x 32px) png-file.
|
||||||
# Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder.
|
# Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder.
|
||||||
@ -24,12 +24,12 @@ ignoreErrors = ["error-disable-taxonomy"]
|
|||||||
# services like Twitter or Slack want to generate a preview of a link to your site.
|
# services like Twitter or Slack want to generate a preview of a link to your site.
|
||||||
# See https://gohugo.io/templates/internal#twitter-cards and
|
# See https://gohugo.io/templates/internal#twitter-cards and
|
||||||
# https://gohugo.io/templates/internal#open-graph.
|
# https://gohugo.io/templates/internal#open-graph.
|
||||||
images = ["images/share.png"]
|
images = ["images/favicon.png"]
|
||||||
|
|
||||||
# Another "title" :-). This one is used as the site_name on the Hugo's internal
|
# Another "title" :-). This one is used as the site_name on the Hugo's internal
|
||||||
# opengraph structured data template.
|
# opengraph structured data template.
|
||||||
# See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
|
# See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
|
||||||
title = "Hugo ʕ•ᴥ•ʔ Bear"
|
title = "Cozy Camp owu.se Mountain(´∀`)"
|
||||||
|
|
||||||
# This theme will, by default, inject a made-with-line at the bottom of the page.
|
# This theme will, by default, inject a made-with-line at the bottom of the page.
|
||||||
# You can turn it off, but we would really appreciate if you don’t :-).
|
# You can turn it off, but we would really appreciate if you don’t :-).
|
||||||
@ -41,3 +41,8 @@ ignoreErrors = ["error-disable-taxonomy"]
|
|||||||
# for details. An example TOML config that uses [ISO
|
# for details. An example TOML config that uses [ISO
|
||||||
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
|
||||||
# dateFormat = "2006-01-02"
|
# dateFormat = "2006-01-02"
|
||||||
|
|
||||||
|
# based on solutions by papermod : https://github.com/adityatelange/hugo-PaperMod/issues/89
|
||||||
|
# disable integrity on script,stylesheet linking
|
||||||
|
[params.assets]
|
||||||
|
# disableFingerprinting = true
|
||||||
|
@ -2,9 +2,13 @@
|
|||||||
# This title is used as the og:title on Hugo's internal
|
# This title is used as the og:title on Hugo's internal
|
||||||
# opengraph structured data template on the home page.
|
# opengraph structured data template on the home page.
|
||||||
# See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
|
# See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
|
||||||
title = "oɯu.se : Made with ❤️ straight from hell!"
|
title = "Homepage (✿◠‿◠)"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
{{< rawhtml >}}
|
{{< rawhtml >}}
|
||||||
<h1> <span style="color:red;">U</span><span style="color:aquamarine">u</span><span style="color:deepskyblue">U</span><span style="color:indianred">W</span><span style="color:palegreen">w</span><span style="color:plum">U</span><span style="color:slateblue">P</span><span style="color:gold">O</span><span style="color:crimson">d</span> </h1>
|
<figure>
|
||||||
|
<img src="elephant.jpg" id="homepage-rand-img">
|
||||||
|
</figure>
|
||||||
{{< /rawhtml >}}
|
{{< /rawhtml >}}
|
||||||
|
|
||||||
|
[Where to find me?]({{% ref "/findme" %}})
|
6
content/blog/_index.md
Normal file
6
content/blog/_index.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
+++
|
||||||
|
title = "Indexation for blog"
|
||||||
|
date = 2024-03-09T08:43:04+00:00
|
||||||
|
+++
|
||||||
|
|
||||||
|
## One in million possibilities, new post would pop up.
|
28
content/findme.md
Normal file
28
content/findme.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
+++
|
||||||
|
title = "Where to find me?"
|
||||||
|
date = 2024-03-10T14:16:32+00:00
|
||||||
|
|
||||||
|
slug = "findme"
|
||||||
|
+++
|
||||||
|
|
||||||
|
|
||||||
|
{{< rawhtml >}}
|
||||||
|
<pre>
|
||||||
|
E-Mail -> c [at] 3qx.nl
|
||||||
|
</pre>
|
||||||
|
{{< /rawhtml >}}
|
||||||
|
|
||||||
|
PGP Key -> `21D18F8C0BE428F50A3380BB41D406044E2434BF`
|
||||||
|
{{< rawhtml >}}
|
||||||
|
<pre>
|
||||||
|
<a href="/assets/misc/c_pgp.txt">Here</a>, <a href="https://keys.openpgp.org/vks/v1/by-fingerprint/21D18F8C0BE428F50A3380BB41D406044E2434BF">openpgp</a>
|
||||||
|
</pre>
|
||||||
|
{{< /rawhtml >}}
|
||||||
|
|
||||||
|
PGP Key -> `923DFF2B99B75D731C55BF7490667A59A9908AEC`
|
||||||
|
|
||||||
|
{{< rawhtml >}}
|
||||||
|
<pre>
|
||||||
|
<a href="/assets/misc/hej_pgp.txt">Here</a>, <a href="https://keys.openpgp.org/vks/v1/by-fingerprint/923DFF2B99B75D731C55BF7490667A59A9908AEC">openpgp</a>
|
||||||
|
</pre>
|
||||||
|
{{< /rawhtml >}}
|
8
content/redirect-gitea.md
Normal file
8
content/redirect-gitea.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
+++
|
||||||
|
title = "Source"
|
||||||
|
date = 2024-03-09T19:27:33+07:00
|
||||||
|
slug = 'p-p'
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
|
||||||
|
<!-- This page is reserved for redirection to Gitea Instance hosted on production server -->
|
1
layouts/partials/custom_footer.html
Normal file
1
layouts/partials/custom_footer.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
`ღ´ This site is (mostly) opensource <a id="footer-url" href="https://owu.se/p-p/minoplhy/hugo-owu-se">site</a>/<a id="footer-url" href="https://owu.se/p-p/minoplhy/hugo-bearblog">theme</a> based on <a id="footer-url" href="https://github.com/janraasch/hugo-bearblog/">Hugo ʕ•ᴥ•ʔ Bear</a> `ღ´
|
24
layouts/partials/custom_head.html
Normal file
24
layouts/partials/custom_head.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{{- /* Special CSS */}}
|
||||||
|
{{- $specials_css := (resources.Get "css/specials.css") | resources.Minify }}
|
||||||
|
{{- if not site.Params.assets.disableFingerprinting }}
|
||||||
|
{{- $specials_css := $specials_css | fingerprint }}
|
||||||
|
<link crossorigin="anonymous" href="{{ $specials_css.RelPermalink }}" integrity="{{ $specials_css.Data.Integrity }}" rel="preload stylesheet" as="style">
|
||||||
|
{{ else }}
|
||||||
|
<link crossorigin="anonymous" href="{{ $specials_css.RelPermalink }}" rel="preload stylesheet" as="style">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ if (.Eq (site.GetPage "/")) }}
|
||||||
|
{{- $image_random := (resources.Get "js/image-randomize.js") | resources.Minify }}
|
||||||
|
{{- $image_array := (resources.Get "js/image-array.js") | resources.Minify }}
|
||||||
|
|
||||||
|
{{- if not site.Params.assets.disableFingerprinting }}
|
||||||
|
{{- $image_random := $image_random | fingerprint }}
|
||||||
|
{{- $image_array := $image_array | fingerprint }}
|
||||||
|
<script async crossorigin="anonymous" src="{{ $image_array.RelPermalink }}" integrity="{{ $image_array.Data.Integrity }}"></script>
|
||||||
|
<script defer crossorigin="anonymous" src="{{ $image_random.RelPermalink }}" integrity="{{ $image_random.Data.Integrity }}"></script>
|
||||||
|
{{ else }}
|
||||||
|
<script async crossorigin="anonymous" src="{{ $image_array.RelPermalink }}"></script>
|
||||||
|
<script defer crossorigin="anonymous" src="{{ $image_random.RelPermalink }}"></script>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
16
pre-build-generate.sh
Normal file
16
pre-build-generate.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Store file names in a Bash array
|
||||||
|
files=($(ls static/images/weebos_avif))
|
||||||
|
|
||||||
|
# Generate JavaScript code with the array
|
||||||
|
cat /dev/null > assets/js/image-array.js
|
||||||
|
echo 'let imgArray = [' >> assets/js/image-array.js
|
||||||
|
|
||||||
|
# Iterate through the file names and add them to the JavaScript array
|
||||||
|
for file in "${files[@]}"; do
|
||||||
|
echo " \"$file\", " >> assets/js/image-array.js
|
||||||
|
done
|
||||||
|
|
||||||
|
# Close the JavaScript array
|
||||||
|
echo "];" >> assets/js/image-array.js
|
BIN
static/images/favicon.png
Normal file
BIN
static/images/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
@ -1 +1 @@
|
|||||||
Subproject commit e437c66e80924bc1bf0896fd524b753b70320f3b
|
Subproject commit d734281a6ae3771e4e7e54bd48c98160ec99c5b8
|
Loading…
Reference in New Issue
Block a user