From 574f6c3d26d54855dea4ab472eda28a77d06211c Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 5 Nov 2020 23:36:06 +0900 Subject: Add script to list page, delete instagram shortcode from exampleSite --- exampleSite/content/en/blog/rich-content.md | 4 ---- exampleSite/content/ko/blog/rich-content.md | 4 ---- layouts/partials/main/list.html | 3 +++ layouts/partials/script/codeblock-script.html | 25 +++++++++++++++++++++++++ layouts/partials/script/single-script.html | 23 ----------------------- 5 files changed, 28 insertions(+), 31 deletions(-) diff --git a/exampleSite/content/en/blog/rich-content.md b/exampleSite/content/en/blog/rich-content.md index f10610c..db73c3d 100644 --- a/exampleSite/content/en/blog/rich-content.md +++ b/exampleSite/content/en/blog/rich-content.md @@ -19,10 +19,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme --- -## Instagram Simple Shortcode - -{{< instagram_simple BGvuInzyFAe hidecaption >}} -
--- diff --git a/exampleSite/content/ko/blog/rich-content.md b/exampleSite/content/ko/blog/rich-content.md index f10610c..db73c3d 100644 --- a/exampleSite/content/ko/blog/rich-content.md +++ b/exampleSite/content/ko/blog/rich-content.md @@ -19,10 +19,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme --- -## Instagram Simple Shortcode - -{{< instagram_simple BGvuInzyFAe hidecaption >}} -
--- diff --git a/layouts/partials/main/list.html b/layouts/partials/main/list.html index caf16f6..657d498 100644 --- a/layouts/partials/main/list.html +++ b/layouts/partials/main/list.html @@ -22,6 +22,9 @@ +{{ partial "script/codeblock-script.html" . }} +{{ partial "script/single-script.html" . }} + \ No newline at end of file diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index b1d400d..794966c 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -83,29 +83,6 @@ // ================================================================= - // ================ codeblock line number to symbol ================ - var dollarCodeElem = document.querySelectorAll('div.language-\\$'); - var gtCodeElem = document.querySelectorAll('div.language-\\>'); - - dollarCodeElem ? - dollarCodeElem.forEach(function(elem) { - var lnts = elem.parentNode.parentNode ? elem.parentNode.parentNode.querySelectorAll('.lnt') : null; - lnts ? - lnts.forEach(function(lnt) { - lnt.innerHTML = '$
'; - }) : null; - }) : null; - - gtCodeElem ? - gtCodeElem.forEach(function(elem) { - var lnts = elem.parentNode.parentNode ? elem.parentNode.parentNode.querySelectorAll('.lnt') : null; - lnts ? - lnts.forEach(function(lnt) { - lnt.innerHTML = '>
'; - }) : null; - }) : null; - // ================================================================= - // ============================ mermaid ============================ {{ $lib := .Params.libraries }} -- cgit v1.2.3