Skip to content
Snippets Groups Projects
Commit 5fc10955 authored by alexisben's avatar alexisben
Browse files

add default posts index link to block posts without category

parent 8cad78db
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,10 @@
{{ $title_link := false }}
{{- if $term }}
{{ $title_link = $term.Permalink }}
{{ end -}}
{{- else if .all -}}
{{ $posts_page := site.GetPage "/posts" }}
{{ $title_link = $posts_page.Permalink }}
{{- end -}}
{{- if not $title -}}
{{ partial "blocks/default_title.html" $template }}
......
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