From d764b7e1d88b01ce213ed1c9a57310a871d3facc Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Tue, 29 Sep 2020 14:55:40 -0400 Subject: [PATCH] enable markdown --- exampleSite/data/aboutSection.yml | 8 +- exampleSite/data/blogSection.yml | 6 +- exampleSite/data/hero.yml | 8 +- exampleSite/data/resumeSection.yml | 20 +++- exampleSite/data/serviceSection.yml | 66 ++++++----- exampleSite/data/skillSection.yml | 7 +- layouts/partials/aboutSection.html | 92 +++++++-------- layouts/partials/blogSection.html | 7 +- layouts/partials/hero.html | 137 +++++++++-------------- layouts/partials/resumeSection.html | 79 ++++++------- layouts/partials/serviceSection.html | 111 +++++++++--------- layouts/partials/skillSection.html | 3 +- layouts/partials/testimonialSection.html | 78 ++++++------- 13 files changed, 315 insertions(+), 307 deletions(-) diff --git a/exampleSite/data/aboutSection.yml b/exampleSite/data/aboutSection.yml index db80044..8545291 100644 --- a/exampleSite/data/aboutSection.yml +++ b/exampleSite/data/aboutSection.yml @@ -1,10 +1,14 @@ --- enable: true title: About me -subtitle: Enjoy team diversity and increase their networks among others people in +subtitle: + Enjoy team diversity and increase their networks among others people in various fields by provided. title2: I design and build ultimate things. -content: I love to work in User Experience & User Interface designing. Because I love +content: > + ### I design and build ultimate things. + + I love to work in User Experience & User Interface designing. Because I love to solve the design problem and find easy and better solutions to solve it. I always try my best to make good user interface with the best user experience. I have been working as a Visual designer from. diff --git a/exampleSite/data/blogSection.yml b/exampleSite/data/blogSection.yml index ed85993..5f4be21 100644 --- a/exampleSite/data/blogSection.yml +++ b/exampleSite/data/blogSection.yml @@ -2,5 +2,9 @@ enable: true topTitle: Blog title: Recent Article -subtitle: Enjoy team diversity and increase their networks among others people in various fields by provided. +content: > + # Recent Article + + Enjoy team diversity and increase their networks among others people in various fields by provided. + buttonTarget: blog diff --git a/exampleSite/data/hero.yml b/exampleSite/data/hero.yml index ce34c5a..75af4e9 100644 --- a/exampleSite/data/hero.yml +++ b/exampleSite/data/hero.yml @@ -1,8 +1,10 @@ --- enable: true -title: Hello, I am Natasha -subtitle: I am here for your personal business -description: Enjoy team diversity and increase their networks among others people +topTitle: Hello, I am Natasha +content: > + # I am here for your personal business + + Enjoy team diversity and increase their networks among others people in various fields by buttonName: Contact me buttonURL: contact diff --git a/exampleSite/data/resumeSection.yml b/exampleSite/data/resumeSection.yml index cb5b517..a486905 100644 --- a/exampleSite/data/resumeSection.yml +++ b/exampleSite/data/resumeSection.yml @@ -1,10 +1,18 @@ --- enable: true topTitle: My Resume -title: My Expertises -subtitle: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore -subsubtitle: Magna aliquyam erat, sed diam voluptua. At vero eos accusam justo. +# Using " " is a way to force extra line breaks. +# See: https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522 +content: > + # My Expertises + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore + + +   + + + Magna aliquyam erat, sed diam voluptua. At vero eos accusam justo. tab1Name: Education tab2Name: Experiences tab1Target: education @@ -12,7 +20,11 @@ tab2Target: experience education: - title: Master in Arts - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + content: > + #### Master in Arts + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + time: 2008-2010 - title: Master in Arts content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam diff --git a/exampleSite/data/serviceSection.yml b/exampleSite/data/serviceSection.yml index 621cfbe..0d63cb9 100644 --- a/exampleSite/data/serviceSection.yml +++ b/exampleSite/data/serviceSection.yml @@ -1,31 +1,45 @@ --- enable: true topTitle: Working Area -title: Creative Services -subtitle: Enjoy team diversity and increase their networks among others people in +content: > + # Creative Services + + Enjoy team diversity and increase their networks among others people in various fields by provided. service: -- title: UI/UX Design - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/ui-ux.svg -- title: Web Development - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/web.svg -- title: Creative Design - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/creative.svg -- title: Branding - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/branding.svg -- title: UI/UX Design - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/ui-ux.svg -- title: Web Development - content: Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat. - image: images/service/web.svg + - content: > + #### UI/UX Design + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/ui-ux.svg + - content: > + #### Web Development + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/web.svg + - content: > + #### Creative Design + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/creative.svg + - content: > + #### Branding + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/branding.svg + - content: > + #### UI/UX Design + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/ui-ux.svg + - content: > + #### Web Development + + Lorem ipsum dolor sit amet conset sadipscing elitr, sed diam nonumy eirmod + tempor invidunt ut labore et dolore magna aliquyam erat. + image: images/service/web.svg diff --git a/exampleSite/data/skillSection.yml b/exampleSite/data/skillSection.yml index 8c1a50d..c835562 100644 --- a/exampleSite/data/skillSection.yml +++ b/exampleSite/data/skillSection.yml @@ -1,8 +1,11 @@ --- enable: true topTitle: My Skills -title: Why hire me for your next project? -subtitle: My goal is to build a strong supportive professional network among all freelancers and startups in order to improve their performance. +content: > + # Why hire me for your next project? + + My goal is to build a strong supportive professional network among all freelancers and startups in order to improve their performance. + image: images/skill/skill_image.jpg skill: diff --git a/layouts/partials/aboutSection.html b/layouts/partials/aboutSection.html index 8af1b81..ab443d9 100644 --- a/layouts/partials/aboutSection.html +++ b/layouts/partials/aboutSection.html @@ -1,53 +1,55 @@ {{ with .Site.Data.aboutSection }} - {{ if .enable }} -
-
-
-
-
- About -

