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

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <git@rootwork.org>2022-04-08 01:13:48 +0300
committerGitHub <noreply@github.com>2022-04-08 01:13:48 +0300
commit7f980daaa6dbb6823a7ce1474e2329022408947a (patch)
tree360a9cdfcbff24774788459d87646b8c703ea346
parent6bc1ee12cccfaae93f0851b0053ac9cb96812c0f (diff)
parentf40414b5292c3af64ee46adc9efb8f034c7465e2 (diff)
Merge branch 'master' into remove-image-errors
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--README.md18
-rw-r--r--layouts/partials/icons.html2
-rw-r--r--layouts/partials/search/scripts.html2
-rw-r--r--layouts/partials/search/widget.html2
-rw-r--r--layouts/partials/sprite.html3
-rw-r--r--layouts/partials/top.html2
-rw-r--r--static/images/jane-doe.pngbin26806 -> 0 bytes
-rw-r--r--static/images/thumbnail.pngbin22745 -> 0 bytes
9 files changed, 17 insertions, 14 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4d00a72..6012b94 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,7 +9,7 @@ jobs:
matrix:
hugo-version:
- 'latest'
- - '0.89.4'
+ - '0.95.0'
steps:
- uses: actions/checkout@v2
diff --git a/README.md b/README.md
index fddbe03..585d567 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,8 @@ A technology-minded theme for Hugo based on VMware's open-source [Clarity Design
* Blog with tagging and category options
+* Search
+
* Deeplinks
* Choice of whether to use [Hugo Page Bundles](https://gohugo.io/content-management/page-bundles/)
@@ -784,12 +786,12 @@ Likewise, the site configuration option `showRelatedInSidebar` controls if relat
### Search
-Ensure you have these settings inside your configuration files
+Search is currently a BETA feature. Ensure you have these settings inside your configuration files:
```toml
# config/_default/config.toml
[outputs]
- home = ["HTML", "RSS","JSON"]
+ home = ["HTML", "RSS","JSON"]
```
```toml
@@ -797,18 +799,18 @@ Ensure you have these settings inside your configuration files
enableSearch = true
```
-Compose implements `fuse.js` to enable search functionality. At the time of this writing, search on these theme takes either of this forms:
+[Compose](https://github.com/onweru/compose), from which this feature is derived, implements `fuse.js` to enable search functionality. At the time of this writing, search on this theme takes either of the following forms:
1. __Passive search__
- This occurs only when the user loads the search page i.e `/search/`. They can directly navigate to that url. Alternatively, the user can type you search query on the search field and click enter. They will be redirected to the search page which will contain matched results if any.
+ This occurs only when the user loads the search page i.e `/search/`. They can directly navigate to that url. Alternatively, the user can type the search query on the search field and hit enter. They will be redirected to the search page which will contain matched results if any.
- Currently, this only works on the default language. Support for multilingual passive search coming soon.
+ Currently, this only works on the default language. Support for multilingual passive search is coming soon.
2. __Live search__
- This behaviour will be obvious as the user types a search query on the search field. All `valid search queries`, will yield a list of `quick links` or a simple `no matches found`. Else, the user will be prompted to continue typing.
+ This behavior will be obvious as the user types a search query on the search field. All valid search queries will yield a list of quick links or a simple "no matches found". Else, the user will be prompted to continue typing.
- live search works even for multilingual sites.
+ Live search works even for multilingual sites.
- For chinese-like languages, it may or may not work.
+ For Chinese-like languages, it may or may not work.
diff --git a/layouts/partials/icons.html b/layouts/partials/icons.html
index 68fa1df..a0ffdea 100644
--- a/layouts/partials/icons.html
+++ b/layouts/partials/icons.html
@@ -33,7 +33,7 @@
<symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="linkedin">
<path d="M437 0H75C33.648 0 0 33.648 0 75v362c0 41.352 33.648 75 75 75h362c41.352 0 75-33.648 75-75V75c0-41.352-33.648-75-75-75zM181 406h-60V196h60zm0-240h-60v-60h60zm210 240h-60V286c0-16.54-13.46-30-30-30s-30 13.46-30 30v120h-60V196h60v11.309C286.719 202.422 296.93 196 316 196c40.691.043 75 36.547 75 79.688zm0 0"></path>
</symbol>
- <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612" id="arrow">
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612" id="to-top">
<path d="M604.501 440.509L325.398 134.956c-5.331-5.357-12.423-7.627-19.386-7.27-6.989-.357-14.056 1.913-19.387 7.27L7.499 440.509c-9.999 10.024-9.999 26.298 0 36.323s26.223 10.024 36.222 0l262.293-287.164L568.28 476.832c9.999 10.024 26.222 10.024 36.221 0 9.999-10.023 9.999-26.298 0-36.323z"></path>
</symbol>
<symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="carly">
diff --git a/layouts/partials/search/scripts.html b/layouts/partials/search/scripts.html
index 42efeae..a93130a 100644
--- a/layouts/partials/search/scripts.html
+++ b/layouts/partials/search/scripts.html
@@ -1,5 +1,5 @@
{{- $params := site.Params }}
-{{- if default $params.enableSearch true }}
+{{- if $params.enableSearch }}
{{- $fusePath := "js/fuse.js" }}
{{- $fuse := resources.Get $fusePath | resources.ExecuteAsTemplate $fusePath . }}
diff --git a/layouts/partials/search/widget.html b/layouts/partials/search/widget.html
index 733cebb..afcc0d2 100644
--- a/layouts/partials/search/widget.html
+++ b/layouts/partials/search/widget.html
@@ -1,5 +1,5 @@
{{- $params := site.Params }}
-{{- if default site.Params.enableSearch true }}
+{{- if site.Params.enableSearch }}
{{- $placeholder := T "search_field_placeholder" }}
{{- $section := $.Page.Section }}
{{- $simple := true }}
diff --git a/layouts/partials/sprite.html b/layouts/partials/sprite.html
index 63eaf57..2956340 100644
--- a/layouts/partials/sprite.html
+++ b/layouts/partials/sprite.html
@@ -1,3 +1,4 @@
<svg class="icon">
+ <title>{{ .icon }}</title>
<use xlink:href="#{{ .icon }}"></use>
-</svg> \ No newline at end of file
+</svg>
diff --git a/layouts/partials/top.html b/layouts/partials/top.html
index c17b3c2..c7825f7 100644
--- a/layouts/partials/top.html
+++ b/layouts/partials/top.html
@@ -1,3 +1,3 @@
<a class="to_top" href="#documentTop">
- {{ partialCached "sprite" (dict "icon" "arrow") . }}
+ {{ partialCached "sprite" (dict "icon" "to-top") . }}
</a>
diff --git a/static/images/jane-doe.png b/static/images/jane-doe.png
deleted file mode 100644
index 5390701..0000000
--- a/static/images/jane-doe.png
+++ /dev/null
Binary files differ
diff --git a/static/images/thumbnail.png b/static/images/thumbnail.png
deleted file mode 100644
index c484f2a..0000000
--- a/static/images/thumbnail.png
+++ /dev/null
Binary files differ