From a89665f6a45a531162243f8504ee8337f1c2e1c1 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 21 Nov 2025 11:12:00 -0700 Subject: [PATCH] Add ability to flag certain content as a Work In Progress or TBD. This makes it more noticeable in both content file and webpage. --- layouts/partials/wip.html | 3 +++ layouts/shortcodes/tbd.html | 3 +++ layouts/shortcodes/wip.html | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 layouts/partials/wip.html create mode 100644 layouts/shortcodes/tbd.html create mode 100644 layouts/shortcodes/wip.html diff --git a/layouts/partials/wip.html b/layouts/partials/wip.html new file mode 100644 index 0000000..912f641 --- /dev/null +++ b/layouts/partials/wip.html @@ -0,0 +1,3 @@ +{{ $text := .text | default .Text +}}{{ $wip := .sep | default .Sep | default .wip | default .WIP | default "WIP" +}}*{{ $wip }}:* {{ $text }} *:{{ $wip }}* \ No newline at end of file diff --git a/layouts/shortcodes/tbd.html b/layouts/shortcodes/tbd.html new file mode 100644 index 0000000..0c7dc47 --- /dev/null +++ b/layouts/shortcodes/tbd.html @@ -0,0 +1,3 @@ +{{ $text := .Get 0 +}}{{ partial "wip.html" (dict "text" $text "sep" "TBD") +}} \ No newline at end of file diff --git a/layouts/shortcodes/wip.html b/layouts/shortcodes/wip.html new file mode 100644 index 0000000..6c00265 --- /dev/null +++ b/layouts/shortcodes/wip.html @@ -0,0 +1,4 @@ +{{ $text := .Get 0 +}}{{ $wip := .Get 1 | default "WIP" +}}{{ partial "wip.html" (dict "text" $text "wip" $wip) +}} \ No newline at end of file