From 93cb45a3d815c193ae9386de2834e6a1214c7e20 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 8 May 2023 20:33:46 -0400 Subject: themes/default/layouts/_default: Add single embed --- Makefile | 4 ++-- config.json | 7 ++++++- config.toml | 6 +++++- config.yaml | 4 ++++ static/icons/feather/code.svg | 14 -------------- static/icons/tabler/code.svg | 8 ++++++++ static/icons/tabler/square-letter-m.svg | 7 +++++++ themes/default/layouts/_default/single.embed.html | 1 + themes/default/layouts/partials/meta-context-menu.html | 6 ++++++ themes/default/layouts/partials/meta-markdown.html | 2 +- 10 files changed, 40 insertions(+), 19 deletions(-) delete mode 100644 static/icons/feather/code.svg create mode 100644 static/icons/tabler/code.svg create mode 100644 static/icons/tabler/square-letter-m.svg create mode 100644 themes/default/layouts/_default/single.embed.html diff --git a/Makefile b/Makefile index 01a8247..f7c39f3 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,6 @@ icons: curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/calendar.svg --output-dir static/icons/feather curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/circle.svg --output-dir static/icons/feather curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/clock.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/code.svg --output-dir static/icons/feather curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/copy.svg --output-dir static/icons/feather curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/edit.svg --output-dir static/icons/feather curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/external-link.svg --output-dir static/icons/feather @@ -92,7 +91,8 @@ icons: curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/LICENSE --output-dir static/icons/tabler curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/book-2.svg --output-dir static/icons/tabler curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/clock.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/code.svg --output-dir static/icons/tabler curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/pinned.svg --output-dir static/icons/tabler curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/robot.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/robot.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/square-letter-m.svg --output-dir static/icons/tabler git add -f static/icons diff --git a/config.json b/config.json index 06fd3c7..df980d9 100644 --- a/config.json +++ b/config.json @@ -184,6 +184,10 @@ "baseName": "index", "mediaType": "text/html" }, + "embed": { + "baseName": "embed", + "mediaType": "text/html" + }, "plain": { "baseName": "index", "mediaType": "text/plain" @@ -275,7 +279,8 @@ ], "page": [ "html", - "plain" + "plain", + "embed" ] }, "caches": { diff --git a/config.toml b/config.toml index 13466fe..a5deead 100644 --- a/config.toml +++ b/config.toml @@ -131,6 +131,10 @@ enableRobotsTXT = true baseName = "index" mediaType = "text/html" + [outputFormats.embed] + baseName = "embed" + mediaType = "text/html" + [outputFormats.plain] baseName = "index" mediaType = "text/plain" @@ -195,7 +199,7 @@ enableRobotsTXT = true section = ["html", "rss", "gallery", "following", "webring"] taxonomy = ["html", "rss"] term = ["html", "rss"] - page = ["html", "plain"] + page = ["html", "plain", "embed"] [caches] diff --git a/config.yaml b/config.yaml index e202889..63436dd 100644 --- a/config.yaml +++ b/config.yaml @@ -118,6 +118,9 @@ outputFormats: html: baseName: index mediaType: text/html + embed: + baseName: embed + mediaType: text/html plain: baseName: index mediaType: text/plain @@ -192,6 +195,7 @@ outputs: page: - html - plain + - embed caches: assets: diff --git a/static/icons/feather/code.svg b/static/icons/feather/code.svg deleted file mode 100644 index da0f522..0000000 --- a/static/icons/feather/code.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - diff --git a/static/icons/tabler/code.svg b/static/icons/tabler/code.svg new file mode 100644 index 0000000..3a18207 --- /dev/null +++ b/static/icons/tabler/code.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/static/icons/tabler/square-letter-m.svg b/static/icons/tabler/square-letter-m.svg new file mode 100644 index 0000000..07486bc --- /dev/null +++ b/static/icons/tabler/square-letter-m.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/themes/default/layouts/_default/single.embed.html b/themes/default/layouts/_default/single.embed.html new file mode 100644 index 0000000..8ae6521 --- /dev/null +++ b/themes/default/layouts/_default/single.embed.html @@ -0,0 +1 @@ +{{- .Render "summary" -}} diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html index 977f938..fb249be 100644 --- a/themes/default/layouts/partials/meta-context-menu.html +++ b/themes/default/layouts/partials/meta-context-menu.html @@ -17,6 +17,12 @@ plaintext + + + {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/code.svg")) -}} + embed + + {{- partial "meta-permalink.html" . -}} diff --git a/themes/default/layouts/partials/meta-markdown.html b/themes/default/layouts/partials/meta-markdown.html index 5300af5..e678923 100644 --- a/themes/default/layouts/partials/meta-markdown.html +++ b/themes/default/layouts/partials/meta-markdown.html @@ -6,7 +6,7 @@ - {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/code.svg")) -}} + {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/square-letter-m.svg")) -}} markdown -- cgit v1.2.3