Skip to content
Snippets Groups Projects
Unverified Commit 8e533ede authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #253 from noesya/front/link-agenda-block

add link to agenda in event blocks
parents 662eb079 850224ca
No related branches found
No related tags found
No related merge requests found
// Styled in sections/events
\ No newline at end of file
// Styled in sections/events
.block-agenda
.top
a
@include icon(arrow-right, after, true)
@include hover-translate-icon
text-decoration: none
\ No newline at end of file
{{- $block := .block }}
{{- $block_class := partial "GetBlockClass" .block -}}
{{- with .block.data -}}
{{- $show_summary := .show_summary -}}
{{- $show_category := .show_category -}}
{{- $show_status := .show_status -}}
{{- $layout := .layout | default "list" -}}
<div class="{{ $block_class }}">
<div class="container">
<div class="block-content">
{{ $events_page := site.GetPage "/events" }}
{{ $link := $events_page.Permalink }}
{{ if .category }}
{{ $term := site.GetPage (printf "/posts_categories%s" .category) }}
{{ $link = $term.Permalink }}
{{ end }}
{{ partial "blocks/top.html" (dict
"title" $block.title
"heading_level" $block.ranks.self
"description" .description
"link" $link
)}}
{{ if .events }}
......
......@@ -45,9 +45,9 @@
<p class="event-status">
{{ if eq .Params.dates.status "current"}}
{{- i18n "blocks.events.current" -}}
{{ else if .Params.dates.status "future" }}
{{ else if eq .Params.dates.status "future" }}
{{- i18n "blocks.events.future" -}}
{{ else if .Params.dates.status "archive" }}
{{ else if eq .Params.dates.status "archive" }}
{{- i18n "blocks.events.archive" -}}
{{ end }}
</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment