From 02b1a87d8fac3a4881968a67274fb825987bc7a0 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 14 Jun 2025 22:49:26 +0800 Subject: www: move layout files for new version of hugo and fix nested shortcodes. --- www/layouts/partials/preview/article.html | 10 ---------- www/layouts/partials/preview/post.html | 7 ------- www/layouts/partials/preview/posts.html | 7 ------- 3 files changed, 24 deletions(-) delete mode 100644 www/layouts/partials/preview/article.html delete mode 100644 www/layouts/partials/preview/post.html delete mode 100644 www/layouts/partials/preview/posts.html (limited to 'www/layouts/partials/preview') 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 @@ -
- {{ .date | time.Format ":date_medium" }} - {{ (printf `<%[1]s class="title">%s` .h .link .title) | safeHTML }} -

- {{ range split .content "\n" | first 5 }} - {{ . | htmlUnescape }}
- {{ end }} -

-

... Read more

-
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 -- cgit v1.2.3