1
0
forked from Git/hugo-story

Compare commits

10 Commits

Author SHA1 Message Date
e3e2b8d867 Merge pull request #54 from deining/fix-deprecation-warning
Fix deprecation warning emitted from hugo 0.128.x
2024-07-23 09:21:57 -04:00
195a94e675 Fix deprecation warning emitted from hugo 0.128.x 2024-07-02 21:34:38 +02:00
b05c4ffd70 Merge pull request #53 from FMuro/master
google_analytics_async deprecated
2024-05-21 10:51:25 -04:00
6b7a0ed9f9 add gitignore 2024-05-21 09:35:47 +02:00
b35505a6ea google_analytics_async deprecated 2024-05-17 11:27:06 +02:00
b8a7e875ec Merge pull request #51 from 5jt/master
DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated
2024-04-28 11:23:04 -04:00
3695555379 configuration files renamed from config.toml to hugo.toml 2024-04-28 08:30:32 +01:00
501c6ed111 Fixes issue #50 2024-04-28 07:51:44 +01:00
c6cf204016 Merge pull request #1 from 5jt/5jt-patch-issue48-1
Remove references to GA templates
2024-04-27 18:41:36 +01:00
7c71bb3c8e Remove references to GA templates
Fixes issue #48.
2024-04-27 18:40:05 +01:00
10 changed files with 50 additions and 12 deletions

39
.gitignore vendored Normal file
View File

@ -0,0 +1,39 @@
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions

2
exampleSite/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.hugo_build.lock
resources/

View File

@ -24,7 +24,7 @@ publishDir = "public"
## Hugo Built-in Features
## -----------------------------------------------
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
disableKinds = ["taxonomy", "section"]
# googleAnalytics = "G-XXXXXXXXXX"
## -----------------------------------------------

View File

@ -24,7 +24,7 @@ publishDir = "public"
## Hugo Built-in Features
## -----------------------------------------------
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
disableKinds = ["taxonomy", "section"]
# googleAnalytics = "G-XXXXXXXXXX"
## -----------------------------------------------

View File

@ -24,7 +24,7 @@ publishDir = "public"
## Hugo Built-in Features
## -----------------------------------------------
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
disableKinds = ["taxonomy", "section"]
# googleAnalytics = "G-XXXXXXXXXX"
## -----------------------------------------------

View File

@ -24,7 +24,7 @@ publishDir = "public"
## Hugo Built-in Features
## -----------------------------------------------
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
disableKinds = ["taxonomy", "section"]
# googleAnalytics = "your-google-analytics-id"
## -----------------------------------------------

View File

@ -18,7 +18,6 @@
</div>
{{ template "_internal/google_analytics.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{ partial "scripts" . }}
</body>

View File

@ -9,14 +9,14 @@
{{ end }}
<!-- CSS -->
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
{{ end }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
{{ else }}

View File

@ -17,9 +17,7 @@
<!-- Wrapper -->
</div>
{{ template "_internal/google_analytics.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{ partial "scripts" . }}
</body>
</html>
</html>

View File

@ -9,14 +9,14 @@
{{ end }}
<!-- CSS -->
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
{{ end }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
{{ else }}