Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Aguiar <rmaguiar@tuta.io>2021-03-19 07:15:11 +0300
committerRaphael Aguiar <rmaguiar@tuta.io>2021-03-19 07:15:11 +0300
commit72a805b8d8613225c3f855f5a2b4522afa3cf930 (patch)
tree3375577bbbe29511e0955e8a0cbc9e292011ac74
parentacacecf06f1b66613496a2f0a97c5172420ff474 (diff)
Fix issue related to image processing (render hook) and minor changes
-rw-r--r--README.md2
-rw-r--r--exampleSite/content/posts/readme.md2
-rw-r--r--layouts/_default/_markup/render-image.html4
-rw-r--r--layouts/partials/head.html5
4 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index e868e06..8b1f2a8 100644
--- a/README.md
+++ b/README.md
@@ -353,7 +353,7 @@ More possible params for your config file (or front matter):
* [Font Awesome](https://fontawesome.com/) and [Fork Awesome](https://forkaweso.me/) for the icons;
* [@nickpunt](https://gist.github.com/nickpunt) and [@regpaq](https://gist.github.com/regpaq) for the [dark/light mode switcher](https://gist.github.com/regpaq/04c67e8aceecbf0fd819945835412d1f) idea;
* Glenn McComb and [his article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination with Hugo;
-* JeffProd and [his article](https://en.jeffprod.com/blog/2018/build-your-own-hugo-website-search-engine/) about building a custom search engine for Hugo;
+* JeffProd and [his article](https://en.jeffprod.com/blog/2018/build-your-own-Hugo-website-search-engine/) about building a custom search engine for Hugo;
* Many people [on this forked gist](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae) for their takes on Fuse.js + Hugo;
* Philip Walton and [his sticky footer solution](https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/) with Flexbox;
* [Fuse.js](https://github.com/krisk/Fuse);
diff --git a/exampleSite/content/posts/readme.md b/exampleSite/content/posts/readme.md
index 257d0db..6347e17 100644
--- a/exampleSite/content/posts/readme.md
+++ b/exampleSite/content/posts/readme.md
@@ -357,7 +357,7 @@ More possible params for your config file (or front matter):
* [Font Awesome](https://fontawesome.com/) and [Fork Awesome](https://forkaweso.me/) for the icons;
* [@nickpunt](https://gist.github.com/nickpunt) and [@regpaq](https://gist.github.com/regpaq) for the [dark/light mode switcher](https://gist.github.com/regpaq/04c67e8aceecbf0fd819945835412d1f) idea;
* Glenn McComb and [his article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination with Hugo;
-* JeffProd and [his article](https://en.jeffprod.com/blog/2018/build-your-own-hugo-website-search-engine/) about building a custom search engine for Hugo;
+* JeffProd and [his article](https://en.jeffprod.com/blog/2018/build-your-own-Hugo-website-search-engine/) about building a custom search engine for Hugo;
* Many people [on this forked gist](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae) for their takes on Fuse.js + Hugo;
* Philip Walton and [his sticky footer solution](https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/) with Flexbox;
* [Fuse.js](https://github.com/krisk/Fuse);
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 22b034f..6f9ae60 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -24,7 +24,9 @@
{{ $inputFile := . }}
{{ range $imageProc }}
- {{ $outputSet = $outputSet | append (printf "%s %s" (($inputFile.Resize (index . 0)).RelPermalink) (index . 1)) }}
+ {{ if reflect.IsSlice . }}
+ {{ $outputSet = $outputSet | append (printf "%s %s" (($inputFile.Resize (index . 0)).RelPermalink) (index . 1)) }}
+ {{ end }}
{{ end }}
<img
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9e11322..db4f7ce 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -344,6 +344,11 @@
<!-- Preload fonts -->
{{ partialCached "font-preload" . }}
+<!-- Preload search index -->
+{{ if eq .Layout "search" }}
+ <link rel="preload" href="index.json" as="fetch" crossorigin="anonymous">
+{{ end }}
+
<!-- Preconnect for KaTeX -->
{{ if or .Params.katex .Site.Params.katex .Params.math .Site.Params.math }}
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin="anonymous">