diff --git a/exampleSite/content/home/course.md b/exampleSite/content/home/course.md new file mode 100644 index 00000000..0e7c31d6 --- /dev/null +++ b/exampleSite/content/home/course.md @@ -0,0 +1,46 @@ ++++ +# Accomplishments widget. +widget = "accomplishments" # Do not modify this line! +active = true # Activate this widget? true/false + +title = "Accomplishments" +subtitle = "" + +# Order that this section will appear in. +weight = 15 + +# Date format +# Refer to https://sourcethemes.com/academic/docs/customization/#date-format +date_format = "Jan 2006" + +# Accomplishments. +# Add/remove as many `[[item]]` blocks below as you like. +# `title`, `organization` and `date_start` are the required parameters. +# Leave other parameters empty if not required. +# Begin/end multi-line descriptions with 3 quotes `"""`. + +[[item]] + title = "Neural Networks and Deep Learning" + organization = "Coursera" + certificate_url = "https://www.coursera.org" + date_start = "2018-10-01" + date_end = "" + description = "" + +[[item]] + title = "Blockchain Fundamentals" + organization = "edX" + certificate_url = "https://www.edx.org" + date_start = "2018-03-01" + date_end = "" + description = "" + +[[item]] + title = "Intro to Python" + organization = "DataCamp" + certificate_url = "https://www.datacamp.com" + date_start = "2017-07-01" + date_end = "2017-12-21" + description = "" + ++++ diff --git a/i18n/en.yaml b/i18n/en.yaml index 1ec92e32..8b78b7ab 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -74,6 +74,11 @@ - id: education translation: Education + +# Accomplishments widget + +- id: see_certificate + translation: See certificate # Experience widget diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index 619b8fc2..9c788789 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -1214,6 +1214,30 @@ article .article-metadata { z-index: 3; } +/************************************************* + * Accomplishments + **************************************************/ + +.course { + margin-bottom: -0.5rem; +} + +.course h6 { + font-size: 0.80rem; + font-weight: 700; + line-height: 1.5; + text-transform: uppercase; +} + +.course h6 a { + border-bottom: solid 1px transparent; +} + +.course h6 a:hover { + border-bottom: solid 1px; + text-decoration: none; +} + /************************************************* * Card component **************************************************/ diff --git a/layouts/partials/widgets/accomplishments.html b/layouts/partials/widgets/accomplishments.html new file mode 100644 index 00000000..ca714cd6 --- /dev/null +++ b/layouts/partials/widgets/accomplishments.html @@ -0,0 +1,47 @@ +{{ $ := .root }} +{{ $page := .page }} + + +
+
+

{{ with $page.Title }}{{ . | markdownify }}{{ end }}

+ {{ with $page.Params.subtitle }}

{{ . | markdownify }}

{{ end }} +
+
+ {{ with $page.Content }}

{{ . | markdownify }}

{{ end }} + + {{ if $page.Params.item }} + {{ range $idx, $key := sort $page.Params.item ".date_start" "desc" }} +
+ +
+
+
+
+
+ {{ (time .date_start).Format ($page.Params.date_format | default "Jan 2006") }} + {{ if .date_end}} + – {{ (time .date_end).Format ($page.Params.date_format | default "Jan 2006") }} + {{end}} +
+
+ {{ if .certificate_url }} +
+ {{ i18n "see_certificate" | default "See certificate" }} +
+ {{ end }} +
+
+

{{.title | markdownify | emojify}}

+

+ {{- with .organization_url}}{{end}}{{.organization | markdownify | emojify}}{{with .organization_url}}{{end -}} +

+ {{with .description}}
{{. | markdownify | emojify}}
{{end}} +
+
+
+
+ {{end}} + {{end}} +
+