URI: 
       tpl/tplimpl: Create an embedded comment shortcode - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 801035bb7a38beae214105e872a4cdc49ac610ce
   DIR parent b7861e586eb3e35c56ff0580de244f939596f7f4
  HTML Author: Joe Mooring <joe.mooring@veriphor.com>
       Date:   Mon,  4 Nov 2024 11:11:46 -0800
       
       tpl/tplimpl: Create an embedded comment shortcode
       
       Closes #13010
       
       Diffstat:
         A tpl/tplimpl/embedded/templates/sho… |       1 +
         M tpl/tplimpl/tplimpl_integration_te… |      16 ++++++++++++++++
       
       2 files changed, 17 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/tpl/tplimpl/embedded/templates/shortcodes/comment.html b/tpl/tplimpl/embedded/templates/shortcodes/comment.html
       @@ -0,0 +1 @@
       +{{- $noop := .Inner -}}
   DIR diff --git a/tpl/tplimpl/tplimpl_integration_test.go b/tpl/tplimpl/tplimpl_integration_test.go
       @@ -584,3 +584,19 @@ title: p5
                        `<meta name="twitter:description" content="m n and **o** can&#39;t.">`,
                )
        }
       +
       +func TestCommentShortcode(t *testing.T) {
       +        t.Parallel()
       +
       +        files := `
       +-- hugo.toml --
       +disableKinds = ['page','rss','section','sitemap','taxonomy','term']
       +-- layouts/index.html --
       +{{ .Content }}
       +-- content/_index.md --
       +a{{< comment >}}b{{< /comment >}}c
       +`
       +
       +        b := hugolib.Test(t, files)
       +        b.AssertFileContent("public/index.html", "<p>ac</p>")
       +}