diff options
author | JeffHome <jeffgazet@gmail.com> | 2020-05-28 22:18:10 +0300 |
---|---|---|
committer | JeffHome <jeffgazet@gmail.com> | 2020-05-28 22:18:10 +0300 |
commit | bbe726e57038b97df811731330fe2c35f5043964 (patch) | |
tree | 357e955dab9eb22e029ced1cd22780072ae9f1a0 | |
parent | e374fbdfdc63245df88a903425ac8ba956d43b17 (diff) |
-rw-r--r-- | layouts/partials/header.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7ef8f11..82da728 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,10 +10,9 @@ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" /> <link rel="stylesheet" href="{{ "css/blog.css" | absURL }}" /> - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - <link href="{{ .RSSLink }}" rel="feed" 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> |