This theme is packaged as a Go module in order to allow it to be managed as a dependency of Hugo-based websites.
Due to the current use of a tag name format that does not meet the the semver-compliant requirement of the Go module
framework, the standard procedure for installing the theme in a Hugo-based website as a Go module dependency results in
the beta version of the theme from the tip of the theme repository's default branch being installed.
The resulting "pseudo-version" of the dependency makes it so that updates of the dependency cannot be managed
automatically via the popular Dependabot service.
A Go module is identified by a "module path". The Go module framework requires that this path have a major version
suffix if the project is at a version of 2.0.0 or above.
This project is at version 7.0, so its Go module path must have a suffix of v7 in order to be compliant with the Go
module framework.
Using a compliant module path as well as compliant tag names benefits the users of this theme by allowing them to manage
the dependency in a safe and efficient manner.
* add social icon of leetcode
from https://simpleicons.org/
* alphabetize
---------
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
* feat: add configurable limit to search results
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
* Handle case where params.fuseOpts is not defined
resulting into `Cannot read properties of null (reading 'limit')`
Utilizes search options by fuse https://www.fusejs.io/api/methods.html#search
The options:
limit (type: number): Denotes the max number of returned search results.
---------
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
* feat: allow hiding author in post_meta
For a person's site, in most cases the author is the person, and displaying it
on every post and list may be redundant.
Setting the `params.author` in the configuration to empty will achieve
the hidden effect, but it will also empty the value of `<meta name="author">`.
So add hideAuthor
By default, the cover is loaded from the page resources folder (same folder).
If the image is not found, the (global) assets folder is searched as well. If found, the same processing is done.
Otherwise, the fallback remains with linking to the image directly.
The link was previously hard-coded to index.html, which doesn't work on
paginated list pages because it would go to something like
/section/pages/2/index.html instead of /section/index.html.
If the setting “ShowRssButtonInSectionTermList” is true, I think it
makes sense to also show the RSS icon by the title in archive pages, as
we do for other article lists.
This reuses the code of `layouts/_default/list.html`.
According to caniuse.com only around 69% of mobile user and 22% desktop users use a browser that supports this element. Therefore this change uses text-decoration: line-through to archive the same effect across browsers.