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.
This commit is contained in:
Fundor333
2025-04-05 17:41:41 +02:00
parent 3b16b3ac64
commit a7935f6b5f
8 changed files with 348 additions and 17 deletions

View File

@@ -0,0 +1,16 @@
{{ $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 }}