diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
commit | 8555cf72dec9321fa010296ce6988cf7b7cf602b (patch) | |
tree | 006ad83008cc8e08524631ebb4b638bfbfa490fd /themes/hugo-coder/layouts/shortcodes | |
parent | 2e1cd1a569ea516be6bfdc681411cae51632a290 (diff) |
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/shortcodes')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/shortcodes/notice.html | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/shortcodes/notice.html b/themes/hugo-coder/layouts/shortcodes/notice.html new file mode 100644 index 0000000..96685d5 --- /dev/null +++ b/themes/hugo-coder/layouts/shortcodes/notice.html | |||
@@ -0,0 +1,12 @@ | |||
1 | {{- $type := .Get 0 -}} | ||
2 | {{- $title := .Get 1 | default $type -}} | ||
3 | {{- $inner := .Inner | .Page.RenderString | chomp -}} | ||
4 | {{- $icon := dict "note" "fa-sticky-note" "tip" "fa-lightbulb-o" "example" "fa-file-text" "question" "fa-question" "info" "fa-exclamation-circle" "warning" "fa-exclamation-triangle" "error" "fa-times-circle" -}} | ||
5 | <div class="notice {{ $type }}"> | ||
6 | <div class="notice-title"> | ||
7 | <i class="fa {{ index $icon $type }}" aria-hidden="true"></i>{{ i18n $title | default $title | humanize }} | ||
8 | </div> | ||
9 | <div class="notice-content"> | ||
10 | {{- $inner -}} | ||
11 | </div> | ||
12 | </div> | ||