{{/* Shortcode to display Linkding RSS feed bookmarks Usage: {{< linkding-bookmarks >}} */}} {{/* Read the RSS feed file */}} {{ $rssFile := "data/linkding.xml" }} {{ if fileExists $rssFile }} {{ $rssContent := readFile $rssFile }} {{/* Parse RSS XML */}} {{ $rss := $rssContent | transform.Unmarshal }} {{ if $rss }} {{/* Get channel items */}} {{ $items := $rss.channel.item }} {{ if $items }}
{{ .description }}
{{ end }} {{ if .category }}No bookmarks found in RSS feed.
{{ end }} {{ else }}Unable to parse RSS feed.
{{ end }} {{ else }}RSS feed file not found. Please run the GitHub Action to fetch the feed.
{{ end }}