From 707da63efec6bda9d4f88af9a6f00f24d60582da Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Fri, 2 Oct 2020 19:52:46 -0400 Subject: [PATCH] markdownify portfolio & service sections --- exampleSite/data/portfolioSection.yml | 5 +++++ exampleSite/data/serviceSection.yml | 2 +- layouts/partials/portfolioSection.html | 10 +++++++--- layouts/partials/serviceSection.html | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 exampleSite/data/portfolioSection.yml diff --git a/exampleSite/data/portfolioSection.yml b/exampleSite/data/portfolioSection.yml new file mode 100644 index 0000000..31a1c9f --- /dev/null +++ b/exampleSite/data/portfolioSection.yml @@ -0,0 +1,5 @@ +--- +enable: true +topTitle: My Portfolio +title: > + ## Check Some of My Recent Work diff --git a/exampleSite/data/serviceSection.yml b/exampleSite/data/serviceSection.yml index 9c97fcd..c1c235b 100644 --- a/exampleSite/data/serviceSection.yml +++ b/exampleSite/data/serviceSection.yml @@ -1,7 +1,7 @@ --- enable: true topTitle: Working Area -content: > +title: > ## Creative Services Enjoy team diversity and increase their networks among others people in diff --git a/layouts/partials/portfolioSection.html b/layouts/partials/portfolioSection.html index f5d9191..607ad30 100644 --- a/layouts/partials/portfolioSection.html +++ b/layouts/partials/portfolioSection.html @@ -1,10 +1,12 @@ +{{ with .Site.Data.portfolioSection }} +{{ if .enable }}
- My Portfolio -

Check Some of Our Recent Work.

+ {{ .topTitle }} + {{ .title | markdownify }}
@@ -27,4 +29,6 @@
-
\ No newline at end of file + +{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/serviceSection.html b/layouts/partials/serviceSection.html index bad77cb..0dd8671 100644 --- a/layouts/partials/serviceSection.html +++ b/layouts/partials/serviceSection.html @@ -30,8 +30,8 @@
- {{ .topTitle }} - {{ .content | markdownify }} + {{ .topTitle }} + {{ .title | markdownify }}