{{ .title }}

-

{{ .subtitle }}

+{{ if .enable }} +
+
+
+
+
+ About +

{{ .title }}

+

{{ .subtitle }}

+
+
+
+
+
+
+
+
+ figure-svg +
+
+ about-img
-
-
-
-
-
-
- figure-svg -
-
- about-img -
-
-
-
- - - - - - - - - - - -
-

{{ .title2 }}

-

{{ .content }}

- -
+
+
+ + + + + + + + + + +
+ {{ .content | markdownify}} +
-
- {{ end }} +
+
+
{{ end }} - \ No newline at end of file +{{ end }} \ No newline at end of file diff --git a/layouts/partials/blogSection.html b/layouts/partials/blogSection.html index 02275b9..aee3d4a 100644 --- a/layouts/partials/blogSection.html +++ b/layouts/partials/blogSection.html @@ -1,5 +1,5 @@ {{ with .Site.Data.blogSection }} - {{ if .enable }} +{{ if .enable }}
blog shape @@ -9,8 +9,7 @@
{{ .topTitle }} -

{{ .title }}

-

{{ .subtitle }}

+ {{ .content | markdownify }}
@@ -34,7 +33,7 @@
{{ end }} - +
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index f5450eb..9639bec 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -1,96 +1,65 @@ {{ with .Site.Data.hero }} - {{ if .enable }} -
-
- - - -
- +
+
{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/resumeSection.html b/layouts/partials/resumeSection.html index c03f4ea..73f482f 100644 --- a/layouts/partials/resumeSection.html +++ b/layouts/partials/resumeSection.html @@ -1,51 +1,46 @@ {{ with .Site.Data.resumeSection }} - {{ if .enable }} -
-
-
-
-
-
- {{ .topTitle }} -

{{ .title }}

-

{{ .subtitle }}



-

{{ .subsubtitle }}

- +{{ if .enable }} +
+
+
+
+
+
+ {{ .topTitle }} + {{ .content | markdownify }} + +
+
+
+
+
+ {{ $Section := .education }} + {{ range $Section }} +
+ {{ .time }} + {{ .content | markdownify }}
-
-
-
-
- {{ $Section := .education }} - {{ range $Section }} -
- {{ .time }} -

{{ .title }}

-

{{ .content }}

-
- {{ end }} - -
+ {{ end }} -
- {{ $Section := .experience }} - {{ range $Section }} -
- {{ .time }} -

{{ .title }}

-

{{ .content }}

-
- {{ end }} -
+
+
+ {{ $Section := .experience }} + {{ range $Section }} +
+ {{ .time }} + {{ .content | markdownify }}
+ {{ end }}
+
-
- {{ end }} +
+
+
{{ end }} - \ No newline at end of file +{{ end }} \ No newline at end of file diff --git a/layouts/partials/serviceSection.html b/layouts/partials/serviceSection.html index 0944859..bad77cb 100644 --- a/layouts/partials/serviceSection.html +++ b/layouts/partials/serviceSection.html @@ -1,63 +1,66 @@ {{ with .Site.Data.serviceSection }} - {{ if .enable }} -
-
- - - -
-
- - - - - - - - - - - -
+{{ if .enable }} +
+
+ + + +
+
+ + + + + + + + + + + +
-
- background-pattern -
+
+ background-pattern +
-
-
-
-
- {{ .topTitle }} -

{{ .title }}

-

{{ .subtitle }}

-
-
+
+
+
+
+ {{ .topTitle }} + {{ .content | markdownify }}
-
-
-
- {{ $Section := .service }} - {{ range $Section }} -
-
-
- - - -
-
- ui-ux -
-
-

{{ .title }}

-

{{ .content }}

+
+
+
+
+
+ {{ $Section := .service }} + {{ range $Section }} +
+
+
+ + + +
+
+ ui-ux
- {{ end }}
+ {{ .content | markdownify }}
+ {{ end }}
-
- {{ end }} -{{ end }} + + +
+{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/skillSection.html b/layouts/partials/skillSection.html index f68e873..7091b29 100644 --- a/layouts/partials/skillSection.html +++ b/layouts/partials/skillSection.html @@ -39,8 +39,7 @@
{{ .topTitle }} -

{{ .title }}

-

{{ .subtitle }}

+ {{ .content | markdownify }}
{{ $section := .skill }} {{ range $section }} diff --git a/layouts/partials/testimonialSection.html b/layouts/partials/testimonialSection.html index 3c2d929..1d897e1 100644 --- a/layouts/partials/testimonialSection.html +++ b/layouts/partials/testimonialSection.html @@ -1,45 +1,47 @@ {{ with .Site.Data.testimonialSection }} - {{ if .enable }} -
-
- - - -
-
-
-
-
- {{ .topTitle }} -

{{ .title }}

-
-
+{{ if .enable }} +
+
+ + + +
+
+
+
+
+ {{ .topTitle }} +

{{ .title }}

-
-
-
- {{ $section := .testimonial }} - {{ range $section }} -
-
    - {{ $rating := .star | int }} - {{ $rating := sub $rating 1 }} - {{ range $i, $sequence := (seq 5) }} - {{ if le $i $rating }} -
  • - {{ else }} -
  • - {{ end }} - {{ end }} -
-

{{ .comment }}

-

{{ .name }} | {{ .time }}

-
+
+
+
+
+
+ {{ $section := .testimonial }} + {{ range $section }} +
+ {{ if .star }} +
    + {{ $rating := .star | int }} + {{ $rating := sub $rating 1 }} + {{ range $i, $sequence := (seq 5) }} + {{ if le $i $rating }} +
  • + {{ else }} +
  • + {{ end }} {{ end }} -
+ + {{ end }} +

{{ .comment | markdownify }}

+

{{ .name }} | {{ .time }}

+ {{ end }}
-
- {{ end }} +
+
+
+{{ end }} {{ end }} \ No newline at end of file