Files
cocoa-eh-hugo-theme/layouts/partials/head_includes.html
Murilo Santana de20e56890 Adding RSS link
2016-10-01 18:20:27 -03:00

58 lines
1.5 KiB
HTML

<!-- HTTPS -->
<script type="text/javascript">
var baseURL = '{{ .Site.BaseURL }}';
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<!-- CSS -->
{{ if .Site.Params.HighlightJS }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
{{ end }}
{{ if eq true .Site.Params.CacheBuster }}
<link rel="stylesheet" href="/css/reset.css">
<link rel="stylesheet" href="/css/pygments.css">
<link rel="stylesheet" href="/css/main.css">
{{range .Site.Params.ExtraCssFiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}
{{ else }}
<link rel="stylesheet" href="/css/reset.css?{{ .Now.Unix }}">
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
{{range .Site.Params.ExtraCssFiles}}
<link rel="stylesheet" href="{{.}}?{{ .Now.Unix }}">
{{end}}
{{ end }}
<!-- Icon -->
<link rel="shortcut icon"
{{ if .Site.Params.FaviconFile }}
href="/{{ .Site.Params.FaviconFile }}"
{{ else }}
href="/img/favicon.ico"
{{ end }}
>
<!-- RSS -->
{{ 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 }}
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->