forked from Git/hugo-story
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
e3e2b8d867 | |||
195a94e675 | |||
b05c4ffd70 | |||
6b7a0ed9f9 | |||
b35505a6ea | |||
b8a7e875ec | |||
3695555379 | |||
501c6ed111 | |||
c6cf204016 | |||
7c71bb3c8e |
39
.gitignore
vendored
Normal file
39
.gitignore
vendored
Normal 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
2
exampleSite/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.hugo_build.lock
|
||||
resources/
|
@ -24,7 +24,7 @@ publishDir = "public"
|
||||
## Hugo Built-in Features
|
||||
## -----------------------------------------------
|
||||
|
||||
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
|
||||
disableKinds = ["taxonomy", "section"]
|
||||
# googleAnalytics = "G-XXXXXXXXXX"
|
||||
|
||||
## -----------------------------------------------
|
@ -24,7 +24,7 @@ publishDir = "public"
|
||||
## Hugo Built-in Features
|
||||
## -----------------------------------------------
|
||||
|
||||
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
|
||||
disableKinds = ["taxonomy", "section"]
|
||||
# googleAnalytics = "G-XXXXXXXXXX"
|
||||
|
||||
## -----------------------------------------------
|
@ -24,7 +24,7 @@ publishDir = "public"
|
||||
## Hugo Built-in Features
|
||||
## -----------------------------------------------
|
||||
|
||||
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
|
||||
disableKinds = ["taxonomy", "section"]
|
||||
# googleAnalytics = "G-XXXXXXXXXX"
|
||||
|
||||
## -----------------------------------------------
|
@ -24,7 +24,7 @@ publishDir = "public"
|
||||
## Hugo Built-in Features
|
||||
## -----------------------------------------------
|
||||
|
||||
disableKinds = ["taxonomy", "taxonomyTerm", "section"]
|
||||
disableKinds = ["taxonomy", "section"]
|
||||
# googleAnalytics = "your-google-analytics-id"
|
||||
|
||||
## -----------------------------------------------
|
@ -18,7 +18,6 @@
|
||||
</div>
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ partial "scripts" . }}
|
||||
|
||||
</body>
|
||||
|
@ -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 }}
|
||||
|
@ -17,9 +17,7 @@
|
||||
<!-- Wrapper -->
|
||||
</div>
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ partial "scripts" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -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 }}
|
||||
|
Reference in New Issue
Block a user