fix: hide line number column in code block for RSS feed (#652)

This commit is contained in:
Cell
2025-10-22 16:33:18 +08:00
committed by GitHub
parent dd877f8041
commit f984fc6de4
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@
{{- /* Insert config */ -}}
{{- $targetPath := (strings.TrimPrefix (relURL "") $.RelPermalink) | printf "%s/config/post-chat.js" -}}
{{- if (path.Ext .Page.RelPermalink) -}}
{{- if (path.Ext .Page.RelPermalink) | or .IsHome -}}
{{- $targetPath = "" -}}
{{- end -}}
{{- dict "Content" $configJS "Path" $targetPath "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}