From fc481c8fb43f3cb736a909f54c4dabd40cfe79a6 Mon Sep 17 00:00:00 2001 From: aka <125674614+zhen-shi@users.noreply.github.com> Date: Thu, 16 Nov 2023 01:22:05 +0800 Subject: [PATCH] feat: add netease and timeline shortcode --- layouts/shortcodes/netease.html | 1 + layouts/shortcodes/timeline.html | 149 +++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 layouts/shortcodes/netease.html create mode 100644 layouts/shortcodes/timeline.html diff --git a/layouts/shortcodes/netease.html b/layouts/shortcodes/netease.html new file mode 100644 index 0000000..e48996a --- /dev/null +++ b/layouts/shortcodes/netease.html @@ -0,0 +1 @@ + diff --git a/layouts/shortcodes/timeline.html b/layouts/shortcodes/timeline.html new file mode 100644 index 0000000..a0af728 --- /dev/null +++ b/layouts/shortcodes/timeline.html @@ -0,0 +1,149 @@ +{{- $date := .Get "date" -}} {{- $title := .Get "title" -}} {{- $description := .Get "description" -}} {{- $tags := .Get "tags" -}}{{- $url := .Get "url" -}} + +
+
+
{{ $date }}
+
+
+
+ + +
{{ $title }}
+
+ +
+ {{ $description }} +
+
+
+ + +