|
|
@ -22,7 +22,7 @@
|
|
|
|
<summary>
|
|
|
|
<summary>
|
|
|
|
|
|
|
|
|
|
|
|
<h1 id="{{ anchorize $event_name }}">
|
|
|
|
<h1 id="{{ anchorize $event_name }}">
|
|
|
|
{{ with .title }}{{ $.title | markdownify }}{{ else }}<code>{{ $event_name }}</code>{{ end }}
|
|
|
|
{{ with .title }}{{ . | markdownify }}{{ else }}<code>{{ $event_name }}</code>{{ end }}
|
|
|
|
</h1>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
<hr/>
|
|
|
@ -74,10 +74,16 @@
|
|
|
|
*/}}
|
|
|
|
*/}}
|
|
|
|
{{ if $desired_example_name }}
|
|
|
|
{{ if $desired_example_name }}
|
|
|
|
{{ if eq $example_name $desired_example_name }}
|
|
|
|
{{ if eq $example_name $desired_example_name }}
|
|
|
|
{{ partial "events/example" (dict "example" $example)}}
|
|
|
|
{{ partial "events/example" $example }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
|
|
|
|
If `$desired_example_name` is not given, we will include any
|
|
|
|
|
|
|
|
example that is equal to the event name. Normally, this would
|
|
|
|
|
|
|
|
be handled by the case below, but that case does not work if
|
|
|
|
|
|
|
|
the event name includes a "$".
|
|
|
|
|
|
|
|
*/}}
|
|
|
|
{{ else if eq $event_name $example_name }}
|
|
|
|
{{ else if eq $event_name $example_name }}
|
|
|
|
{{ partial "events/example" (dict "example" $example)}}
|
|
|
|
{{ partial "events/example" $example }}
|
|
|
|
{{/*
|
|
|
|
{{/*
|
|
|
|
If `$desired_example_name` is not given, we will include any
|
|
|
|
If `$desired_example_name` is not given, we will include any
|
|
|
|
examples whose first part (before "$") matches the event name
|
|
|
|
examples whose first part (before "$") matches the event name
|
|
|
@ -87,7 +93,7 @@
|
|
|
|
{{ $pieces := split $example_name "$" }}
|
|
|
|
{{ $pieces := split $example_name "$" }}
|
|
|
|
{{ $example_base_name := index $pieces 0 }}
|
|
|
|
{{ $example_base_name := index $pieces 0 }}
|
|
|
|
{{ if eq $event_name $example_base_name }}
|
|
|
|
{{ if eq $event_name $example_base_name }}
|
|
|
|
{{ partial "events/example" (dict "example" $example)}}
|
|
|
|
{{ partial "events/example" $example }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|