Files
fundor333.com/layouts/shortcodes/opmlblogroll.html
Fundor333 a7935f6b5f Add custom styles for external links and new OPML blogroll shortcode
- Added a style in custom-head.html to remove the default target="_blank" link indicator.
- Created a new shortcode opmlblogroll.html to fetch and display a blogroll from a remote API.
2025-04-05 17:41:41 +02:00

17 lines
364 B
HTML

{{ $url := "https://appletune.fundor333.com/api//blogroolgroup/?format=json" }}
{{ with resources.GetRemote $url }}
{{- $content := .Content | transform.Unmarshal -}}
{{- range $content -}}
<h2>{{ .name }}</h2>
<ul>
{{- range .rows }}
<li><a href='{{.url}}'>{{.name}}</a> (<a href='{{.feed_url}}'>feed</a>)</li>
{{ end}}
</ul>
{{ end }}
{{ end }}