Skip to content
Snippets Groups Projects
Commit 9865b2c3 authored by Olivia206's avatar Olivia206
Browse files

removed categories from block events link

parent 1f90e0ee
No related branches found
No related tags found
No related merge requests found
{{- $block := .block }}
{{- $term := false -}}
{{- $block_class := partial "GetBlockClass" .block -}}
{{- with .block.data -}}
......@@ -7,27 +6,20 @@
{{- $show_category := .show_category -}}
{{- $show_status := .show_status -}}
{{- $layout := .layout | default "list" -}}
{{ if .category }}
{{- $term = site.GetPage (printf "/events_categories%s" .category) -}}
{{ end }}
<div class="{{ $block_class }}">
<div class="container">
<div class="block-content">
{{ $link := false }}
{{- if $term }}
{{ $link = $term.Permalink }}
{{- else -}}
{{ $events_page := site.GetPage "/events" }}
{{ $link = $events_page.Permalink }}
{{- end -}}
{{ $events_link := false }}
{{ $events_page := site.GetPage "/events" }}
{{ $events_link = $events_page.Permalink }}
{{ partial "blocks/top.html" (dict
"title" $block.title
"heading_level" $block.ranks.self
"description" .description
"link" $link
"link" $events_link
)}}
{{ if .events }}
......
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