Content as Markdown with YAML front matter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<figure>
|
||||
{{ with .cover }}<img src="{{ . }}" alt="" loading="lazy">{{ end }}
|
||||
<figcaption>
|
||||
{{ if .text }}<div>{{ .text | safeHTML }}</div>
|
||||
{{ if .text }}<div>{{ .text | markdownify }}</div>
|
||||
{{ else }}<a href="{{ .url }}"><strong>{{ .title }}</strong></a>{{ end }}
|
||||
</figcaption>
|
||||
</figure>
|
||||
@@ -39,7 +39,7 @@
|
||||
{{ range $p.comments }}
|
||||
<li>
|
||||
<p class="meta"><strong>{{ .author }}</strong>{{ with .date }} · {{ . }}{{ end }}</p>
|
||||
<div>{{ .text | safeHTML }}</div>
|
||||
<div>{{ .text | markdownify }}</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
|
||||
Reference in New Issue
Block a user