File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ buildFuture = true
1818[languages ]
1919 [languages .en ]
2020 disabled = false
21- languageCode = " de-EN"
22- languageDirection = ' ltr'
23- languageName = ' English'
21+ locale = " de-EN"
22+ direction = ' ltr'
23+ label = ' English'
2424 weight = 1
2525
2626 [languages .de ]
27- languageCode = " de-DE"
27+ locale = " de-DE"
2828 disabled = false
29- languageDirection = ' ltr'
30- languageName = ' Deutsch'
29+ direction = ' ltr'
30+ label = ' Deutsch'
3131 weight = 2
3232
3333
Original file line number Diff line number Diff line change 1+ {{ define "main" }}
2+ < section id ="blog " class ="bg-one ">
3+ < div style ="display:block; height: 100px; "> </ div >
4+ < div class ="section-one ">
5+ < div class ="title-one "> {{ .Title }}</ div >
6+ < div class ="data-content-one ">
7+ {{ with .Content }}{{ . }}{{ end }}
8+ {{ range .Pages.ByTitle }}
9+ < div class ="line line-1 " style ="margin: 25px auto; "> </ div >
10+ < h3 > < a href ="{{ .Permalink }} "> {{ .Title }}</ a > </ h3 >
11+ < div >
12+ {{ .Summary | plainify }} [...]
13+ </ div >
14+ < br >
15+ {{ end }}
16+ </ div >
17+ </ div >
18+ </ section > <!-- end list -->
19+ {{ end }}
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ <h1><div class="title-two title-two-no-bottom-padding">{{ i18n "home_research" }
167167 < h2 > < div class ="title-one "> Talks & Events</ div > </ h2 >
168168 </ div >
169169 {{ $filteredPages := slice }}
170- {{ range .Sites.Default.RegularPages }}
170+ {{ range hugo .Sites.Default.RegularPages }}
171171 {{ if and (eq .Type "talks-and-events") (le (sub (now.Unix) (.Date.Unix)) 0) }}
172172 {{ $filteredPages = $filteredPages | append . }}
173173 {{ end }}
@@ -209,11 +209,11 @@ <h3>{{ i18n "past_home_talks_teaser" }}</h3>
209209 {{/*
210210 In translate page this call would be ... where .Site.RegularPages "Type" ...
211211 But since the Site object changes depending on the current language we will get an empty folder if a folder is not fully translated.
212- Accessing .Sites.Default.Regularpages gives the general folder and can show even different languages in a variant
212+ Accessing hugo .Sites.Default.RegularPages gives the general folder and can show even different languages in a variant
213213 */}}
214214
215215 {{ $filteredPages := slice }}
216- {{ range .Sites.Default.RegularPages }}
216+ {{ range hugo .Sites.Default.RegularPages }}
217217 {{ if and (eq .Type "talks-and-events") (gt (sub (now.Unix) (.Date.Unix)) 0) }}
218218 {{ $filteredPages = $filteredPages | append . }}
219219 {{ end }}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ <h2 class="ui top attached block header">
115115 {{ i18n "downloads" }}
116116 </ h2 >
117117 < div class ="ui attached divided items segment ">
118- {{ range $.Site .Data.downloads }}
118+ {{ range hugo .Data.downloads }}
119119 < div class ="item ">
120120 < i class ="{{ .icon }} icon "> </ i >
121121 < div class ="content ">
You can’t perform that action at this time.
0 commit comments