Commit Graph

86 Commits

Author SHA1 Message Date
Wonderfall 18b691c534 remove noscript inline style 2022-07-31 01:16:39 +02:00
Wonderfall 8411411a67 built-in Chroma 2022-07-24 01:39:42 +02:00
Wonderfall 2528906a38 Remove inline JS 2022-07-23 04:15:25 +02:00
Taeho Nam 0262b5eba0
Fix typo to work with site verification tags (#954)
It was originally correct code, but it has been erroneously corrected by the commit below.
575cc0c

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2022-06-22 22:49:43 +05:30
Aditya Telange a94674e6c9
Include chroma fix code when hljs is disabled
provided: pygmentsUseClasses: true & markup.highlight.noClasses: false

https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
2022-06-10 21:26:13 +05:30
Aditya Telange 181a8c38f3
Allow disabling custom Scroll Bar Style
closes #637

Usage =>
Params.assets.disableScrollBarStyle: true
2022-06-03 18:33:54 +05:30
Aditya Telange c2d047f376
Add code loading CSS for required features
based on #696
2022-06-03 18:30:49 +05:30
Aditya Telange a4b20f0f4d
Add license text for PaperMod in resources 2022-05-29 11:11:26 +05:30
Aditya Telange e1a46046bc
Stop minfiying already minified resources
- Keeps the license text for 3rd party lib in place after generation
2022-05-29 10:52:15 +05:30
Martin Pittermann 7b9c836416
Add robotsNoIndex parameter (#900)
- adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines.
- Usage: In post front-matter add,
    ---
    robotsNoIndex: true
    ---
2022-05-22 11:13:50 +05:30
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
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