Skip to content

Commit

Permalink
Merge pull request #770 from nunocoracao/dev
Browse files Browse the repository at this point in the history
🔖 release v2.35.1
  • Loading branch information
nunocoracao authored Jun 6, 2023
2 parents 02da08d + 6f08a1d commit aa03e67
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions assets/icons/graduation-cap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/icons/scale-balanced.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ smartTOCHideUnfocusedChildren = true
cardView = true
cardViewScreenWidth = false


[firebase]
apiKey = "AIzaSyB5tqlqDky77Vb4Tc4apiHV4hRZI18KGiY"
authDomain = "blowfish-21fff.firebaseapp.com"
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/content/samples/icons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}} |
Expand Down Expand Up @@ -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 >}} |
Expand Down
9 changes: 0 additions & 9 deletions layouts/partials/analytics.html

This file was deleted.

5 changes: 5 additions & 0 deletions layouts/partials/analytics/fathom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ if isset site.Params.fathomAnalytics "domain" }}
<script defer src="https://{{ site.Params.fathomAnalytics.domain }}/script.js" data-site="{{ . }}"></script>
{{ else }}
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
{{ end }}
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{{ if site.Config.Services.GoogleAnalytics.ID }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.Config.Services.GoogleAnalytics.ID }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.Config.Services.GoogleAnalytics.ID }}');
</script>
{{ end }}
</script>
6 changes: 6 additions & 0 deletions layouts/partials/analytics/main.html
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit aa03e67

Please sign in to comment.