Muhammad Hanif
fc28fa7493
Add meta tag for yandex site verification ( #187 )
...
usage in site config =>
params:
analytics:
yandex:
SiteVerificationTag: xxxxxxxxxxxxxxxx
2021-01-23 15:49:51 +05:30
Aditya Telange
e02df37142
Revert "fix wrong load stylesheet and JS on multihost (multilingual) #126 "
...
Doesn't work with multilingual config with no specific baseurl
This reverts commit ad79fdaf83
.
2021-01-20 19:11:21 +05:30
Aditya Telange
ad79fdaf83
fix wrong load stylesheet and JS on multihost (multilingual) #126
2021-01-20 19:06:02 +05:30
Roman Ispaev
3b5c7faaec
fix wrong asset links on multihost config ( #126 )
...
CORS issue for multidomain setup (#168 )
2021-01-06 01:51:43 +05:30
Aditya Telange
838e607122
head: rm invalid rel="preload" on search assets
2020-12-27 22:39:03 +05:30
Aditya Telange
23aeda369c
head: trim whitespace from canonicalURL
...
- amend to 14c5245
2020-12-18 11:58:16 +05:30
Cody Brownstein
2abc278c69
head: Fix user defining canonical URL resulting in multiple canonical URLs ( #133 )
...
* Revert "head: add support for Canonical URLs"
This reverts commit 8af7c551ff
.
* Allow user to specify single canonical URL
2020-12-15 22:59:04 +05:30
Aditya Telange
77ff1e6b45
search: introduce loading custom fusejs options from site config #134
...
* 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"]
2020-12-15 18:57:42 +05:30
Aditya Telange
bf79c208ae
layouts: use hugo.IsProduction
2020-12-13 20:19:25 +05:30
Aditya Telange
8af7c551ff
head: add support for Canonical URLs
...
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 "]
2020-12-13 16:36:30 +05:30
Aditya Telange
d74ad93c18
head: add *.css under assets/css/extended/
...
to bundle it with stylesheet.css as single resource minified
- added to the end so that default vars are overriden properly
2020-12-11 18:22:21 +05:30
Aditya Telange
08e58f5f77
head: commonize stylesheet resource
2020-12-07 22:59:51 +05:30
Aditya Telange
4a4408573e
search: init Search feature ( #105 )
...
* 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>
2020-12-06 18:19:50 +05:30
Aditya Telange
a9ff9533a0
head, footer: add option to disable fingerprinting #89
...
in site config =>
params:
assets:
disableFingerprinting: true
2020-12-01 18:52:06 +05:30
Aditya Telange
dbb0e63248
head: change title separator "-" -> "|"
2020-11-23 01:27:09 +05:30
Aditya Telange
a276a5dfd1
head: rm site.webmanifest, not a PWA
2020-11-17 19:38:07 +05:30
Aditya Telange
62477e7d1b
head: add meta robots
...
- disable indexing for non-prod sites
2020-11-14 12:55:19 +05:30
Aditya Telange
f4998a1ab8
head: add google_news internal template from hugo
2020-11-14 12:44:56 +05:30
Aditya Telange
d2f2fa6cc6
head: add alternate pages
...
to indicate multiple language/locale versions
for multilungual sites
2020-11-12 11:19:29 +05:30
Aditya Telange
64e8532a50
head: load stylesheet resources with a wildcard
...
- include profile-mode
(cannot be done before f9fbdc9963
)
- reduce request count from 2 to 1
improves perf :P
https://web.dev/resource-summary/
2020-11-09 11:18:22 +05:30
Aditya Telange
795c06b2cc
head: improve favicons presence
...
- 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>"
2020-11-05 19:48:30 +05:30
Aditya Telange
5b9eaac130
layouts: use author partial in head and post_meta
2020-10-25 12:47:09 +05:30
Northerner-coder
b720e4a523
extended_head: init ( #44 )
...
* add placeholder template for extending head
2020-10-18 20:21:42 +05:30
Aditya Telange
7db1be3d73
head: update description and keywords logic
2020-10-17 16:00:46 +05:30
Aditya Telange
fb945ba3c1
json-schema: add support for Rich Results: Json schema for structured data ( #36 )
...
* 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
2020-10-15 10:21:33 +05:30
Aditya Telange
306889f68b
head: link custom templates for social meta
2020-10-11 21:08:44 +05:30
Aditya Telange
8cab9c9de5
head: support favicon custom path
...
usage =>
params:
assets:
favicon: '<path / external url>'
closes #14
2020-10-04 15:09:50 +05:30
Aditya Telange
8a8652fbf0
assets: improvements
...
- rm redundant minify's
- url as //assets/<js or css>/<path>
2020-10-03 18:31:08 +05:30
Aditya Telange
46d5200714
head: add meta keywords
2020-10-03 15:16:19 +05:30
Aditya Telange
178b1560e1
head: AlternativeOutputFormats impl as in hugo docs
...
* https://gohugo.io/templates/output-formats/#list-output-formats
2020-10-03 14:47:42 +05:30
Aditya Telange
61cbbee16c
css: refactor
2020-09-29 16:43:41 +05:30
Aditya Telange
016dd6e9fa
(lint) remove unnecessary whitespace
...
created by hugo's {{ }}
2020-09-23 12:52:32 +05:30
Aditya Telange
d3517dadbf
head : improve meta
2020-09-17 14:03:57 +05:30
Aditya Telange
26aa913367
head: show title insted of description
...
on non-home pages
2020-09-06 21:16:55 +05:30
Aditya Telange
a22aa8aac3
remove custom css support
...
* user can clone head into <site root>/layouts/partials/head.html
and add custom resources and assets according to wish
2020-09-06 20:27:17 +05:30
Aditya Telange
eeb70f3f89
automatic-theme : remove
2020-09-06 20:16:51 +05:30
Aditya Telange
5345b3e6b0
profile-mode: enabled only on .Site.Params.profileMode.enabled: true
2020-08-27 19:55:39 +05:30
Aditya Telange
6be9da45ab
profileMode : init
...
usaage, in config add
params:
profileMode:
title: "PaperMod" // or default will be site.title
imageUrl: "<image_link>"
2020-08-23 18:19:41 +05:30
Aditya Telange
741fc9d220
layouts/head : fix duplicate title
...
title - title
2020-08-23 15:58:27 +05:30
Aditya Telange
d75f9c27f6
add google siteverification tag in head
...
to use this, add below code to config file
analytics:
google:
SiteVerificationTag: "XYZabc"
2020-08-20 22:12:53 +05:30
Aditya Telange
5e129bde1d
assets : use preload and defer
2020-07-25 12:30:52 +05:30
Aditya Telange
2e9aef08a5
Add Taxonomy Pages
...
- known as terms
- ex Tags, Categories
2020-07-25 11:57:18 +05:30
Aditya Telange
0950fb89a8
add archives layout
...
- can be used by setting
layout: "archives"
2020-07-23 03:00:51 +05:30
Aditya Telange
118bf1345e
assets: assets to proper location
2020-07-21 14:25:56 +05:30
Aditya Telange
15d7a4aabd
assets: separate style.css into parts
2020-07-21 14:20:35 +05:30
Aditya Telange
41006c33e1
assets: add fingerprint, integrity
2020-07-20 20:53:08 +05:30
Aditya Telange
338027b046
SetThemeAuto: disable auto theme set by default
...
- user needs to add
+ params:
SetThemeAuto: true
2020-07-20 20:43:23 +05:30
Aditya Telange
2e0ef75edf
separate head
2020-07-20 20:13:51 +05:30