From 43ddff0fde3948b6e53d5d5c15fdb7cda4e548db Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 8 Feb 2021 20:28:55 +0530 Subject: [PATCH] breadcrumb nav as partial --- layouts/_default/single.html | 19 +------------------ layouts/partials/breadcrumbs.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/breadcrumbs.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ca054336..3673ea63 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,24 +2,7 @@
- {{- if (.Param "ShowBreadCrumbs")}} - - {{- end }} + {{- partial "breadcrumbs.html" . }}

{{ .Title }} {{- if .Draft }}
  [draft]
{{- end }} diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html new file mode 100644 index 00000000..55320892 --- /dev/null +++ b/layouts/partials/breadcrumbs.html @@ -0,0 +1,18 @@ +{{- if (.Param "ShowBreadCrumbs")}} + +{{- end }}