mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 09:46:11 +01:00
14 lines
No EOL
607 B
Text
14 lines
No EOL
607 B
Text
{{- if or (strings.Contains .Summary "\n") (eq (len .Summary) 0) -}}
|
|
{{- if .Params.bookmarkOf -}}
|
|
{{- $reference := partial "reference.obj" (dict "url" .Params.bookmarkOf "page" .) -}}
|
|
Thoughts on a bookmarked article{{ with $reference.name }}: {{.}}{{ end }}.
|
|
{{- else -}}
|
|
{{- if eq .Section "calendar" -}}(An event I may be going to.) {{ end -}}
|
|
{{- $desc := (index (split .Summary "\n") 0) | plainify | safeHTML -}}
|
|
{{- $desc -}}
|
|
{{- range .Params.tags }} #{{.}}{{ end -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- .Summary -}}
|
|
{{- range .Params.tags }} #{{.}}{{ end -}}
|
|
{{- end -}} |