Skip to content

Commit

Permalink
Fix fragments not showing in the 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
mpourismaiel committed Aug 13, 2019
1 parent a4f1075 commit 877c92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/helpers/fragments.html
Expand Up @@ -151,7 +151,7 @@
{{- if $page_scratch.Get "fragments" -}}
{{- range ($page_scratch.Get "fragments") -}}
{{- $name := replace .Name "/index" "" -}}
{{- if $root.File -}}
{{- if ne $root.File nil -}}
{{- $directory_same_name := in ($page_scratch.Get "fragments_directory_name") (printf "%s%s/" $root.File.Dir (replace $name ".md" "")) -}}
{{- if and (not .Params.disabled) (isset .Params "fragment") (not (where ($page_scratch.Get "page_fragments") ".Name" $name)) (not $directory_same_name) -}}
{{- if or $is_404 (ne .Params.fragment "404") -}}
Expand Down

0 comments on commit 877c92e

Please sign in to comment.