diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 2248e9f..6812dff 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -11,5 +11,4 @@ TODO: if no .Title set title="{{ .Text }}"" */}} - -{{ .Text | safeHTML }} \ No newline at end of file +{{- .Text | safeHTML -}} \ No newline at end of file diff --git a/layouts/book/mainContentsPage.html b/layouts/book/mainContentsPage.html index 07bccf3..48f38bc 100644 --- a/layouts/book/mainContentsPage.html +++ b/layouts/book/mainContentsPage.html @@ -42,7 +42,6 @@ {{- partialCached "jumbo/footer.html" . -}} - {{- partialCached "fonts.html" . -}} diff --git a/layouts/index.html b/layouts/index.html index ed8aa1d..ab29d23 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ - {{ .Title }} | Discover three.js + Discover three.js! {{- partialCached "head/meta.html" . .Params.noFollow .Params.Title .Params.Description -}} {{- partialCached "head/schema.html" . -}} {{- partialCached "head/links.html" . .Permalink -}} diff --git a/layouts/index.zh.html b/layouts/index.zh.html index 54393dd..9bf1ac9 100644 --- a/layouts/index.zh.html +++ b/layouts/index.zh.html @@ -1,7 +1,7 @@ - {{ .Title }} | 《探索three.js》 + 《探索three.js》 {{- partialCached "head/meta.html" . .Params.noFollow .Params.Title .Params.Description -}} {{- partialCached "head/schema.html" . -}} {{- partialCached "head/links.html" . .Permalink -}} diff --git a/layouts/partials/langURL.html b/layouts/partials/langURL.html deleted file mode 100644 index 21ad5ea..0000000 --- a/layouts/partials/langURL.html +++ /dev/null @@ -1,6 +0,0 @@ -{{/* - Get the language url like zh/en - However, don't return anything for en as it is the default -*/}} - -{{- if ne .Lang "en" -}}{{- .Lang -}}{{- end -}} \ No newline at end of file diff --git a/layouts/partials/mainLinks.html b/layouts/partials/mainLinks.html index 3a3d35a..0742b33 100644 --- a/layouts/partials/mainLinks.html +++ b/layouts/partials/mainLinks.html @@ -1,6 +1,6 @@ \ No newline at end of file + + diff --git a/layouts/partials/topNav.html b/layouts/partials/topNav.html index 3e0f649..becbf7e 100644 --- a/layouts/partials/topNav.html +++ b/layouts/partials/topNav.html @@ -41,7 +41,6 @@
{{- partial "pagination.html" . -}} -
diff --git a/layouts/shortcodes/aside.html b/layouts/shortcodes/aside.html index f80d415..b49495d 100644 --- a/layouts/shortcodes/aside.html +++ b/layouts/shortcodes/aside.html @@ -5,12 +5,9 @@ class = notice/success/warning will give blue/green/red box */}} - {{ $_hugo_config := `{ "version": 1 }` }} {{- $class := .Get 0 | default "notice" -}} - {{- $markdown := .Inner | markdownify -}} -
\ No newline at end of file diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html index 17c8264..990f68f 100644 --- a/layouts/shortcodes/icon.html +++ b/layouts/shortcodes/icon.html @@ -4,5 +4,4 @@ A little tricky because partials can only be used in layouts and shortcodes can only be used in markdown */}} - {{- partial ( printf "icons/%s.svg" (.Get 0) ) . -}} \ No newline at end of file diff --git a/layouts/shortcodes/iframe.html b/layouts/shortcodes/iframe.html index 2c1b941..3acdffa 100644 --- a/layouts/shortcodes/iframe.html +++ b/layouts/shortcodes/iframe.html @@ -3,14 +3,11 @@ TODO: these should all be hosted locally to prevent upstream changes causing breakage */}} - {{- $src := .Get "src" -}} {{- $height := .Get "height" | default "500" -}} {{- $title := .Get "title" | default "three.js scene" -}} {{- $caption := .Get "caption" | default "" -}} - {{- $class := .Get "class" | default "" -}} -