update google-font linking and remove unncessarry things

This commit is contained in:
somrat sorkar 2023-07-18 13:20:30 +06:00
parent 8e771a89b4
commit 36a476851a
8 changed files with 19 additions and 11223 deletions

File diff suppressed because it is too large Load Diff

View File

@ -68,9 +68,6 @@ path = "github.com/gethugothemes/hugo-modules/components/render-link"
[[imports]] [[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/button" path = "github.com/gethugothemes/hugo-modules/shortcodes/button"
[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/codepen"
[[imports]] [[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice" path = "github.com/gethugothemes/hugo-modules/shortcodes/notice"

View File

@ -31,7 +31,7 @@ copyright = "Designed & Developed by [Zeon Studio](https://zeon.studio)"
# Preloader # Preloader
[preloader] [preloader]
enable = true enable = false
preloader = "" # use jpg, png, svg or gif format. preloader = "" # use jpg, png, svg or gif format.
# Navigation button # Navigation button
@ -69,7 +69,7 @@ mastodon = "" # Your verification code
# cookies # cookies
[cookies] [cookies]
enable = true enable = false
expire_days = 60 expire_days = 60
content = "This site uses cookies. By continuing to use this website, you agree to their use." content = "This site uses cookies. By continuing to use this website, you agree to their use."
button = "I Accept" button = "I Accept"

View File

@ -199,12 +199,6 @@ print s
<hr> <hr>
### Codepen
{{< codepen id="QWvKwmq" theme="light" height="600" >}}
<hr>
### Tables ### Tables
| Tables | Are | Cool | | Tables | Are | Cool |

View File

@ -21,10 +21,9 @@ require (
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/tab v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20230705095442-1f2d5ac8b18d // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20230705095442-1f2d5ac8b18d // indirect
github.com/zeon-studio/hugoplate v0.0.0-20230712035532-5eca80cb99df // indirect github.com/zeon-studio/hugoplate v0.0.0-20230718063034-8e771a89b4a1 // indirect
) )

View File

@ -140,9 +140,4 @@ link = "js/modal.js"
[[params.plugins.js]] [[params.plugins.js]]
link = "plugins/cookie.js" link = "plugins/cookie.js"
[[params.plugins.js]] [[params.plugins.js]]
link = "plugins/lazy-loader.js"
[[params.plugins.js]]
link = "https://cpwebassets.codepen.io/assets/embed/ei.js"
attributes = "async"
[[params.plugins.js]]
link = "plugins/youtube-lite.js" link = "plugins/youtube-lite.js"

View File

@ -19,11 +19,15 @@
{{ $sf:= site.Data.theme.fonts.font_family.secondary }} {{ $sf:= site.Data.theme.fonts.font_family.secondary }}
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link <script>
href="https://fonts.googleapis.com/css2?family={{- $pf | safeURL -}}{{- with $sf -}} (function () {
&family={{- . | safeURL -}} const googleFont = document.createElement("link");
{{- end -}}&display=swap" googleFont.href = "https://fonts.googleapis.com/css2?family={{$pf | safeURL}}{{with $sf}}&family={{. | safeURL}}{{end}}&display=swap";
rel="stylesheet" /> googleFont.type = "text/css";
googleFont.rel = "stylesheet";
document.head.appendChild(googleFont);
})();
</script>
<!-- plugins + stylesheet --> <!-- plugins + stylesheet -->
{{ $styles := slice }} {{ $styles := slice }}

View File

@ -1,16 +1,16 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.5.1", "version": "1.5.2",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {
"dev": "hugo server --disableFastRender", "dev": "hugo server",
"build": "hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic", "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic",
"test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify",
"dev:example": "cd exampleSite; hugo server --disableFastRender", "dev:example": "cd exampleSite; hugo server",
"build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic",
"test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify",
"update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy",
"remove-darkmode": "node ./scripts/removeDarkmode.js && yarn format", "remove-darkmode": "node ./scripts/removeDarkmode.js && yarn format",
"project-setup": "node ./scripts/projectSetup.js", "project-setup": "node ./scripts/projectSetup.js",