mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-17 18:53:15 +00:00
e1effdef1b
A) Blog: add prominent playground-cta card at the end of each post. Styled with brand gradient border, eyebrow + headline + CTA button. Remove the buried related-cta line from related-posts.html. B) App: load a meaningful XSLT welcome example for first-time visitors (no localStorage) and auto-run it immediately (autoRunReady=true), so new organic users see live output instead of a blank editor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
324 B
HTML
12 lines
324 B
HTML
{{- $related := first 4 (where (where .Site.RegularPages "Section" "posts") "Permalink" "ne" .Permalink) -}}
|
|
{{- if $related -}}
|
|
<aside class="related-posts">
|
|
<h3>Related articles</h3>
|
|
<ul>
|
|
{{- range $related }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{- end }}
|
|
</ul>
|
|
</aside>
|
|
{{- end -}}
|