aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-10 01:41:34 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-10 01:41:34 +0800
commit5e356c5f635d45f0241854d9f43f38b2f0bd44f9 (patch)
tree52d12fa3e71c1f843c385271c2f22b8842ddc0ba /layouts/partials/head.html
parentd3a1ab071c983586b474c5e5dc0fa6afb0babce8 (diff)
style(*): google js style & trim whitespace
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9b5c840..b38f160 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,16 +14,16 @@
{{- if .Description -}}
<meta name="description" content="{{ .Description | safeHTML }}" />
-{{ else if .IsPage }}
+{{- else if .IsPage -}}
<meta name="description" content="{{ .Summary | plainify }}" />
-{{ else if .Site.Params.description }}
+{{- else if .Site.Params.description -}}
<meta name="description" content="{{ .Site.Params.description | safeHTML }}" />
{{- end -}}
{{- if .Keywords -}}
{{ $length := len .Keywords | add -1 -}}
<meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
-{{ else if .Site.Params.keywords }}
+{{- else if .Site.Params.keywords -}}
{{ $length := len .Site.Params.keywords | add -1 -}}
<meta name="keywords" content="{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
{{- end }}
@@ -37,10 +37,10 @@
<!-- Permalink & RSSlink -->
<link rel="canonical" href="{{ .Permalink }}" />
-{{ if .RSSLink -}}
+{{- 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 -}}
+{{- end -}}
<!-- Favicon and Touch icons -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
@@ -50,15 +50,15 @@
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
<!-- debug -->
-{{- if .Site.Params.debug }}
+{{- if .Site.Params.debug -}}
<script src="https://cdn.jsdelivr.net/npm/eruda@1.2.6/eruda.min.js" integrity="sha256-Jmz4bc3kp+rRrXX2tGadNBKFLwtzMapr8kHABxSAAP8=" crossorigin="anonymous"></script>
<script>eruda.init();</script>
-{{- end }}
+{{- end -}}
<!-- busuanzi -->
-{{ if .Site.Params.busuanzi.enable -}}
+{{- if .Site.Params.busuanzi.enable -}}
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
-{{- end }}
+{{- end -}}
<!-- Styles -->
<link href="{{ print "dist/" .Site.Data.even.assets.even.css | relURL }}" rel="stylesheet">
@@ -66,10 +66,10 @@
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
{{- else -}}
{{ if .Site.Params.fancybox }}<link href="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.css" | relURL }}" rel="stylesheet">{{ end }}
-{{- end }}
+{{- end -}}
<!-- custom css -->
-{{ range .Site.Params.customCSS }}
+{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
{{ end }}