aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/shortcodes
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
commit02b1a87d8fac3a4881968a67274fb825987bc7a0 (patch)
tree085af399922d4c1be7fd35540fcfd7a72fa4b622 /www/layouts/shortcodes
parent448852a474126c42d6d078d0bb82258b7ecc0750 (diff)
downloadcrupest-02b1a87d8fac3a4881968a67274fb825987bc7a0.tar.gz
crupest-02b1a87d8fac3a4881968a67274fb825987bc7a0.tar.bz2
crupest-02b1a87d8fac3a4881968a67274fb825987bc7a0.zip
www: move layout files for new version of hugo and fix nested shortcodes.
Diffstat (limited to 'www/layouts/shortcodes')
-rw-r--r--www/layouts/shortcodes/link-group.html25
-rw-r--r--www/layouts/shortcodes/mono.html3
-rw-r--r--www/layouts/shortcodes/todo.html5
3 files changed, 0 insertions, 33 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>
diff --git a/www/layouts/shortcodes/mono.html b/www/layouts/shortcodes/mono.html
deleted file mode 100644
index ab183a5..0000000
--- a/www/layouts/shortcodes/mono.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="mono-container">
- {{ .Inner | .Page.RenderString }}
-</div>
diff --git a/www/layouts/shortcodes/todo.html b/www/layouts/shortcodes/todo.html
deleted file mode 100644
index b4fc680..0000000
--- a/www/layouts/shortcodes/todo.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<section class="todo {{ .Get "state" }}">
- <h3>{{ .Get "name" }}</h3>
- {{ .Inner }}
-</section>
-