mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
44 lines
1.9 KiB
Text
44 lines
1.9 KiB
Text
{{- define "main" -}}
|
|
# byJP
|
|
|
|
{{ (partial "about-me.html" .) | plainify }}
|
|
|
|
{{ (partial "intro.html" .) | plainify }}
|
|
|
|
## Recent posts
|
|
|
|
Some of my recent (and more substantial) writing.
|
|
{{ $posts := where .Site.RegularPages "Section" "in" (slice "posts" "bookmarks" "poetry") -}}
|
|
{{- range ($posts.ByPublishDate.Reverse | first 6) }}
|
|
=> {{ partial "noindex.gmi" .RelPermalink}} {{ with .Params.emoji }}{{.}}{{ else }}🔗{{end}} {{ with .Title -}}{{ . }}{{ else }}{{ .Type | singularize | title }}{{ end -}}
|
|
{{- end }}
|
|
|
|
=> /posts/ 📔 More posts (my longer articles)
|
|
=> /bookmarks/ 🔖 More bookmarks (my thoughts on others' interesting writing)
|
|
|
|
## Upcoming events
|
|
|
|
{{ $upcomingEvents := partial "upcoming-events.obj" -}}
|
|
{{- if ge (len $upcomingEvents) 2 -}}
|
|
Maybe you'll see me at **{{ (index $upcomingEvents 0).Title }}** on {{ (partial "year-relative-date.html" (index $upcomingEvents 0).Date) | plainify }}, or **{{ (index $upcomingEvents 1).Title }}** on {{ (partial "year-relative-date.html" (index $upcomingEvents 1).Date) | plainify }}.
|
|
Get in touch if you'd like to go to these, or any other events⁺, together!
|
|
|
|
=> {{ partial "noindex.gmi" (index $upcomingEvents 0).Page.RelPermalink }} {{ (index $upcomingEvents 0).Title }}
|
|
=> {{ partial "noindex.gmi" (index $upcomingEvents 1).Page.RelPermalink }} {{ (index $upcomingEvents 1).Title }}
|
|
|
|
=> /calendar/ 🗓️ My events calendar
|
|
{{- else }}
|
|
Looks like I've not added any events to my blog recently — I'm sure I'd appreciate a recommendation from you!
|
|
{{- end }}
|
|
|
|
{{ with (partial "latest-non-reply-note.obj") }}## A recent note
|
|
📅 {{ .Page.Date.Format "January 2, 2006 — 15:04 (MST)" }}
|
|
|
|
{{ trim (partial "markdown.gmi" .Page.RenderShortcodes) "\r\n " }}{{ end }}
|
|
## Me, elsewhere
|
|
|
|
You can find me across the world wide web; here are a handful of ways to get in touch.
|
|
{{ range .Site.Params.social }}
|
|
=> {{ .url }} {{ .name | humanize }}
|
|
{{- end -}}
|
|
{{- end }}
|