Skip to content

Commit

Permalink
fix template error
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jun 28, 2024
1 parent af7237b commit f45662c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<li id="showimages"><a id="se" href="">show images</a></li>
{{- end }}
{{- end }}
{{- if and .PostID }}{{ $post := (index .Posts 0) }}{{ if $post.CrossPosts }}
{{- if and .PostID .Posts }}{{ $post := (index .Posts 0) }}{{ if $post.CrossPosts }}
<li><a href="/{{.Host}}/search?q={{ $post.Post.URL.String }}&searchtype=Url{{ if not $post.Post.Local }}&listingType=All{{end}}">other discussions ({{ $post.CrossPosts }})</a></li>
{{- end }}{{ end }}
<form id="sidetoggle" class="link-btn{{ if .HideSidebar }} o{{end}}" method="POST">
Expand Down

0 comments on commit f45662c

Please sign in to comment.