Files
hugo-theme-minos/layouts/partials/head.html
v1ne e1dd4d7d06 Header: Only output RSS link if it's actually set
If a subpage doesn't have any RSS link, don't output an empty link.
2019-11-29 23:04:51 +08:00

21 lines
699 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }}{{ if ne .Title .Site.Title }} // {{ .Site.Title }}{{ end }}</title>
{{ partial "meta.html" . }}
{{ partial "og.html" . }}
{{- with .OutputFormats.Get "rss" -}}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{- end }}
<link rel="shortcut icon" href="/favicon.ico">
<link href="{{ "webfonts/ptserif/main.css" | absURL }}" rel='stylesheet' type='text/css'>
<link href="{{ "webfonts/source-code-pro/main.css" | absURL }}" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{{ "css/style.css" | absURL }}">
{{ hugo.Generator }}
</head>