diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d1ce3ec11c..af3cbafe2e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,22 +1,22 @@
{{ partial "header.html" . }}
{{ if eq .Kind "section" }}
- {{ .Content }}
+ {{ .Content }}
{{end}}
{{ if or (eq .Kind "taxonomy") (eq .Kind "term") }}
{{end}}
{{ partial "footer.html" . }}
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d3d9f2536e..7b4187484b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,10 +3,10 @@
{{ .Content }}
{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 5f2c477597..6e76034674 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,14 +6,14 @@
{{if .Site.Home.Content }}
{{.Site.Home.Content}}
{{else}}
- Customize your own home page
-
- The site is working. Don't forget to customize this homepage with your own. You typically have 3 choices :
-
-
- - 1. Create an _index.md document in content folder and fill it with Markdown content
- - 2. Create an index.html file in the static folder and fill the file with HTML content
- - 3. Configure your server to automatically redirect home page to one your documentation page
-
+ Customize your own home page
+
+ The site is working. Don't forget to customize this homepage with your own. You typically have 3 choices :
+
+
+ - 1. Create an _index.md document in content folder and fill it with Markdown content
+ - 2. Create an index.html file in the static folder and fill the file with HTML content
+ - 3. Configure your server to automatically redirect home page to one your documentation page
+
{{ end }}
{{ partial "footer.html" . }}
diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html
index a240467584..108dcda659 100644
--- a/layouts/shortcodes/attachments.html
+++ b/layouts/shortcodes/attachments.html
@@ -3,35 +3,35 @@
{{ $title := .Get "title" | default ("Attachments-label" | T) }}
{{ $sort := .Get "sort" | default "asc" }}
- {{ $title }}
-
- {{- $filesName := "files" }}
- {{- if ne .Page.File.BaseFileName "index" }}
- {{- $filesName = printf "%s.files" .Page.File.BaseFileName }}
- {{- end}}
+
{{ $title }}
+
+ {{- $filesName := "files" }}
+ {{- if ne .Page.File.BaseFileName "index" }}
+ {{- $filesName = printf "%s.files" .Page.File.BaseFileName }}
+ {{- end}}
- {{- $fileDir := replace .Page.File.Dir "\\" "/" }}
- {{- $pattern := .Get "pattern" | default "" }}
- {{- range sort (readDir (printf "content/%s%s" .Page.File.Dir $filesName) ) "Name" $sort }}
- {{- if findRE $pattern .Name}}
- {{- $size := .Size }}
- {{- $unit := "Byte-symbol" }}
- {{- if ge $size 1024 }}
- {{- $size = div $size 1024 }}
- {{- $unit = "Kilobyte-symbol" }}
- {{- end }}
- {{- if ge $size 1024 }}
- {{- $size = div $size 1024 }}
- {{- $unit = "Megabyte-symbol" }}
- {{- end }}
- {{- $unitsymbol := $unit | T }}
+ {{- $fileDir := replace .Page.File.Dir "\\" "/" }}
+ {{- $pattern := .Get "pattern" | default "" }}
+ {{- range sort (readDir (printf "content/%s%s" .Page.File.Dir $filesName) ) "Name" $sort }}
+ {{- if findRE $pattern .Name}}
+ {{- $size := .Size }}
+ {{- $unit := "Byte-symbol" }}
+ {{- if ge $size 1024 }}
+ {{- $size = div $size 1024 }}
+ {{- $unit = "Kilobyte-symbol" }}
+ {{- end }}
+ {{- if ge $size 1024 }}
+ {{- $size = div $size 1024 }}
+ {{- $unit = "Megabyte-symbol" }}
+ {{- end }}
+ {{- $unitsymbol := $unit | T }}
-
- {{.Name}}
- ({{$size}} {{$unitsymbol}})
-
- {{- end }}
- {{- end }}
-
- {{- .Inner }}
+
+ {{.Name}}
+ ({{$size}} {{$unitsymbol}})
+
+ {{- end }}
+ {{- end }}
+
+ {{- .Inner }}
diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html
index 10e3ee0e4a..a20ae2dcc8 100644
--- a/layouts/shortcodes/notice.html
+++ b/layouts/shortcodes/notice.html
@@ -2,6 +2,6 @@
{{ $style := .Get 0 }}
{{ $title := $style | T }}
-
{{ $title }}
- {{ .Inner }}
+
{{ $title }}
+ {{ .Inner }}
diff --git a/layouts/shortcodes/ref.html b/layouts/shortcodes/ref.html
index 7b7eb426b8..67dbd94a1c 100644
--- a/layouts/shortcodes/ref.html
+++ b/layouts/shortcodes/ref.html
@@ -1,14 +1,14 @@
{{- if in (.Get 0) "/_index.md" -}}
- {{- $paths := (split (.Get 0) "_index.md") -}}
- {{- $pagepath := index $paths 0 -}}
- {{- $anchor := index $paths 1 -}}
- {{- with .Site.GetPage "section" (trim $pagepath "/") -}}
- {{- ( printf "%s%s" $pagepath $anchor ) | relLangURL -}}
- {{- end -}}
+ {{- $paths := (split (.Get 0) "_index.md") -}}
+ {{- $pagepath := index $paths 0 -}}
+ {{- $anchor := index $paths 1 -}}
+ {{- with .Site.GetPage "section" (trim $pagepath "/") -}}
+ {{- ( printf "%s%s" $pagepath $anchor ) | relLangURL -}}
+ {{- end -}}
{{- else -}}
- {{- with .Site.GetPage "section" (.Get 0) }}
- {{- .RelPermalink -}}
- {{- else -}}
- {{- .Get 0 | relref .Page -}}
- {{- end -}}
+ {{- with .Site.GetPage "section" (.Get 0) }}
+ {{- .RelPermalink -}}
+ {{- else -}}
+ {{- .Get 0 | relref .Page -}}
+ {{- end -}}
{{- end -}}
\ No newline at end of file
diff --git a/layouts/shortcodes/relref.html b/layouts/shortcodes/relref.html
index 7b7eb426b8..67dbd94a1c 100644
--- a/layouts/shortcodes/relref.html
+++ b/layouts/shortcodes/relref.html
@@ -1,14 +1,14 @@
{{- if in (.Get 0) "/_index.md" -}}
- {{- $paths := (split (.Get 0) "_index.md") -}}
- {{- $pagepath := index $paths 0 -}}
- {{- $anchor := index $paths 1 -}}
- {{- with .Site.GetPage "section" (trim $pagepath "/") -}}
- {{- ( printf "%s%s" $pagepath $anchor ) | relLangURL -}}
- {{- end -}}
+ {{- $paths := (split (.Get 0) "_index.md") -}}
+ {{- $pagepath := index $paths 0 -}}
+ {{- $anchor := index $paths 1 -}}
+ {{- with .Site.GetPage "section" (trim $pagepath "/") -}}
+ {{- ( printf "%s%s" $pagepath $anchor ) | relLangURL -}}
+ {{- end -}}
{{- else -}}
- {{- with .Site.GetPage "section" (.Get 0) }}
- {{- .RelPermalink -}}
- {{- else -}}
- {{- .Get 0 | relref .Page -}}
- {{- end -}}
+ {{- with .Site.GetPage "section" (.Get 0) }}
+ {{- .RelPermalink -}}
+ {{- else -}}
+ {{- .Get 0 | relref .Page -}}
+ {{- end -}}
{{- end -}}
\ No newline at end of file
diff --git a/layouts/shortcodes/tab.html b/layouts/shortcodes/tab.html
index d258e00ac4..0afa1ae17d 100644
--- a/layouts/shortcodes/tab.html
+++ b/layouts/shortcodes/tab.html
@@ -1,12 +1,12 @@
{{ if .Parent }}
- {{ $name := trim (.Get "name") " " }}
- {{ if not (.Parent.Scratch.Get "tabs") }}
- {{ .Parent.Scratch.Set "tabs" slice }}
- {{ end }}
- {{ with .Inner }}
+ {{ $name := trim (.Get "name") " " }}
+ {{ if not (.Parent.Scratch.Get "tabs") }}
+ {{ .Parent.Scratch.Set "tabs" slice }}
+ {{ end }}
+ {{ with .Inner }}
{{ $.Parent.Scratch.Add "tabs" (dict "name" $name "content" . ) }}
- {{ end }}
+ {{ end }}
{{ else }}
- {{- errorf "[%s] %q: tab shortcode missing its parent" site.Language.Lang .Page.Path -}}
+ {{- errorf "[%s] %q: tab shortcode missing its parent" site.Language.Lang .Page.Path -}}
{{ end}}