From d96cc83b5c2b10455d415aa4cd98de9aae0603c2 Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Thu, 14 May 2020 15:41:30 -0700 Subject: Added about page --- exampleSite/config.toml | 6 +- exampleSite/content/about/_index.md | 65 +++++++++++++++++++++ layouts/_default/about.html | 18 ++++++ layouts/index.html | 62 +++++--------------- layouts/partials/about/education.html | 16 ++++++ layouts/partials/about/publications.html | 27 +++++++++ layouts/partials/footer.html | 80 ++++++++++++++++++++++---- layouts/partials/header.html | 7 +++ layouts/partials/icons/book.html | 15 +++++ layouts/partials/icons/folder.html | 15 +++++ layouts/partials/icons/graduationCap.html | 15 +++++ layouts/partials/icons/portrait.html | 15 +++++ layouts/partials/intro.html | 55 +++++------------- layouts/partials/menu.html | 29 ++++++++-- layouts/partials/social.html | 1 + static/css/main.css | 96 ++++++++++++++----------------- 16 files changed, 360 insertions(+), 162 deletions(-) create mode 100644 exampleSite/content/about/_index.md create mode 100644 layouts/_default/about.html create mode 100644 layouts/partials/about/education.html create mode 100644 layouts/partials/about/publications.html create mode 100644 layouts/partials/icons/book.html create mode 100644 layouts/partials/icons/folder.html create mode 100644 layouts/partials/icons/graduationCap.html create mode 100644 layouts/partials/icons/portrait.html diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d9dd309..818a7e6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,11 +11,11 @@ theme = "ghazal" author = "Darshan Baral" description = "A hugo theme for personal blogs" footer = "2020 Darshan Baral." - about = "This is a short intro about me to describe some of the cool things I do." - image = "https://i.stack.imgur.com/oI2SB.jpg?s=328&g=1" + shortAbout = "This is a short intro about me to describe some of the cool things I do." + mainimage = "https://i.stack.imgur.com/oI2SB.jpg?s=328&g=1" + profileImage = "https://i.stack.imgur.com/oI2SB.jpg?s=328&g=1" [params.theme] - profileImage = "/images/profile.jpg" fontSize = "20px" dateFormat = "2006/01/02" paginateNum = 5 diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md new file mode 100644 index 0000000..30545ae --- /dev/null +++ b/exampleSite/content/about/_index.md @@ -0,0 +1,65 @@ +--- +title: "About Me" +icon: "portrait" +weight: 10 +name: "ASasd LADSK" +prefix: "" +suffix: "PhD" +profileImage: "https://i.stack.imgur.com/oI2SB.jpg?s=328&g=1" +## Education +education: + [ + { + title: "PhD", + institution: "University of Awesome", + major: "Awesome Engineering", + date: 2020, + project: "The awesome thing that I did", + projectTitle: "Dissertation", + projectURL: "#", + }, + { + title: "MS", + institution: "University of Awesome", + major: "Awesome Engineering and Cool minor", + date: 2018, + project: "The awesome thing that I did", + projectTitle: "Thesis", + projectURL: "", + }, + ] +## Publications +publications: + [ + Journals: + [ + { + title: "sdfksahfjsadh fkjsadhf lkjdsahf kjsadhf lkjads hfkjdsal fksdaf sadfkdsfjhksadgf dfas", + author: "asda B, asd asV, asd sad O", + 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", + }, + { + title: "sdfksahfjsadh fkjsadhf lkjdsahf kjsadhf lkjads hfkjdsal fksdaf sadfkdsfjhksadgf dfas", + author: "asda B, asd asV, asd sad O", + date: 2020, + journal: "Journal asjhdkas hdkjasdh", + url: "#", + }, + ], + Proceedings: + [ + { + title: "sdfksahfjsadh fkjsadhf lkjdsahf kjsadhf lkjads hfkjdsal fksdaf sadfkdsfjhksadgf dfas", + author: "asda B, asd asV, asd sad O", + date: 2019, + journal: "Journal asjhdkas hdkjasdh", + url: "#", + }, + ], + ] +--- + +I am dsjf dsjf;asdjf j. ldsfjsak jdsfj;asd fdsf ;lasdfl jasd. aldskfj salkdjfalksd jflsajfas dfa.sdf aldsfj asldfj ldsjfldsf *jlkdsajflsajf*. afdsj lsadjf **asdjf sad fjldskfjsaldf**. ds flsadkjf lkasdjflkdsajf akdsjf. ldsajflas djflkdsajfkjlkdsajflkdsa jfla. lasdkjf ladsjflkajfa;jf;adskjfo9awefjldsa jljf lasjdflkjdsf lj. diff --git a/layouts/_default/about.html b/layouts/_default/about.html new file mode 100644 index 0000000..493f455 --- /dev/null +++ b/layouts/_default/about.html @@ -0,0 +1,18 @@ +{{ define "main" }} + +{{ partial "social" . }} +

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

+{{ .Content }} +{{ partial "about/education" . }} +{{ partial "about/publications" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html index b9a24e3..9e68506 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,6 @@ {{ define "main" }}
{{ partial "intro.html" . }} -
-
-

- {{ .Site.Params.about }} -

- {{ partial "social.html" . }} -
-
- -
-
+ /> + {{ partial "social.html" . }}
{{ end }} diff --git a/layouts/partials/about/education.html b/layouts/partials/about/education.html new file mode 100644 index 0000000..f642061 --- /dev/null +++ b/layouts/partials/about/education.html @@ -0,0 +1,16 @@ +{{ if .Params.education }} +

+ {{ partial "icons/graduationCap" . }}Education +

+ +{{ range sort .Params.education "date" "desc" }} +

{{ .date }}. {{ .title }}. {{ .major}}. {{ .institution }}

+{{ if .project }} +

+ {{ .projectTitle}} - {{if .projectURL }} + {{ .project }} + {{ else }} + {{ .project }} + {{ end }} +

+{{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/about/publications.html b/layouts/partials/about/publications.html new file mode 100644 index 0000000..af41121 --- /dev/null +++ b/layouts/partials/about/publications.html @@ -0,0 +1,27 @@ +{{ if .Params.publications }} +

+ {{ partial "icons/book" . }}Publications +

+ +{{ range .Params.publications }} {{ range $key, $val := . }} +

{{ $key }}

+
    + {{ range sort $val "date" "desc" }} +
  1. +

    + {{ .date }}. {{ .author | markdownify }}. {{ if .url }}{{ .title }}{{ else }} {{- .title -}} {{end -}}. {{ .journal }}. +

    + {{ if .abstract }} +
    + Abstract

    {{ .abstract }}

    +
    + {{ end }} +
  2. + {{ end }} +
+{{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 544ca02..2e572d8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,24 +1,84 @@ diff --git a/layouts/partials/header.html b/layouts/partials/header.html index af3d452..81f86ec 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,12 @@