File tree Expand file tree Collapse file tree
themes/devopsdays-theme/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ dataDir: data
88archetypeDir : archetypes
99disableKinds : ["taxonomy"]
1010enableEmoji : true
11+ timeout : 300s
1112pagination :
1213 path : blog
1314markup :
@@ -22,33 +23,6 @@ languages:
2223 languageName : English
2324 weight : 0
2425
25- # menus:
26- # main:
27- # - name: events
28- # pageRef: /events
29- # weight: -150
30- # identifier: events
31- # - name: blog
32- # pageRef: /blog
33- # weight: -140
34- # identifier: blog
35- # - name: sponsor
36- # pageRef: /sponsor
37- # weight: -130
38- # identifier: sponsor
39- # - name: speaking
40- # pageRef: /speaking
41- # weight: -120
42- # identifier: speaking
43- # - name: organizing
44- # pageRef: /organizing
45- # weight: -110
46- # identifier: organizing
47- # - name: about
48- # pageRef: /about
49- # weight: -100
50- # identifier: about
51-
5226permalinks :
5327 page : /:contentbasename/
5428 blog : /blog/:year/:month/:day/:title/
@@ -102,20 +76,20 @@ minify:
10276
10377build :
10478 buildStats :
105- disableClasses : true
106- disableIDs : true
107- disableTags : true
108- enable : true
79+ enable : false
10980 cacheBusters :
11081 - source : (postcss|tailwind)\.config\.js
11182 target : (css|styles|scss|sass)
11283 noJSConfigInAssets : false
113- useResourceCacheWhen : fallback
84+ useResourceCacheWhen : always
11485
11586caches :
11687 assets :
11788 dir : " :resourceDir/_gen"
11889 maxAge : -1
90+ getresource :
91+ dir : " :resourceDir/_gen"
92+ maxAge : -1
11993 images :
12094 dir : " :resourceDir/_gen"
12195 maxAge : -1
Original file line number Diff line number Diff line change 88 {{- partialCached "global_navbar.html" . -}}
99 {{- $section := index (split (.Permalink | relURL) "/") 1 -}}
1010 {{- if and (eq $section "events") (ne .Type "events") -}}
11- {{- partial "events/event_navbar.html" . -}}
11+ {{- $eventDir := "" -}}{{- with .File -}}{{- $eventDir = .Dir -}}{{- end -}}
12+ {{- partialCached "events/event_navbar.html" . $eventDir -}}
1213 {{- end -}}
1314 < main id ="main-content " role ="main ">
1415 < div class ="container-fluid ">
5455 </ div >
5556 </ main >
5657 {{- partialCached "footer.html" . -}}
57- {{- partial "footer_scripts.html" . -}}
58+ {{- $fsCacheKey := .Type -}}{{- with .File -}}{{- $fsCacheKey = .Dir -}}{{- end -}}
59+ {{- partialCached "footer_scripts.html" . $fsCacheKey -}}
5860</ body >
5961</ html >
Original file line number Diff line number Diff line change 55 {{- if eq .File.BaseFileName "welcome" -}}
66 {{- partial "welcome.html" . -}}
77 {{- else -}}
8- {{- partial "events/non-current-banner.html" . -}}
8+ {{- partialCached "events/non-current-banner.html" . .File.Dir -}}
99 < h1 > devopsdays {{ $e.city }} - {{ .Title }}</ h1 >
1010 {{ .Content }}
1111 {{- end -}}
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ <h2>Upcoming</h2>
99 </ div >
1010</ div >
1111
12- {{- $upcoming := partial "functions/get-upcoming-events" . -}}
13- {{- $tbd := partial "functions/get-tbd-events" . -}}
14- {{- $events := partial "functions/get-all-events" . -}}
12+ {{- $upcoming := partialCached "functions/get-upcoming-events" . "global" -}}
13+ {{- $tbd := partialCached "functions/get-tbd-events" . "global" -}}
14+ {{- $events := partialCached "functions/get-all-events" . "global" -}}
1515
1616< div class ="row ">
1717{{- $currentMonth := "" -}}
Original file line number Diff line number Diff line change 11{{ define "main" }}
22
3- {{- $upcoming := partial "functions/get-upcoming-events" . -}}
3+ {{- $upcoming := partialCached "functions/get-upcoming-events" . "global" -}}
44
55 < h1 class ="sr-only "> Upcoming DevOpsDays Events</ h1 >
66 < div class ="row ">
Original file line number Diff line number Diff line change 55 < div class ="row ">
66 < div class ="col-md-6 col-lg-4 footer-nav-col ">
77 < h3 class ="footer-nav "> CFP Open</ h3 >
8- {{- $upcoming := partial "functions/get-upcoming-events" . -}}
8+ {{- $upcoming := partialCached "functions/get-upcoming-events" . "global" -}}
99 {{- range sort $upcoming "startdate" -}}
1010 {{- if and .cfp_date_end .cfp_date_start -}}
1111 {{- if and (ge now (time.AsTime .cfp_date_start)) (ge (time.AsTime .cfp_date_end) now) -}}
Original file line number Diff line number Diff line change 1919 {{- $matchTitle = $e.event_group -}}
2020 {{- end -}}
2121
22- {{- $allEvents := partial "functions/get-all-events" . -}}
23- {{- $tbdEvents := partial "functions/get-tbd-events" . -}}
22+ {{- $allEvents := partialCached "functions/get-all-events" . "global" -}}
23+ {{- $tbdEvents := partialCached "functions/get-tbd-events" . "global" -}}
2424
2525 {{- $allEventsIncludingTBD := $allEvents -}}
2626 {{- range $tbdEvents -}}
Original file line number Diff line number Diff line change 1- {{- $upcoming := partial "functions/get-upcoming-events" . -}}
2- {{- $tbd := partial "functions/get-tbd-events" . -}}
1+ {{- $upcoming := partialCached "functions/get-upcoming-events" . "global" -}}
2+ {{- $tbd := partialCached "functions/get-tbd-events" . "global" -}}
33
44{{- $currentYear := "" -}}
55{{- $currentMonth := "" -}}
Original file line number Diff line number Diff line change 4646 {{- end -}}
4747 {{ $title }}
4848</ title >
49- {{- partial "head_includes.html" . -}}
49+ {{- partialCached "head_includes.html" . .Type .Kind -}}
Original file line number Diff line number Diff line change 1- {{ partial "google_analytics.html" . }}
2- {{ partial "google_tag_manager.html" . }}
1+ {{- $cacheKey := .Type -}}
2+ {{- with .File -}}{{- $cacheKey = .Dir -}}{{- end -}}
3+ {{ partialCached "google_analytics.html" . $cacheKey }}
4+ {{ partialCached "google_tag_manager.html" . $cacheKey }}
35
46< link rel ="preconnect " href ="https://fonts.googleapis.com ">
57< link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
You can’t perform that action at this time.
0 commit comments