diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 02d8b299f51515ad6d0bb718eee6182dcf14d7cc..709763526bf645cf4edb80a0ce1dea3ea3d8bf0d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,18 +1,3 @@ {{ partial "top_single.html" . }} -<div class='row'> - <div class='col-md-8'> - <article class='post'> - {{ partial "post_header_single.html" . }} - <section class='post-content'> - {{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}} - {{ .Content }} - - {{ partial "article_footer.html" . }} - {{ partial "article_share.html" . }} - {{ partial "comments.html" . }} - </section> - </article> - </div> - {{ partial "side_menu_single.html" . }} -</div> +{{ partial "body_single.html" . }} {{ partial "bottom_single.html" . }} diff --git a/layouts/entry/single.html b/layouts/entry/single.html index e4f6a6b4948a78c5d547efb1f7d0f010809f91fb..709763526bf645cf4edb80a0ce1dea3ea3d8bf0d 100644 --- a/layouts/entry/single.html +++ b/layouts/entry/single.html @@ -1,18 +1,3 @@ {{ partial "top_single.html" . }} -<div class='row'> - <div class='col-md-8'> - <article class='post'> - {{ partial "post_header_single.html" . }} - <section class='post-content'> - {{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}} - {{ .Content }} - {{ partial "backlinks.html" . }} - {{ partial "article_footer.html" . }} - {{ partial "article_share.html" . }} - {{ partial "comments.html" . }} - </section> - </article> - </div> - {{ partial "side_menu_single.html" . }} -</div> +{{ partial "body_single.html" . }} {{ partial "bottom_single.html" . }} diff --git a/layouts/news/single.html b/layouts/news/single.html index ddd8f71cac8ee69c03ddfdb9aa991df0459477c4..709763526bf645cf4edb80a0ce1dea3ea3d8bf0d 100644 --- a/layouts/news/single.html +++ b/layouts/news/single.html @@ -1,18 +1,3 @@ {{ partial "top_single.html" . }} -<div class='row'> - <div class='col-md-8'> - <article class='post'> - {{ partial "post_header_single.html" . }} - <section class='post-content'> - {{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}} - {{ .Content }} - - {{ partial "article_footer.html" . }} - {{ partial "article_share.html" . }} - {{ partial "comments.html" . }} - </section> - </article> - </div> - {{ partial "side_menu_single.html" . }} -</div> +{{ partial "body_single.html" . }} {{ partial "bottom_single.html" . }} diff --git a/layouts/partials/body_single.html b/layouts/partials/body_single.html new file mode 100644 index 0000000000000000000000000000000000000000..9c8d39d969abd1f667dbd07dda589643f30943f4 --- /dev/null +++ b/layouts/partials/body_single.html @@ -0,0 +1,16 @@ +<div class='row'> + <div class='col-md-8'> + <article class='post'> + {{ partial "post_header_single.html" . }} + <section class='post-content'> + {{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}} + {{ .Content }} + {{ if eq .Section "resource" }}{{ partial "backlinks.html" . }}{{ end }} + {{ partial "article_footer.html" . }} + {{ partial "article_share.html" . }} + {{ partial "comments.html" . }} + </section> + </article> + </div> + {{ partial "side_menu_single.html" . }} +</div> diff --git a/layouts/projects/single.html b/layouts/projects/single.html index ddd8f71cac8ee69c03ddfdb9aa991df0459477c4..709763526bf645cf4edb80a0ce1dea3ea3d8bf0d 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -1,18 +1,3 @@ {{ partial "top_single.html" . }} -<div class='row'> - <div class='col-md-8'> - <article class='post'> - {{ partial "post_header_single.html" . }} - <section class='post-content'> - {{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}} - {{ .Content }} - - {{ partial "article_footer.html" . }} - {{ partial "article_share.html" . }} - {{ partial "comments.html" . }} - </section> - </article> - </div> - {{ partial "side_menu_single.html" . }} -</div> +{{ partial "body_single.html" . }} {{ partial "bottom_single.html" . }}