Update index, add ~cafe spotlight, update CSS

and more...

commiting months-old changes, don't mind me.
This commit is contained in:
hedy 2022-05-04 19:52:40 +08:00
parent cc33c2ae47
commit 8b88fac484
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
15 changed files with 141 additions and 43 deletions

View File

@ -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 }}
---

11
archetypes/posts.md Normal file
View File

@ -0,0 +1,11 @@
---
title: "{{ slicestr (replace .Name "-" " ") 11 | title }}"
date: {{ .Date }}
draft: true
outputs:
- html
- gemtext
slug: {{ slicestr .Name 11 }}
---

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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
```
.-----------------------------------------------.

View File

@ -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
{{<table>}}
| key | value |

57
content/cafe-spotlight.md Normal file
View File

@ -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 <small>by [~tweska](https://tilde.cafe/~tweska/)</small>
A gallery of all WWW user homepages on ~cafe
[Take a look >>>>](https://tilde.cafe/~tweska/gallery/)
## Brainfuck online <small>by [~samhunter](https://tilde.cafe/~samhunter)</small>
An online BF interpreter (JavaScript required).
[Check it out!](https://tilde.cafe/~samhunter/bf)
## Cool CSS Animation <small>by [~gladiator](https://tilde.cafe/~gladiator/)</small>
Some interesting animation made entirely with HTML and CSS!
[![a preview of the animation](../gladiator.png)](https://tilde.cafe/~gladiator)
## ~chrono's blog <small>by [~chrono](https://tilde.cafe/~chrono/)</small>
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 <small>by [~wwwgem](https://tilde.cafe/~wwwgem/)</small>
* [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 :)

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -1,4 +1,4 @@
<p>{{ .Site.Params.Copyright }} · <a href="{{ .Site.Params.src }}">Source</a>
<p>{{ .Site.Params.Copyright }} · <a href="{{ .Site.Params.src }}">Site source</a>
{{- with .OutputFormats.Get "gemtext" }}
{{- $gemurl := replace (replace .Permalink "/gemini" "" 1) "/index.gmi" ".gmi" 1 }}
· <a rel="syndication" class="u-syndication" href="{{ $gemurl | safeURL }}">View on Gemini</a>

View File

@ -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 }}

BIN
static/gladiator.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB