aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/shortcodes/link-group.html
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-14 22:49:26 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-14 22:49:26 +0800
commit1da07b0b4a337342cc48627d9af78e7fd20a45cf (patch)
tree176e21523ae40289591fd5e249ffcc0a477c7380 /www/layouts/shortcodes/link-group.html
parent096f6ca0fa344363b4c76b7418a5743f9536034c (diff)
downloadcrupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.tar.gz
crupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.tar.bz2
crupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.zip
www: move layout files for new version of hugo and fix nested shortcodes.
Diffstat (limited to 'www/layouts/shortcodes/link-group.html')
-rw-r--r--www/layouts/shortcodes/link-group.html25
1 files changed, 0 insertions, 25 deletions
diff --git a/www/layouts/shortcodes/link-group.html b/www/layouts/shortcodes/link-group.html
deleted file mode 100644
index b16c2bc..0000000
--- a/www/layouts/shortcodes/link-group.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="mono link-group">
- {{ $self := . }}
- {{ $lines := slice }}
- {{ range split .Inner "\n" }}
- {{ if strings.ContainsNonSpace . }}
- {{ $lines = $lines | append (strings.TrimSpace .) }}
- {{ end }}
- {{ end }}
- {{ $notitle := false }}
- {{ if .IsNamedParams }}
- {{ $notitle = .Get "notitle" }}
- {{ else }}
- {{ $notitle = in .Params "notitle" }}
- {{ end }}
- {{ if not $notitle }}
- {{ $title := index $lines 0 }}
- <div class="link-group-title">{{ $title | $self.Page.RenderString }}</div>
- {{ $lines = $lines | after 1 }}
- {{ end }}
- <div class="link-group-list">
- {{ range $lines }}
- <div class="link-group-item">{{ . | $self.Page.RenderString }}</div>
- {{ end }}
- </div>
-</div>