From 0e0251936b3c267a6e760562e704c34d0e8666ad Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Sat, 2 Dec 2023 23:16:25 +0300 Subject: [PATCH] Organize sections --- layouts/_default/baseof.html | 2 +- layouts/_default/section.html | 0 layouts/_default/single.html | 0 layouts/index.html | 14 +++++++------- layouts/partials/{body => sections}/contacts.html | 0 layouts/partials/{body => sections}/education.html | 0 .../partials/{body => sections}/experience.html | 0 layouts/partials/{body => sections}/projects.html | 0 layouts/partials/{body => sections}/skills.html | 0 layouts/partials/{head => }/style.html | 4 ++-- 10 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 layouts/_default/section.html create mode 100644 layouts/_default/single.html rename layouts/partials/{body => sections}/contacts.html (100%) rename layouts/partials/{body => sections}/education.html (100%) rename layouts/partials/{body => sections}/experience.html (100%) rename layouts/partials/{body => sections}/projects.html (100%) rename layouts/partials/{body => sections}/skills.html (100%) rename layouts/partials/{head => }/style.html (98%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index eb129ee..0dfb23f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,7 @@ {{ .Site.Title }} - {{ partial "head/style.html" . }} + {{ partial "style.html" . }} diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/index.html b/layouts/index.html index 720ea37..cc59101 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,9 @@ {{ define "main" }} - - {{ partial "body/contacts.html" . }} - {{ partial "body/education.html" . }} - {{ partial "body/experience.html" . }} - {{ partial "body/projects.html" . }} - {{ partial "body/skills.html" . }} - +
+ {{ partial "sections/contacts.html" . }} + {{ partial "sections/education.html" . }} + {{ partial "sections/experience.html" . }} + {{ partial "sections/projects.html" . }} + {{ partial "sections/skills.html" . }} +
{{ end }} \ No newline at end of file diff --git a/layouts/partials/body/contacts.html b/layouts/partials/sections/contacts.html similarity index 100% rename from layouts/partials/body/contacts.html rename to layouts/partials/sections/contacts.html diff --git a/layouts/partials/body/education.html b/layouts/partials/sections/education.html similarity index 100% rename from layouts/partials/body/education.html rename to layouts/partials/sections/education.html diff --git a/layouts/partials/body/experience.html b/layouts/partials/sections/experience.html similarity index 100% rename from layouts/partials/body/experience.html rename to layouts/partials/sections/experience.html diff --git a/layouts/partials/body/projects.html b/layouts/partials/sections/projects.html similarity index 100% rename from layouts/partials/body/projects.html rename to layouts/partials/sections/projects.html diff --git a/layouts/partials/body/skills.html b/layouts/partials/sections/skills.html similarity index 100% rename from layouts/partials/body/skills.html rename to layouts/partials/sections/skills.html diff --git a/layouts/partials/head/style.html b/layouts/partials/style.html similarity index 98% rename from layouts/partials/head/style.html rename to layouts/partials/style.html index b2774c4..bccfb8f 100644 --- a/layouts/partials/head/style.html +++ b/layouts/partials/style.html @@ -38,7 +38,7 @@ line-height: 100%; } - page { + .page { background: white; display: block; margin: 0 auto; @@ -96,7 +96,7 @@ @media print { body, - page { + .page { background: white; margin: 0; box-shadow: 0 0 0 white;