diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-11 15:57:47 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-11 15:57:47 +0800 |
| commit | 3127403b9475eba8dec2bbb13494edeeb77ec896 (patch) | |
| tree | 91174fd55138c918c55ba21cd8004dbdd9f1ef8e | |
| parent | 1fa4023970512627636f39e6878944d54780ea40 (diff) | |
test: add test page to debug remark42
| -rw-r--r-- | content/test.md | 4 | ||||
| -rw-r--r-- | layouts/_default/test.html | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/content/test.md b/content/test.md new file mode 100644 index 00000000..7d5762e6 --- /dev/null +++ b/content/test.md @@ -0,0 +1,4 @@ +--- +title: 测试 +layout: test +--- diff --git a/layouts/_default/test.html b/layouts/_default/test.html new file mode 100644 index 00000000..34544921 --- /dev/null +++ b/layouts/_default/test.html @@ -0,0 +1,13 @@ +{{ define "main" }} + <article class="test"> + <div id="remark42"></div> + <script> + var remark_config = { + host: "https://remark.guhub.cn", + site_id: "geedea", + } + </script> + <script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script> + </article> +{{ partial "footer.html" . }} +{{ end }} |
