Skip to content

Commit 01d2fd7

Browse files
committed
Fix hugo serve warnings: enable unsafe html and rename gist shortcode
1 parent 565bb08 commit 01d2fd7

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.DS_Store
22
/public
3-
.obsidian/
3+
.obsidian/.hugo_build.lock

β€Ž.hugo_build.lockβ€Ž

Whitespace-only changes.

β€Žconfig.tomlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ blog = ":year/:month/:contentbasename"
102102
[markup.goldmark.extensions.passthrough.delimiters]
103103
block = [['\[', '\]'], ['$$', '$$']]
104104
inline = [['\(', '\)']]
105+
[markup.goldmark.renderer]
106+
unsafe = true
105107

106108
[services]
107109
[services.rss]

β€Žcontent/blog/rime-theme.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ patch:
6767
6868
![](https://raw.githubusercontent.com/yzlnew/ImageBed/master/blog/2021/02/rime-theme.png)
6969
70-
{{< gist yzlnew 22ec96067f020c6ae976bf385ac3fa04 >}}
70+
{{< mygist yzlnew 22ec96067f020c6ae976bf385ac3fa04 >}}

β€Žlayouts/_shortcodes/gist.htmlβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script src="https://gist.github.com/{{ .Get 0 }}/{{ .Get 1 }}.js"></script>

0 commit comments

Comments
Β (0)