use hugo-classic
This commit is contained in:
parent
0bc58e0848
commit
83d0d875a3
5 changed files with 17 additions and 78 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,6 +1,3 @@
|
|||
[submodule "themes/defiance-ng"]
|
||||
path = themes/defiance-ng
|
||||
url = https://gitlab.com/ch0ccyra1n/defiance-ng.git
|
||||
[submodule "themes/hugo-classic"]
|
||||
path = themes/hugo-classic
|
||||
url = https://github.com/goodroot/hugo-classic.git
|
||||
|
|
|
@ -3,13 +3,9 @@ license = ""
|
|||
licenselink = ""
|
||||
languageCode = 'en-us'
|
||||
title = "ch0ccyra1n's website"
|
||||
theme = 'defiance-ng'
|
||||
theme = 'hugo-classic'
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
url = "/"
|
||||
weight = 1
|
||||
[[menu.main]]
|
||||
name = "Posts"
|
||||
url = "/posts/"
|
||||
|
|
|
@ -3,32 +3,34 @@
|
|||
|
||||
{{< rawhtml >}}<img style="border-radius: 25px; max-width: 300px;" src="/images/avatar.png" alt="picture of ch0ccyra1n, a cat sitting at a computer desk">{{< /rawhtml >}}
|
||||
|
||||
Hi, I’m ch0ccyra1n! Thanks for stopping by!
|
||||
Hi, I’m **ch0ccyra1n**! Thanks for stopping by!
|
||||
|
||||
I'm a trans woman, nerd, and anarchist and occasionally post things here. Mainly more techie stuff, since most of my political writings are in *[The Student Insurgent](https://studentinsurgent.org/)*.
|
||||
|
||||
This is my website (***you*** should have one too. even if you don't think it's important, it is.)
|
||||
|
||||
## In my network...
|
||||
- {{< rawhtml >}}<a href="https://gitlab.com/ch0ccyra1n"><img style="width: 20px;" src="https://gitlab.com/favicon.ico" alt="GitLab icon"> My Gitlab</a>{{< /rawhtml >}}, where I publish code.
|
||||
- {{< rawhtml >}}<a href="/posts"><img style="width: 20px;" src="/favicon.ico" alt="ch0ccyra1n's website icon"> My Posts on this blog</a>{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://studentinsurgent.org/authors/ch0ccyra1n/"><img style="width: 22px;" src="/images/insurgent-micro.svg" alt="Insurgent icon"> My Writings for <i>The Student Insurgent</i></a>{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://gitlab.com/ch0ccyra1n"><img style="display: inline; width: 20px;" src="https://gitlab.com/favicon.ico" alt="GitLab icon"> My Gitlab</a>{{< /rawhtml >}}, where I publish code.
|
||||
- {{< rawhtml >}}<a href="/posts"><img style="display: inline; width: 20px;" src="/favicon.ico" alt="ch0ccyra1n's website icon"> My Posts on this blog</a>{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://studentinsurgent.org/authors/ch0ccyra1n/"><img style="display: inline; width: 22px;" src="/images/insurgent-micro.svg" alt="Insurgent icon"> My Writings for <i>The Student Insurgent</i></a>{{< /rawhtml >}}
|
||||
|
||||
## Projects I maintain...
|
||||
- {{< rawhtml >}}<a href="https://gitlab.com/insurgentuo/defiance"><img style="width: 20px;" src="https://gitlab.com/uploads/-/system/project/avatar/38407985/logo-defiance.png?width=48" alt="Mastodon icon"> Defiance</a> Hugo Theme{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://studentinsurgent.org/"><img style="width: 22px;" src="/images/insurgent-micro.svg" alt="Insurgent icon"> <i>The Student Insurgent</i></a> website{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://uostudentworkers.gitlab.io/"><img style="width: 22px; background-color: white;" src="https://uostudentworkers.gitlab.io/img/uosw-logo.png" alt="UO Student Workers icon"> UO Student Workers</a> website{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://emeraldsocial.org/about"><img style="width: 20px;" src="https://emeraldsocial.org/favicon.ico" alt="Mastodon icon"> Emerald Social </a> Mastodon Instance{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://studentinsurgent.org/"><img style="display: inline; width: 22px;" src="/images/insurgent-micro.svg" alt="Insurgent icon"> <i>The Student Insurgent</i></a> website{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://gitlab.com/insurgentuo/defiance"><img style="display: inline; width: 20px;" src="https://gitlab.com/uploads/-/system/project/avatar/38407985/logo-defiance.png?width=48" alt="Defiance icon"> Defiance</a> Hugo Theme{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://uostudentworkers.gitlab.io/"><img style=" display: inline; width: 22px; background-color: white;" src="https://uostudentworkers.gitlab.io/img/uosw-logo.png" alt="UO Student Workers icon"> UO Student Workers</a> website{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://emeraldsocial.org/about"><img style="display: inline; width: 20px;" src="https://emeraldsocial.org/favicon.ico" alt="Mastodon icon"> Emerald Social </a> Mastodon Instance{{< /rawhtml >}}
|
||||
|
||||
## Follow me!
|
||||
## Socials
|
||||
|
||||
- {{< rawhtml >}}<a rel="me" href="https://emeraldsocial.org/@ch0ccyra1n"><img style="width: 20px;" src="https://emeraldsocial.org/favicon.ico" alt="Mastodon icon"> Mastodon</a> (for updates about the instance and my life in-general, as well as cats, memes, and politics) {{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a rel="me" href="https://emeraldsocial.org/@ch0ccyra1n"><img style="display: inline; width: 20px;" src="https://emeraldsocial.org/favicon.ico" alt="Mastodon icon">Follow me on Mastodon</a>{{< /rawhtml >}}
|
||||
|
||||
- {{< rawhtml >}}<a href="/posts/index.xml"><img style="width: 20px;" src="https://www.rssboard.org/images/rss-icon.png" alt="RSS icon"> Subscribe to this blog via RSS</a>{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="/posts/index.xml"><img style="display: inline; width: 20px;" src="https://www.rssboard.org/images/rss-icon.png" alt="RSS icon"> Subscribe to this blog via RSS</a>{{< /rawhtml >}}
|
||||
|
||||
## Contact
|
||||
|
||||
Feel free to send me questions, fanmail, or anything else that's cool through these.
|
||||
|
||||
- {{< rawhtml >}}<a href="https://matrix.to/#/@ch0ccyra1n:planetexpress.me"><img style="width: 20px;" src="https://element.io/images/logo-mark-primary.svg" alt="Element Messenger icon"> Matrix</a> (recommended){{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="mailto:ch0ccyra1n@riseup.net"><img style="width: 20px; background-color: white;" src="/images/envelope-at.svg" alt="E-mail icon"> E-mail</a>{{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="https://matrix.to/#/@ch0ccyra1n:planetexpress.me"><img style="display: inline; width: 20px;" src="https://element.io/images/logo-mark-primary.svg" alt="Element Messenger icon"> Matrix</a> (recommended){{< /rawhtml >}}
|
||||
- {{< rawhtml >}}<a href="mailto:ch0ccyra1n@riseup.net"><img style="display: inline; width: 20px; background-color: white;" src="/images/envelope-at.svg" alt="E-mail icon"> E-mail</a>{{< /rawhtml >}}
|
||||
|
||||
## Recent Posts
|
|
@ -2,59 +2,4 @@
|
|||
title: "Posts"
|
||||
---
|
||||
|
||||
My thoughts and opinions on whatever.
|
||||
|
||||
{{< rawhtml >}}
|
||||
<noscript>
|
||||
<div class="announcement">
|
||||
JavaScript is required for search. You can still read articles without it.
|
||||
</div>
|
||||
</noscript>
|
||||
<div class="search js-only">
|
||||
<input type="text" id="search" placeholder="Search ALL Posts...">
|
||||
<button id="clear-search">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><title>Backspace</title><path d="M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"></path></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
for (e of document.getElementsByClassName("js-only")) {
|
||||
e.classList.remove("js-only");
|
||||
}
|
||||
|
||||
const articles = document.querySelectorAll("#artlist li");
|
||||
const search = document.getElementById("search");
|
||||
const clearSearch = document.getElementById("clear-search");
|
||||
const artlist = document.getElementById("artlist");
|
||||
|
||||
search.addEventListener("input", () => {
|
||||
// grab search input value
|
||||
const searchText = search.value.toLowerCase().trim().normalize('NFD').replace(/\p{Diacritic}/gu, "");
|
||||
const searchTerms = searchText.split(" ");
|
||||
const hasFilter = searchText.length > 0;
|
||||
|
||||
artlist.classList.toggle("list-searched", hasFilter);
|
||||
|
||||
// for each article hide all but matched
|
||||
articles.forEach(article => {
|
||||
const searchString = `${article.textContent} ${article.dataset.tags}`.toLowerCase().normalize('NFD').replace(/\p{Diacritic}/gu, "");
|
||||
const isMatch = searchTerms.every(term => searchString.includes(term));
|
||||
|
||||
article.hidden = !isMatch;
|
||||
article.classList.toggle("matched-article", hasFilter && isMatch);
|
||||
})
|
||||
})
|
||||
|
||||
clearSearch.addEventListener("click", () => {
|
||||
search.value = "";
|
||||
articles.forEach(article => {
|
||||
article.hidden = false;
|
||||
article.classList.remove("matched-article");
|
||||
})
|
||||
|
||||
artlist.classList.remove("list-searched");
|
||||
})
|
||||
})
|
||||
</script>
|
||||
{{< /rawhtml >}}
|
||||
My thoughts and opinions on whatever.
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 3c5e81757137b562792d55a51e4dcb9a87f78847
|
Loading…
Add table
Reference in a new issue