Skip to content

Commit cc3615e

Browse files
authored
Merge pull request #22 from Mazizova/blog-rss-feed
Add an RSS feed for the blog
2 parents 2a5ce62 + 29053f0 commit cc3615e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎content/blog/_index.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
22
title: "Blog"
33
description: "News, announcements, and updates from OurSQL Foundation."
4+
outputs:
5+
- HTML
6+
- RSS
47
---

‎layouts/partials/head.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
{{/* ── Robots ── */}}
1717
<meta name="robots" content="index, follow">
1818

19+
{{/* ── Feed auto-discovery (only present on pages that actually have one, e.g. /blog/) ── */}}
20+
{{ range .AlternativeOutputFormats }}
21+
<link rel="alternate" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }} — {{ $.Title }}">
22+
{{ end }}
23+
1924
{{/* ── OG image: front matter → default social cover ── */}}
2025
{{ $ogImage := "" }}
2126
{{ if .Params.image }}

0 commit comments

Comments
 (0)