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:
@@ -2,6 +2,6 @@
|
||||
<dl class="entries">
|
||||
{{ range . }}
|
||||
<dt>{{ if .url }}<a href="{{ .url }}" rel="nofollow noopener">{{ .title | default .url }}</a>{{ else }}{{ .title }}{{ end }}{{ with .platform }} <small>{{ . }}</small>{{ end }}</dt>
|
||||
{{ with .text }}<dd>{{ . | safeHTML }}</dd>{{ end }}
|
||||
{{ with .text }}<dd>{{ . | markdownify }}</dd>{{ end }}
|
||||
{{ end }}
|
||||
</dl>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<figcaption>
|
||||
{{ with .title }}<strong>{{ . }}</strong>{{ end }}
|
||||
{{ with .subtitle }}<em>{{ . }}</em>{{ end }}
|
||||
{{ with .text }}<div>{{ . | safeHTML }}</div>{{ end }}
|
||||
{{ with .text }}<div>{{ . | markdownify }}</div>{{ end }}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<table class="specs">
|
||||
<tbody>
|
||||
{{ range . }}
|
||||
<tr><th>{{ index . 0 }}</th><td>{{ index . 1 | safeHTML }}</td></tr>
|
||||
<tr><th>{{ .label }}</th><td>{{ .value | markdownify }}</td></tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -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