Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layouts/_partials/event.ics
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- /* Override of component event.ics — uses .Site.Language.Lang instead of .Locale (requires Hugo 0.159+) */ -}}
{{- if or (eq hugo.Environment "development") (eq hugo.Environment "debug") }}{{ warnidf "debug-partial-used" "Partial used: %s" templates.Current.Name }}{{ end -}}
{{- if or (eq hugo.Environment "development") (eq hugo.Environment "debug") }}{{ warnf "Partial used: %s" templates.Current.Name }}{{ end -}}
{{- $timezone := partial "ical/get_timezone.ics" . -}}
{{- $lang := .Site.Language.Lang -}}
{{- $endDate := "" -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/header.ics
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq hugo.Environment "development") (eq hugo.Environment "debug") }}{{ warnidf "debug-partial-used" "Partial used: %s" templates.Current.Name }}{{ end -}}
{{- if or (eq hugo.Environment "development") (eq hugo.Environment "debug") }}{{ warnf "Partial used: %s" templates.Current.Name }}{{ end -}}
{{/* Override of component header.ics — uses .Site.Language.Lang instead of .Locale (requires Hugo 0.159+) */}}
{{ with dict `` `
` "name" (dict "text" "PowerShell.org Community Calendar" "lang" .Site.Language.Lang) `` `
Expand Down
31 changes: 31 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build]
base = "/"
command = "hugo --minify"
publish = "public"

[build.environment]
HUGO_VERSION = "0.155.1"
HUGO_ENVIRONMENT = "production"
TZ = "UTC"

[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"

[[headers]]
for = "/discord/*"
[headers.values]
Cache-Control = "public, max-age=3600"

[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "hugo server --environment production"
},
"devDependencies": {
"hugo-extended": "^0.121.0",
"hugo-extended": "^0.155.1",
"node-fetch": "^3.3.2"
}
}
Loading