Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zhou Fang
hugo-solstice-theme
Commits
c12d24ff
Commit
c12d24ff
authored
May 07, 2021
by
Zhou Fang
Committed by
Martin Lowe
May 10, 2021
Browse files
added multi-time support
parent
0199eb7e
Changes
4
Hide whitespace changes
Inline
Side-by-side
exampleSite/content/components/agenda.md
View file @
c12d24ff
...
...
@@ -105,6 +105,7 @@ Targets ./data/en/no_types/agenda.yaml:
Targets ./data/en/active/agenda.yaml:
Adding a "times" list into the items in agenda.yaml above will show multiple times like last 2 rows below
{{
<
events
/
agenda
event=
"active"
>
}}
...
...
@@ -114,6 +115,7 @@ Targets ./data/en/active/agenda.yaml:
Targets ./data/en/slides/agenda.yaml:
Adding a "times" list into the items in agenda.yaml above will show multiple times like last 2 rows below
{{
<
events
/
agenda
event=
"slides"
>
}}
...
...
exampleSite/data/en/active/agenda.yml
View file @
c12d24ff
...
...
@@ -19,9 +19,17 @@ items:
-
name
:
Industry Keynote
presenter
:
Eclipse Foundation, .etc
time
:
19:00-20:00
times
:
-
19:00-19:45 CET
-
13:00-13:45 EST
-
10:00-10:45 PST
type
:
keynote
vod
:
"
#3"
-
name
:
Lunch Break
time
:
12:00-13:00
times
:
-
19:45-20:00 CET
-
13:45-14:00 EST
-
10:45-11:00 PST
type
:
break
\ No newline at end of file
exampleSite/data/en/slides/agenda.yml
View file @
c12d24ff
...
...
@@ -21,10 +21,18 @@ items:
-
name
:
Industry Keynote
presenter
:
Eclipse Foundation, .etc
time
:
19:00-20:00
times
:
-
19:00-19:45 CET
-
13:00-13:45 EST
-
10:00-10:45 PST
type
:
keynote
vod
:
"
#3"
slides
:
"
#slide-3"
-
name
:
Dinner Break
time
:
20:00-20:30
times
:
-
19:45-20:00 CET
-
13:45-14:00 EST
-
10:45-11:00 PST
type
:
break
\ No newline at end of file
layouts/shortcodes/events/agenda.html
View file @
c12d24ff
...
...
@@ -167,7 +167,17 @@ span.eclipsefdn-agenda-legend-icon-{{ urlize .id }}::after {
{{ end }}
</td>
{{ else }}
<td>
{{ .time }}
</td>
{{if .times }}
<td>
<ul
style=
"list-style: none; padding: 0; margin: 0"
>
{{range .times}}
<li>
{{ . }}
</li>
{{end}}
</ul>
</td>
{{else}}
<td>
{{.time}}
</td>
{{end}}
{{ end }}
<!-- Write the slide column if it has been set -->
{{ if $has_slides }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment