Skip to content

Commit

Permalink
Adds rss
Browse files Browse the repository at this point in the history
  • Loading branch information
simodima committed Nov 21, 2024
1 parent 6977bd0 commit 2e8d57e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ title = "SIMOAT.WORK"
extended = true
min = "0.134.0"

[outputs]
home = ['html', 'rss']
section = ['html']
taxonomy = ['html']
term = ['html']


[params]
google_analytics_id = "G-N70242LL82"
twitter_handle = "@toretto460"
Expand All @@ -33,6 +40,9 @@ title = "SIMOAT.WORK"
fontFamilyHeading = "Poppins"
fontFamilyParagraph = "Poppins"
fontFamilyMonospace = "monospace"
[params.author]
email = '[email protected]'
name = 'Simone Di Maulo'

# markdown config settings https://gohugo.io/getting-started/configuration-markup/#goldmark
[markup]
Expand Down
4 changes: 3 additions & 1 deletion themes/hugo-winston-theme/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{ .Site.BaseURL }}favicon.png">
<link rel="canonical" href="{{ .Permalink }}" />

{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" false) }}
{{ $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }}
Expand Down

0 comments on commit 2e8d57e

Please sign in to comment.