diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-12-06 22:39:32 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-12-06 22:39:32 -0800 |
| commit | cabe10e0d1fb8e06367b61e6521d75c8301406de (patch) | |
| tree | bea62dac3cb5b319c40329c70a277134cd339691 /indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html | |
| parent | 1d7b20e02dd30cc084f008392e0ac146fe6359b1 (diff) | |
06-first-sdvx-18
Diffstat (limited to 'indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html')
| -rw-r--r-- | indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html b/indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html new file mode 100644 index 0000000..13a5355 --- /dev/null +++ b/indieweb-micro/themes/MinIndie/layouts/shortcodes/mention.html @@ -0,0 +1,8 @@ +{{ $username := .Get 0 }} +{{ $url := .Get 1 }} + +{{ if not $url }} + {{ errorf "mention shortcode requires both username and URL parameters. Usage: {{< mention \"username\" \"https://example.com/@username\" >}}" }} +{{ end }} + +<a href="{{ $url }}" class="u-in-reply-to h-card">@{{ strings.TrimPrefix "@" $username }}</a> |
