Compare commits

...

3 Commits

Author SHA1 Message Date
hedy bb61bfd957
Better reply-via-email link and add email subscription link 2024-04-13 09:39:48 +08:00
hedy e3f8b9133b
Fix gemini formatting 2024-04-12 11:02:13 +08:00
hedy 913dfce5c0
Move twt script 2024-04-12 11:02:06 +08:00
11 changed files with 33 additions and 45 deletions

View File

@ -42,6 +42,7 @@ nonsymlink-clean:
find $(GEMINI_DEST) -not -type l -type f -delete
gen:
rm -rf $(HUGO_CACHEDIR)/site/filecache/getresource
$(HUGO) $(HUGO_FLAGS) --cacheDir $(HUGO_CACHEDIR)
gemini:

23
bin/twt
View File

@ -1,23 +0,0 @@
#!/usr/bin/env bash
date=$(date -Iseconds)
dest=deploy@do.hedy.dev
destdir="~/static"
read -p ">> "
if [ -z "$REPLY" ]; then
echo cancelled
exit
fi
rsync --port 22 $dest:"$destdir"/tw.txt .
echo "$date $REPLY" >> tw.txt
echo [...]
tail -n2 tw.txt
echo rsync tw.txt -rav --port 22 $dest:"$destdir"
rsync tw.txt -rav --port 22 $dest:"$destdir"
echo gelim -I 'gemini://warmedal.se/~antenna/submit' -i 'gemini://do.hedy.dev/tw.txt'
gelim -I 'gemini://warmedal.se/~antenna/submit' -i 'gemini://do.hedy.dev/tw.txt'

View File

@ -13,12 +13,14 @@ disableHugoGeneratorInject = true
[params]
description = "~hedy's home: hedy's canonical web presence including contact information and a blog."
src = "https://sr.ht/~hedy/site"
logURLPrefix = "https://git.sr.ht/~hedy/site/log/master/item/"
copyright = "CC-BY-SA"
copyrightLink = "https://creativecommons.org/licenses/by-sa/4.0/"
copyrightYearStart = "2021"
src = "https://sr.ht/~hedy/site"
srcURLPrefix = "https://git.sr.ht/~hedy/site/tree/master/item/"
logURLPrefix = "https://git.sr.ht/~hedy/site/log/master/item/"
shortTitle = "~hedy"
suffixTitle = " | ~hedy" # prepended after page titles

View File

