diff --git a/layouts/partials/post_nav.html b/layouts/partials/post_nav.html index 24ae9cc..ffb1c73 100644 --- a/layouts/partials/post_nav.html +++ b/layouts/partials/post_nav.html @@ -3,12 +3,12 @@ {{ with .PrevInSection }} - {{ T "post_nav_prev" }}{{ with .Title }}{{ . }}{{ end }} + {{ T "post_nav_prev" }}{{ with .Title }}{{ . }}{{ else }}{{ .Summary | truncate 60 }}{{ end }} {{ end }} {{ with .NextInSection }} - {{ T "post_nav_next" }}{{ with .Title }}{{ . }}{{ end }} + {{ T "post_nav_next" }}{{ with .Title }}{{ . }}{{ else }}{{ .Summary | truncate 60 }}{{ end }} {{ end }}
{{ . }}
{{ with .Title }}{{ . }}{{ else }}{{ .Summary | truncate 60 }}{{ end }}