revises header, feeds, and highlight templates

This commit is contained in:
Huy Tran 2018-07-26 18:01:14 +10:00
parent 05b2b88987
commit 5e5939c343
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,6 @@
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
{{ partial "header/meta.html" . }}
{{ "<!-- highlighting -->" | safeHTML }}
{{ partial "header/highlight-css.html" . }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/print.min.css" media="print">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hyde-hyde.css">
@ -13,7 +12,5 @@
{{ "<!-- Icons -->" | safeHTML }}
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
{{- if .RSSLink -}}
{{ partial "header/feeds.html" . }}
{{- end -}}
{{ partial "header/feeds.html" . }}
</head>

View file

@ -1,3 +1,5 @@
{{- if .RSSLink -}}
<!-- RSS -->
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}

View file

@ -1,7 +1,8 @@
{{- if .Site.Params.highlightjs -}}
{{ "<!-- highlighting -->" | safeHTML }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
{{- end -}}
{{ if .Site.Params.PygmentsUseClasses -}}
<!-- Pygments Syntax -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/syntax.min.css">
{{- end }}
{{- end }}