| Age | Commit message (Collapse) | Author |
|
Doesn't work with multilingual config with no specific baseurl
This reverts commit ad79fdaf830e9df84a154510d67011c9e6d709a5.
|
|
|
|
CORS issue for multidomain setup (#168)
|
|
|
|
- amend to 14c5245
|
|
(#133)
* Revert "head: add support for Canonical URLs"
This reverts commit 8af7c551ffb45e31d545373f88c78b38f660cf8d.
* Allow user to specify single canonical URL
|
|
* refer https://fusejs.io/api/options.html for opts
* keys used can be some, all or none from
["title", "permalink", "summary", "content"]
in config.yml, add fuseOpts as shown below =>
params:
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
keys: ["title", "permalink", "summary", "content"]
|
|
|
|
cc: #104
usage =>
in site config.yml (used for home page only) =>
canonical: ["https://www.example.com" , "https://blog.example.com"]
in per-page vars =>
canonical: ["https://www.example.com/page1" , "https://blog.example.com/pages/page1"]
|
|
to bundle it with stylesheet.css as single resource minified
- added to the end so that default vars are overriden properly
|
|
|
|
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
* modified working for PaperMod
* fetches current lang index.json for search
* add fuse.js v6.4.3 LICENSE: Apache License 2.0
* bundled fastsearch and fusejs as search.js
Co-authored-by: Craig Mod <stuff@craigmod.com>
|
|
in site config =>
params:
assets:
disableFingerprinting: true
|
|
|
|
|
|
- disable indexing for non-prod sites
|
|
|
|
to indicate multiple language/locale versions
for multilungual sites
|
|
- include profile-mode
(cannot be done before f9fbdc9963c37b8ee46196de3349d6769839da4d)
- reduce request count from 2 to 1
improves perf :P
https://web.dev/resource-summary/
|
|
- also set theme color to #2e2e33
- use syntax from https://favicon.io
- `site.webmanifest` added, should be present in "static"
Custom links to favicons can be added in site config =>
params:
assets:
favicon: "<link / abs url>"
favicon16x16: "<link / abs url>"
favicon32x32: "<link / abs url>"
apple_touch_icon: "<link / abs url>"
safari_pinned_tab: "<link / abs url>"
|
|
|
|
* add placeholder template for extending head
|
|
|
|
* json-schema: init
* sameAs can be set through .Site.Params.schema.sameAs
* if it is not specified but social-icons exsists, we use social-icons for sameAs vars
* .Site.Params.schema.sameAs overrides social-icons
* publisherType can be changed via .Site.Params.schema.publisherType
|
|
|
|
usage =>
params:
assets:
favicon: '<path / external url>'
closes #14
|
|
- rm redundant minify's
- url as //assets/<js or css>/<path>
|
|
|
|
* https://gohugo.io/templates/output-formats/#list-output-formats
|
|
|
|
created by hugo's {{ }}
|
|
|
|
on non-home pages
|
|
* user can clone head into <site root>/layouts/partials/head.html
and add custom resources and assets according to wish
|
|
|
|
|
|
usaage, in config add
params:
profileMode:
title: "PaperMod" // or default will be site.title
imageUrl: "<image_link>"
|
|
title - title
|
|
to use this, add below code to config file
analytics:
google:
SiteVerificationTag: "XYZabc"
|
|
|
|
- known as terms
- ex Tags, Categories
|
|
- can be used by setting
layout: "archives"
|
|
|
|
|
|
|
|
- user needs to add
+ params:
SetThemeAuto: true
|
|
|