Skip to content

Commit

Permalink
bump theme to latest version and use OutputFormats.Get "RSS"
Browse files Browse the repository at this point in the history
.Site.RSSLink is deprecated and will be removed from future versions.
  • Loading branch information
M1cR0xf7 committed Aug 17, 2023
1 parent c705bba commit 6c7a383
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
{{ end }}
{{ if .Site.RSSLink }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}

{{- with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://github.com/M1cR0xf7/kaslaanka"
demosite = "https://m1cr0xf7.github.io/kaslaanka"
tags = ["minimalist", "responsive", "typography", "customizable", "blog", "personal"]
features = ["Scriptless", "Responsive", "Minimal", "Clean", "Simple", "Minimalist", "Fast", "Customizable"]
min_version = "0.90.0"
min_version = "0.117.0"

[author]
name = "Youssef Hesham"
Expand Down

0 comments on commit 6c7a383

Please sign in to comment.