@ -101,7 +101,7 @@ List title 1 List title 2
- Item 3 - Item 3
```
_Voila!_ The two lists are now merged into two columns side by side.
Voila! The two lists are now merged into two columns side by side.
You can easily adjust the spacing between the columns using visual block mode. Place your cursor on the space in-between the two list titles:

View File

@ -3,11 +3,14 @@ date = '2024-04-10T05:22:46Z'
description = 'The visual block mode in Vim/Neovim is quite powerful. You can use it for "column" editing and vertically pasting blocks of text similar to paste(1).'
draft = false
footnotes_heading = 'Footnotes'
outputs = ['html', 'gemtext']
slug = 'vim-column-editing'
tags = ['howto', 'terminal']
title = 'Vim visual block mode for column editing'
EOF = false
publicReplyTo = "mailto:~hedy/posts@lists.sr.ht?cc=hedy%20%3Chedy.dev%40protonmail.com%3E&in-reply-to=%3Cn7UVukOUgCClct4d56HGVviI9Ig0QFF1dp0XIjC1EHZkOq9kBq4oHhA_CpVUa1LKxD73wJAZn4kUaTBoIQtENvNDF6RiSUsMfbN8fT4y2fI%3D%40protonmail.com%3E&subject=Re%3A%20Vim%20visual%20block%20mode%20for%20column%20editing"
+++
The visual block mode in Vim lets you edit text simultaneously across adjacent

View File

@ -1,5 +1,7 @@
These are my long-form musings. I aim to write at least twice a year, but over the past two years I have clearly failed in this aspect. I'll try to write more often.
Comments can be sent to my public mailing list where I'll also send new posts (after 2023) as plain text to. If you subscribe to the list, it acts like a newsletter where you'll receive new posts from your inbox. Posting and subscribing happen solely through emails. No external auth required.
Comments can be sent to my public mailing list where I'll also send new posts (after 2023) as plain text. If you subscribe to the list, it acts like a newsletter where you'll receive new posts from your inbox, and you can reply to the email to start a public discussion.
=> mailto:~hedy.posts@lists.sr.ht
Subscribing and adding comments happen solely through emails. No external auth required.
=> https://lists.sr.ht/~hedy/posts Subscribe to new posts

View File

@ -9,7 +9,10 @@ often.
Comments can be sent to my [public mailing
list](https://lists.sr.ht/~hedy/posts) where I'll also send new posts (after
2023) as plain text to. If you subscribe to the list, it acts like a newsletter
where you'll receive new posts from your inbox. Posting and subscribing happen
solely through emails. No external auth required.
2023) as plain text. If you subscribe to the list, it acts like a newsletter
where you'll receive new posts from your inbox, and you can reply to the email
to start a public discussion.
Subscribing and adding comments happen solely through emails. No external auth
required.

View File

@ -22,10 +22,10 @@
<meta name="color-scheme" content="light dark" />
<meta name="format-detection" content="telephone=no" />
<link rel="webmention" href="https://webmention.io/hedy.tilde.cafe/webmention" />
<link rel="pingback" href="https://webmention.io/hedy.tilde.cafe/xmlrpc" />
<link rel="webmention" href="https://webmention.io/home.hedy.dev/webmention" />
<link rel="pingback" href="https://webmention.io/ome.hedy.dev/xmlrpc" />
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}">
{{- if ne .Site.BaseURL "https://hedy.tilde.cafe/" -}}
{{- if ne .Site.BaseURL "https://home.hedy.dev/" -}}
<meta name="robots" content="noindex">
{{- end -}}

View File

@ -10,9 +10,10 @@
{{- end }}
<p class="meta">
<a href="{{ .Site.BaseURL }}tags/">Tags</a> |
<a href="{{ .Site.BaseURL }}posts/index.xml">RSS feed</a> |
<a href="{{ .Site.BaseURL }}posts/atom.xml">Atom feed</a>
<a href="{{ .Site.BaseURL }}tags/">Tags</a> &nbsp;|&nbsp;
<a href="{{ .Site.BaseURL }}posts/index.xml">RSS feed</a> &nbsp;|&nbsp;
<a href="{{ .Site.BaseURL }}posts/atom.xml">Atom feed</a> &nbsp;|&nbsp;
<a href="https://lists.sr.ht/~hedy/posts">Subscribe via email</a>
</p>
<ul class="post-list">

View File

@ -7,12 +7,11 @@
{{ partial "processed-content.gmi" . }}
--
{{- if (ne .Params.EOF false) }}
EOF
{{ end }}
Questions/comments:
=> mailto:~hedy/posts@lists.sr.ht Public gemlog mailing list (plain-text only)
=> mailto:{{ .Site.Author.email }} Or email me directly
{{ $subject := urlquery (printf "Re: %s" .Title) }}
=> {{ with .Params.publicReplyTo }}{{ . |safeHTML }}{{ else }}mailto:~hedy/posts@lists.sr.ht?subject={{ $subject }}{{ end }} Reply via email publicly (plain-text only)
=> mailto:{{ .Site.Author.email }}?subject={{ $subject }} Reply via email privately
=> / Home
{{- end }}

View File

@ -22,10 +22,10 @@
{{ if (eq .Params.EOF false) }}{{ else }}<p id="#EOF">EOF</p>{{ end }}
<section class="comments">
<p>
Questions, comments? Send an email to my
<a href="mailto:~hedy/posts@lists.sr.ht">blog-post mailing list</a>
Questions, comments? Send an email to my{{ $subject := printf "Re: %s" .Title }}
<a href="mailto:~hedy/posts@lists.sr.ht?subject={{ $subject }}">blog-post mailing list</a>
(with <a href="https://useplaintext.email">plain text</a>)
or to me <a href="mailto:{{ .Site.Author.email }}">directly</a>.
or to me <a href="mailto:{{ .Site.Author.email }}?subject={{ $subject }}">privately</a>.
</p>
</section>
{{- end }}