diff --git a/assets/icons/graduation-cap.svg b/assets/icons/graduation-cap.svg new file mode 100644 index 00000000..4c50bd0d --- /dev/null +++ b/assets/icons/graduation-cap.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/assets/icons/scale-balanced.svg b/assets/icons/scale-balanced.svg new file mode 100644 index 00000000..67d365f3 --- /dev/null +++ b/assets/icons/scale-balanced.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 39d9072e..c891229f 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -113,7 +113,6 @@ smartTOCHideUnfocusedChildren = true cardView = true cardViewScreenWidth = false - [firebase] apiKey = "AIzaSyB5tqlqDky77Vb4Tc4apiHV4hRZI18KGiY" authDomain = "blowfish-21fff.firebaseapp.com" diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 3881f0b7..6bbbd258 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -49,6 +49,7 @@ The full list of built-in icons and their corresponding names can referenced bel | globe | {{< icon globe >}} | | goodreads | {{< icon goodreads >}} | | google | {{< icon google >}} | +| graduation-cap | {{< icon graduation-cap >}} | | hackernews | {{< icon hackernews >}} | | hashnode | {{< icon hashnode >}} | | heart-empty | {{< icon heart-empty >}} | @@ -83,6 +84,7 @@ The full list of built-in icons and their corresponding names can referenced bel | researchgate | {{< icon researchgate >}} | | rss | {{< icon rss >}} | | rss-square | {{< icon rss-square >}} | +| scale-balanced | {{< icon scale-balanced >}} | | search | {{< icon search >}} | | shield | {{< icon shield >}} | | skull-crossbones | {{< icon skull-crossbones >}} | diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html deleted file mode 100644 index 5a678e96..00000000 --- a/layouts/partials/analytics.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ with site.Params.fathomAnalytics.site }} -{{ if isset $.Site.Params.fathomanalytics "domain" }} - -{{ else }} - -{{ end }} -{{ end }} -{{/* template "_internal/google_analytics.html" . */}} -{{ partial "ga-analytics.html" }} \ No newline at end of file diff --git a/layouts/partials/analytics/fathom.html b/layouts/partials/analytics/fathom.html new file mode 100644 index 00000000..f1e2639f --- /dev/null +++ b/layouts/partials/analytics/fathom.html @@ -0,0 +1,5 @@ +{{ if isset site.Params.fathomAnalytics "domain" }} + +{{ else }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/ga-analytics.html b/layouts/partials/analytics/ga.html similarity index 82% rename from layouts/partials/ga-analytics.html rename to layouts/partials/analytics/ga.html index 2d37f8ec..3523d5a5 100644 --- a/layouts/partials/ga-analytics.html +++ b/layouts/partials/analytics/ga.html @@ -1,4 +1,3 @@ -{{ if site.Config.Services.GoogleAnalytics.ID }} -{{ end }} \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/analytics/main.html b/layouts/partials/analytics/main.html new file mode 100644 index 00000000..c3b4c57d --- /dev/null +++ b/layouts/partials/analytics/main.html @@ -0,0 +1,6 @@ +{{ with site.Params.fathomAnalytics.site }} +{{ partial "analytics/fathom.html" }} +{{ end }} +{{ with site.Config.Services.GoogleAnalytics.ID }} +{{ partial "analytics/ga.html" }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 157b3883..b987066e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -113,7 +113,7 @@ {{/* Vendor */}} {{ partial "vendor.html" . }} {{/* Analytics */}} - {{ partial "analytics.html" .Site }} + {{ partial "analytics/main.html" .Site }} {{/* Extend head - eg. for custom analytics scripts, etc. */}} {{ if templates.Exists "partials/extend-head.html" }} {{ partialCached "extend-head.html" .Site }} diff --git a/package.json b/package.json index f78c9f06..a28d03ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.35.0", + "version": "2.35.1", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall",