aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/partials/preview
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/partials/preview
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/partials/preview')
-rw-r--r--www/layouts/partials/preview/article.html10
-rw-r--r--www/layouts/partials/preview/post.html7
-rw-r--r--www/layouts/partials/preview/posts.html7
3 files changed, 0 insertions, 24 deletions
diff --git a/www/layouts/partials/preview/article.html b/www/layouts/partials/preview/article.html
deleted file mode 100644
index 6245434..0000000
--- a/www/layouts/partials/preview/article.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<section class="article-preview">
- <span class="date">{{ .date | time.Format ":date_medium" }}</span>
- {{ (printf `<%[1]s class="title"><a href="%s">%s</a></%[1]s>` .h .link .title) | safeHTML }}
- <p class="content">
- {{ range split .content "\n" | first 5 }}
- {{ . | htmlUnescape }}<br/>
- {{ end }}
- </p>
- <p>... <a class="mono-link" href="{{ .link }}">Read more</a></p>
-</section>
diff --git a/www/layouts/partials/preview/post.html b/www/layouts/partials/preview/post.html
deleted file mode 100644
index f0c6fb5..0000000
--- a/www/layouts/partials/preview/post.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ partial "preview/article.html" (dict
- "h" .h
- "title" .page.Title
- "link" .page.RelPermalink
- "content" .page.Plain
- "date" .page.Date)
-}}
diff --git a/www/layouts/partials/preview/posts.html b/www/layouts/partials/preview/posts.html
deleted file mode 100644
index f2cb640..0000000
--- a/www/layouts/partials/preview/posts.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ $h := .h }}
-{{ range .pages }}
- {{ partial "preview/post.html" (dict
- "h" $h
- "page" .)
- }}
-{{ end }} \ No newline at end of file