Commit Graph

97 Commits

Author SHA1 Message Date
ranshers 2536b3aabb changed partials/head.html for fix for Google analytics change to .Site.Config.Services.GoogleAnalytics.ID 2024-09-02 12:31:01 -04:00
Reorx d7986e71bf remove twitter:image meta tag
according to https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started,
twitter:image is not needed when og:image appears
2022-09-10 01:44:16 +08:00
Reorx b816797316 rename .list to .list-page 2022-09-07 21:47:14 +08:00
Reorx 13a2c8742c WIP: newsletter section page and archives page can work 2022-09-07 02:06:21 +08:00
Reorx 51d922a535 use params.socialAccounts.twitter.username to change twitter meta tag
<meta name=twitter:site> and <meta name=twitter:creator>
2022-09-05 22:55:05 +08:00
Reorx 8502ea49d4 add apple-touch-icon in headers 2022-05-25 01:13:27 +08:00
Reorx 5c968f59a2 support custom analytics 2022-05-19 16:15:41 +08:00
Reorx 524fef2551 use small card for twitter when no cover in page 2022-05-09 22:26:45 +08:00
Reorx ff8b16b194 remove shits from opengraph 2022-05-08 22:42:23 +08:00
Reorx 0d2d905e3b rename some image variables; rss default show content 2022-05-08 01:24:38 +08:00
Reorx 4f722e0c6d add site title after title 2022-05-05 18:47:00 +08:00
Reorx 998ce46fb6 refine twitter cards 2022-05-05 11:36:20 +08:00
Reorx 97af798ba1 simpler twitter cards 2022-05-05 11:24:13 +08:00
Reorx 9377da773c enhance post typography 2022-04-21 17:32:20 +08:00
Reorx 33c1ba12e2 use hugo's builtin Chroma for code highlight 2022-04-15 00:55:41 +08:00
Reorx 60380fe684 remove highlight js 2022-04-14 21:39:30 +08:00
Reorx c3d6d75760 makes search plays well with InstantClick
by moving search script into footer.html and stop loading InstantClick when page is search
2022-04-13 00:30:45 +08:00
Reorx 9678b1cb6f adjust head tags order
put noscript at the end
2022-04-11 22:24:40 +08:00
Reorx 2023e862af always render SEO templates 2022-04-11 18:18:07 +08:00
Reorx b9bc8b7d3b replace instantpage with instantclick 2022-04-11 15:40:04 +08:00
Reorx ef80299580 add EnableInstantPage param 2022-04-10 23:40:35 +08:00
Rotzbua 09921bb542
Remove not required tailing slashes for `meta`, `link` (#862) 2022-03-31 23:33:56 +05:30
Aditya Telange 566989abf4
Revert "Preload `profileMode image` and `label icon`"
This reverts commit a3ad238f78
This reverts commit a86abf5994.
2022-03-27 19:56:56 +05:30
Aditya Telange 575cc0ca8c
Use `site` function instead of `.Site` or `$.Site`
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
2022-03-27 18:44:06 +05:30
Jannik Arndt 43c810c3e2
Remove duplicate call to hugo.Generator (#786) 2022-02-15 20:01:21 +05:30
Aditya Telange c9f7c54ae6
Rename fuse.js -> fuse.basic.min.js
- denoting we are using basic version
2022-02-05 17:54:24 +05:30
Joe Mooring dbaa17c69a
Remove call to google_news internal template (#668)
See https://github.com/gohugoio/hugo/issues/9172
2021-12-12 23:25:19 +05:30
Aditya Telange b8c7df1ef9
Allow setting cutom meta `theme-color` and `msapplication-TileColor`
fixes: #577

Usage:
  In Site Params:
    Params:
      assets:
        theme_color: color
        msapplication_TileColor: color
2021-10-30 20:01:16 +05:30
Aditya Telange 7c930ee4ea
Converts colour values from `rgba`/`hex` to `rgb` (#560)
- Except for code-copy btn
- Emojis were affected by theme opacity values, fixes: #557
2021-09-20 21:08:44 +05:30
Aditya Telange 4e9b04784b
Move `noscript` elements to head
- Should fix search engines picking up elements inside noscript
2021-09-11 11:09:01 +05:30
Aditya Telange 0eac254d58
Enable `summary` in Section pages 2021-09-02 13:26:05 +05:30
Daniel F. Dickinson a3ad238f78
Fix profileMode imageUrl preloaded on every page (#495)
Instead we now only preload on the home page.
Closes #494

Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
2021-08-10 19:52:47 +05:30
Jannik Arndt 167ca42ce3
Fix xml+rss link header (#393) 2021-05-01 21:25:26 +05:30
Aditya Telange a86abf5994
Preload `profileMode image` and `label icon`
before they are discovered in HTML
2021-05-01 11:57:59 +05:30
Cody Brownstein c3634e6ccd
Join lines in head for hljs assets (#360)
Fixes errors in lower hugo versions

Error: add site dependencies: load resources: loading templates: "site/themes/hugo-PaperMod/layouts/partials/head.html:79:1": parse failed: template: partials/head.html:79: unexpected unclosed action in command
2021-04-16 09:53:18 +05:30
Aditya Telange ba48765e2c
Use js.Build to fetch fuseOpts;
also load Search on window load
2021-04-10 00:58:23 +05:30
Aditya Telange b756217126
Add crossorigin="anonymous" also for scripts 2021-04-09 19:41:26 +05:30
Aditya Telange bb7b6f0076
Refactor, move HLJS code from footer to head;
already defered.
2021-04-09 19:38:04 +05:30
Aditya Telange 9d7576bd04
Add crossorigin="anonymous" for links #334 2021-04-09 19:25:05 +05:30
Aditya Telange 55fe10e9d3 Use non-async internal template for Google Analytics v4 2021-03-31 10:07:04 +05:30
Aditya Telange 4878383dd4
Add global keywords for home page
original idea #311
2021-03-31 10:00:31 +05:30
Aditya Telange 196b82645e
Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
Aditya Telange fb4988cfb6
Don't consider page-variable to disable HLJS while generating assets
- may lead to generating multiple bundles
2021-03-28 09:52:14 +05:30
Aditya Telange 0c0c6847e5
Don't include `an-old-hope` when hljs is disabled
- reduces 0.6 kb resources
2021-03-27 21:42:29 +05:30
Aditya Telange e503367a1a
[BREAKING] Split-up css into sub-parts (#317)
* Move styles into 3 different locations
- core
- common
- hljs

* Load all stylesheets in proper order
2021-03-27 11:28:55 +05:30
Coderslang Master 84e208f98d
Fix missing reciprocal and self-reference hreflang (#211)
ref:
- https://help.ahrefs.com/en/articles/2631143-missing-reciprocal-hreflang-no-return-tag-error-in-site-audit
- https://help.ahrefs.com/en/articles/2754344-what-does-the-self-referencing-hreflang-annotation-missing-issue-in-site-audit-mean
2021-01-29 23:25:07 +05:30
Muhammad Hanif 698616d9fb
Add a meta tag for bing site verification (#197) 2021-01-26 10:57:14 +05:30
Aditya Telange e1ea90aa60
Revert "Use md5 instead of default sha256 for generating SRI hashes (#195)"
This reverts commit 9e99493e69.
2021-01-26 10:52:48 +05:30
John 9e99493e69
Use md5 instead of default sha256 for generating SRI hashes (#195)
reference: https://gohugo.io/hugo-pipes/fingerprint/
2021-01-25 21:38:10 +05:30
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