Add ability to flag certain content as a Work In Progress or TBD. This makes it more noticeable in both content file and webpage.
This commit is contained in:
3
layouts/partials/wip.html
Normal file
3
layouts/partials/wip.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{{ $text := .text | default .Text
|
||||||
|
}}{{ $wip := .sep | default .Sep | default .wip | default .WIP | default "WIP"
|
||||||
|
}}*{{ $wip }}:* {{ $text }} *:{{ $wip }}*
|
||||||
3
layouts/shortcodes/tbd.html
Normal file
3
layouts/shortcodes/tbd.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{{ $text := .Get 0
|
||||||
|
}}{{ partial "wip.html" (dict "text" $text "sep" "TBD")
|
||||||
|
}}
|
||||||
4
layouts/shortcodes/wip.html
Normal file
4
layouts/shortcodes/wip.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{{ $text := .Get 0
|
||||||
|
}}{{ $wip := .Get 1 | default "WIP"
|
||||||
|
}}{{ partial "wip.html" (dict "text" $text "wip" $wip)
|
||||||
|
}}
|
||||||
Reference in New Issue
Block a user