From 023580d28ff0fbf7d877130c17249130b3888872 Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Thu, 14 May 2020 22:34:48 -0700 Subject: Moved about to section folder in layout --- exampleSite/content/about/_index.md | 2 +- layouts/_default/about.html | 30 ------------------------------ layouts/index.html | 2 +- layouts/partials/footer.html | 2 +- layouts/partials/header.html | 6 +++--- layouts/section/about.html | 30 ++++++++++++++++++++++++++++++ static/css/main.css | 2 +- 7 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 layouts/_default/about.html create mode 100644 layouts/section/about.html diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md index 30545ae..9238f4e 100644 --- a/exampleSite/content/about/_index.md +++ b/exampleSite/content/about/_index.md @@ -39,7 +39,7 @@ publications: date: 2019, journal: "Journal dsalf adsf dsaf", url: "", - abstract: "shahfkasjdhf ahflkjdsa hfkjdsa hflkjdsahflkdsa hfljdsahf lkjashfdkjad hflkjdsa hflkjdsafh kjsadhf kjsadhf lkjdsahf kjdsahf lkjdsahf lkjdsahf lkjsadhfljdsaf halkjdshf ldsajfh askjdhflkjdsaf ldsakflkjdsahf kjsadhflkjdsaf lkjdsahf kjsadgfkdsabfanmdsbfdsanf.,dsanfmsnafdhfdlkjsaj;lkdsa jf;lkdsajf ;lksajfd;lkdsa jf;kdsajf ds", + abstract: "shahfkasjdhf ahflkjdsa hfkjdsa hflkjdsahflkdsa hfljdsahf lkjashfdkjad hflkjdsa hflkjdsafh kjsadhf kjsadhf lkjdsahf kjdsahf lkjdsahf lkjdsahf lkjsadhfljdsaf halkjdshf ldsajfh askjdhflkjdsaf ldsakflkjdsahf kjsadhflkjdsaf lkjdsahf kjsadgfkdsabfanmdsbfdsanf. dsanfmsnafdhfdlkjsaj;lkdsa jf;lkdsajf ;lksajfd;lkdsa jf;kdsajf ds", }, { title: "sdfksahfjsadh fkjsadhf lkjdsahf kjsadhf lkjads hfkjdsal fksdaf sadfkdsfjhksadgf dfas", diff --git a/layouts/_default/about.html b/layouts/_default/about.html deleted file mode 100644 index 3eae312..0000000 --- a/layouts/_default/about.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ define "main" }} -{{ partial "social" . }} - - -
-

- {{ .Params.prefix }} {{ .Params.name }}, {{ .Params.suffix }} -

-

{{ .Params.jobTitle }}

-

{{ .Params.office }}, {{ .Params.location }}

-
-{{ .Content }} -{{ partial "about/education" . }} -{{ partial "about/publications" . }} -{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 93dd666..46c4a65 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -26,6 +26,6 @@ " /> {{ partial "social.html" . }} - {{ .Site.Params.shortAbout }} + {{ .Site.Params.shortAbout }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 51540ca..626293c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,7 +4,7 @@ position: fixed; bottom: 60px; margin: auto; - width: 95%; + width: 95vw; max-width: 960px; " > diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 81f86ec..851af18 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,14 +1,14 @@
{{ partial "hamburgerCross.html" . }}{{ if not .IsHome}} diff --git a/layouts/section/about.html b/layouts/section/about.html new file mode 100644 index 0000000..3eae312 --- /dev/null +++ b/layouts/section/about.html @@ -0,0 +1,30 @@ +{{ define "main" }} +{{ partial "social" . }} + + +
+

+ {{ .Params.prefix }} {{ .Params.name }}, {{ .Params.suffix }} +

+

{{ .Params.jobTitle }}

+

{{ .Params.office }}, {{ .Params.location }}

+
+{{ .Content }} +{{ partial "about/education" . }} +{{ partial "about/publications" . }} +{{ end }} diff --git a/static/css/main.css b/static/css/main.css index 1fd91ac..6655d4b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -15,7 +15,7 @@ html { margin-right: 0; } body { - width: 95%; + width: 95vw; margin: auto; position: relative; display: flex; -- cgit v1.2.3