diff --git a/archetypes/default.md b/archetypes/default.md index 25a7d98..3d7d363 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,11 +1,11 @@ --- -title: "{{ slicestr (replace .Name "-" " ") 11 | title }}" -date: {{ .Date.Format "2006-01-02" }} +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} draft: true outputs: - html - gemtext -slug: {{ slicestr .Name 11 }} +slug: {{ .Name }} --- diff --git a/archetypes/posts.md b/archetypes/posts.md new file mode 100644 index 0000000..4664684 --- /dev/null +++ b/archetypes/posts.md @@ -0,0 +1,11 @@ +--- +title: "{{ slicestr (replace .Name "-" " ") 11 | title }}" +date: {{ .Date }} +draft: true +outputs: + - html + - gemtext +slug: {{ slicestr .Name 11 }} + +--- + diff --git a/assets/main.css b/assets/main.css index f184865..0084054 100644 --- a/assets/main.css +++ b/assets/main.css @@ -351,6 +351,16 @@ h6 { font-size: .9rem; color: var(--text-light); } + +small { + font-size: .8rem; + color: var(--text-light); +} + +small a { + border-bottom: 0; +} + .after-content { border-top: 1px solid var(--border); margin-top: 2rem; diff --git a/config.toml b/config.toml index a8ef9a7..cf5ffc9 100644 --- a/config.toml +++ b/config.toml @@ -13,7 +13,7 @@ disableHugoGeneratorInject = true [params] src = "https://sr.ht/~hedy/site" logURLPrefix = "https://git.sr.ht/~hedy/site/log/master/item/" -copyright = "© 2021 Hedy Li" +copyright = "© 2021 CC-BY-SA" [taxonomies] tag = "tags" diff --git a/content/_index.gmi b/content/_index.gmi index 0738875..2dc4cca 100644 --- a/content/_index.gmi +++ b/content/_index.gmi @@ -27,8 +27,8 @@ This is where I write longish content, link some of my stuff, and show off some ## Projects -almost all my repos are mirrored on tildegit.org, sr.ht and sometimes (just sometimes) on github. -here are some project homepages that happened to be on gemini +Almost all my repos are mirrored on tildegit.org, sr.ht and sometimes (just sometimes) on github. +Here are some project homepages that happened to be on gemini => //hedy.tilde.cafe/spsrv/ spsrv diff --git a/content/_index.md b/content/_index.md index 279a429..389ff67 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,10 +6,10 @@ outputs: # ~hedy -Hey, you've made it to my website! Please look around and enjoy your time here :D +Hey, you've made it to my website! -This is my personal website. It's also on gemini:// via the same hostname. This website -contains my [blog](./posts/) and [about page](./about/). +This is my personal website. It's also on gemini:// and spartan:// via the same +hostname. This website contains my [blog](./posts/) and [about page](./about/). Keep in mind that many portions of this site is still work in progress, including the CSS. I post to my blog here from time to time, generally once or twice every few months. I also @@ -17,6 +17,9 @@ have a journal where I post shorter, more frequent updates, you can find it here [hedy.flounder.online/journal/](https://hedy.flounder.online/journal/). I might host that here one day as well. +I also have a hand-picked list of cool things on tilde.cafe! Check it out: +[~Cafe Spotlight](https://hedy.tilde.cafe/cafe-spotlight/) + The website source code is FOSS, available here: [sr.ht/~hedy/site](https://sr.ht/~hedy/site). ## Contacts diff --git a/content/about.gmi b/content/about.gmi index 9c2ec41..e2b7a41 100644 --- a/content/about.gmi +++ b/content/about.gmi @@ -1,6 +1,6 @@ She/Her/They -## places online (web) +## Places online (web) => https://tilde.zone/@hedy mastodon => https://sr.ht/~hedy sourcehut @@ -8,20 +8,18 @@ She/Her/They => https://lobste.rs/u/hedy Lobsters => https://tildes.net/user/hedy tildes.net -I'm not always using username "hedy" if you're unsure if someone is me, please contact me +I'm not always using username "hedy" so if you're unsure if someone is me, please contact me. -## contact +## Contact -Use 'hedy' as 'me' unless specified otherwise - -* mastodon: @me@tilde.zone -* email: me at tilde dot cafe -* IRC: me (tilde - preferred. also on libera, ~town, maybe oftc?, ircnow, #!) -* matrix: me:envs.net -* xmpp: me@hmm.st +* mastodon: @hedy@tilde.zone +* email: hedy at tilde dot cafe +* IRC: hedy (tilde - preferred. also on libera, ~town, ircnow, #!) +* matrix: hedy:envs.net +* xmpp: hedy@hmm.st -## uses +## Uses ``` .-----------------------------------------------. diff --git a/content/about.md b/content/about.md index d93499e..d555da6 100644 --- a/content/about.md +++ b/content/about.md @@ -8,30 +8,30 @@ description: "Where people can find me online and software I use" --- -She/Her/They +She/Her -## places online +## Places online -* [mastodon](https://tilde.zone/@hedy) -* [sourcehut](https://sr.ht/~hedy) -* [github](https://github.com/hedyhli) +* [Mastodon](https://tilde.zone/@hedy) +* [Sourcehut](https://sr.ht/~hedy) +* [GitHub](https://github.com/hedyhli) * [Lobsters](https://lobste.rs/u/hedy) * [tildes.net](https://tildes.net/user/hedy) -I'm not always using username "hedy" if you're unsure if someone is me, please contact me +I'm not always using username "hedy" so if you're unsure if someone is me, please contact me. -## contact +## Contact -Use 'hedy' as 'me' unless specified otherwise - -* mastodon: @me@tilde.zone -* email: me at tilde dot cafe -* IRC: me (tilde - preferred. also on libera, ~town, maybe oftc?, ircnow, #!) -* matrix: me:envs.net -* xmpp: me at hmm.st +* mastodon: [@hedy@tilde.zone](https://tilde.zone/@hedy) +* email: hedy at tilde dot cafe +* IRC: hedy ([tilde.chat](https://tilde.chat) - preferred. also on + [libera](https://libera.chat), [~town](https://tilde.town), + [ircnow](https://ircnow.org), [#!](https://hashbang.sh)) +* matrix: hedy:envs.net +* xmpp: hedy at hmm.st -## uses +## Uses {{}} | key | value | diff --git a/content/cafe-spotlight.md b/content/cafe-spotlight.md new file mode 100644 index 0000000..843c185 --- /dev/null +++ b/content/cafe-spotlight.md @@ -0,0 +1,57 @@ +--- +title: "Tilde.Cafe Spotlight" +date: 2022-03-27T15:50:41+08:00 +draft: false +outputs: + - html +slug: cafe-spotlight +description: "Shiny cool stuff by fellow tilde.cafe users" + +--- + +Here are some cool stuff made by fellow tilde.cafe users that I found. + + +## Gallery by [~tweska](https://tilde.cafe/~tweska/) + +A gallery of all WWW user homepages on ~cafe + +[Take a look >>>>](https://tilde.cafe/~tweska/gallery/) + + +## Brainfuck online by [~samhunter](https://tilde.cafe/~samhunter) + +An online BF interpreter (JavaScript required). + +[Check it out!](https://tilde.cafe/~samhunter/bf) + + +## Cool CSS Animation by [~gladiator](https://tilde.cafe/~gladiator/) + +Some interesting animation made entirely with HTML and CSS! + +[![a preview of the animation](../gladiator.png)](https://tilde.cafe/~gladiator) + + +## ~chrono's blog by [~chrono](https://tilde.cafe/~chrono/) + +Joel hosts a blog over on his homepage where he also lists some games he built. +Here are a few blog posts which I found interesting: + +* [2022-03-15 Logging out of YouTube](https://chrono.tilde.cafe/posts/logging-out-of-youtube.html) +* [2022-01-14 Mutt Wizard](https://chrono.tilde.cafe/posts/mutt-wizard.html) +* [2021-08-31 Backup your dotfiles using stow](https://chrono.tilde.cafe/posts/backup-your-dotfiles-using-stow.html) +* [2021-07-01 Adventures with ssh, git and rofi scripts](https://chrono.tilde.cafe/posts/adventures-with-ssh,-git-and-rofi-scripts.html) + + +## ~wwwgem's posts by [~wwwgem](https://tilde.cafe/~wwwgem/) + +* [2021-05-03 shellcheck: check your bash scripts](https://tilde.cafe/~wwwgem/system/04-shellcheckus.html) +* [2021-04-23 Commandline: fd, rga and bat](https://tilde.cafe/~wwwgem/system/03-fd_rga_batus.html) + +They have some cool scripts too! + +--- + +Is there anything I missed? Email me any suggestions on things to include :) + diff --git a/layouts/_default/baseof.gmi b/layouts/_default/baseof.gmi index 184fa28..e791126 100644 --- a/layouts/_default/baseof.gmi +++ b/layouts/_default/baseof.gmi @@ -1,5 +1,10 @@ {{ block "content" . -}}{{ end }} + +=> {{.Params.src}} Source {{- with .OutputFormats.Get "html" }} {{- $weburl := .Permalink }} -=> {{$weburl}} view this page on the web +=> {{$weburl}} View this page on the web +{{if $.GitInfo -}} +Capsule last rebuilt on {{now.Format "2006-01-02" }} +{{- end }} {{- end }} diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 160cb4c..e730461 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,8 +1,13 @@ {{ define "content" -}} # {{ .Title }} +{{ $lastmod := .Lastmod -}} +{{ if lt .Date $lastmod -}} +Last updated {{ .Lastmod.Format "2006-01-02" }}{{ end }} +-- + {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} -- -=> {{ replace .Site.BaseURL "https:" "" }} home +=> {{ replace .Site.BaseURL "https:" "" }} Home {{- end }} diff --git a/layouts/index.gmi b/layouts/index.gmi index 02d85e5..78ed25e 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -10,5 +10,4 @@ => {{replace (replace .Permalink "/gemini" "" 1) "/index.gmi" ".gmi" 1}} {{ .Date.Format "2006-01-02" }}: {{.Title | safeHTML}}{{ end }}{{ end }} -- -=> {{ .Site.Params.src }} Site source code {{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 423eff7..5c0365f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,4 @@ -

{{ .Site.Params.Copyright }} · Source +

{{ .Site.Params.Copyright }} · Site source {{- with .OutputFormats.Get "gemtext" }} {{- $gemurl := replace (replace .Permalink "/gemini" "" 1) "/index.gmi" ".gmi" 1 }} · View on Gemini diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi index f3db2c8..aa21c91 100644 --- a/layouts/posts/single.gmi +++ b/layouts/posts/single.gmi @@ -4,12 +4,22 @@ Posted {{ .Date.Format "2006-01-02" }} {{ $lastmod := .Lastmod -}} {{ if lt .Date $lastmod -}} -Last updated {{ .Lastmod.Format "2006-01-02" }} -{{ end -}} ---- +Last updated {{ .Lastmod.Format "2006-01-02" }}{{ end }} +{{ $taxonomy := "tags" -}} +{{- with .Param $taxonomy -}} +{{- if gt (len .) 1 -}} +Tags: +{{- else if gt (len .) 0 -}} +Tag: +{{- end -}} + +{{ range $index, $tag := . -}}{{- with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} +{{- if $index -}}, {{ end -}}{{ if (not $index) }}{{printf " "}}{{end}}{{ $tag | urlize }}{{- end -}}{{- end }} +{{- end }} +-- {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} -- -=> .. home +=> .. Home {{- end }} diff --git a/static/gladiator.png b/static/gladiator.png new file mode 100644 index 0000000..fb9a366 Binary files /dev/null and b/static/gladiator.png differ