From bd132b183c649d8f89af641cbd6bf1c3c9f43ad7 Mon Sep 17 00:00:00 2001 From: mertbakir <2335694-mertbakir@users.noreply.gitlab.com> Date: Fri, 12 Feb 2021 22:01:55 +0300 Subject: [PATCH] Certifications section added. Section titles are customizable. --- README.md | 4 ++-- assets/sass/_base.scss | 4 +++- assets/sass/_item_styling.scss | 2 +- assets/sass/main.scss | 2 +- exampleSite/config.toml | 13 +++++++++++++ exampleSite/data/education.yaml | 2 +- exampleSite/data/features.yaml | 10 +++++++++- layouts/home.html | 4 ++++ layouts/partials/about-me.html | 2 +- layouts/partials/awards.html | 2 +- layouts/partials/certificates.html | 14 ++++++++++++++ layouts/partials/education.html | 2 +- layouts/partials/experience.html | 2 +- layouts/partials/interests.html | 2 +- layouts/partials/languages.html | 2 +- layouts/partials/skills.html | 2 +- layouts/partials/skills_grouped.html | 2 +- ...n.scss_48b060fe05b0a273d182ef83c0605941.content | 2 +- ...main.scss_48b060fe05b0a273d182ef83c0605941.json | 2 +- 19 files changed, 58 insertions(+), 17 deletions(-) create mode 100644 layouts/partials/certificates.html diff --git a/README.md b/README.md index 2c8c241..00b4e56 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 4. Remove side grid from front config file. > Add new scss and an if statement in head. Should be ez, but I'm not sure if ```/resources``` dependency of theme would be a problem. 5. ~~Make footer configurable from config file.~~ 6. Add multilanguage option. -7. I'll write a blog post soon. +7. ~~I'll write a blog post soon.~~ [Here is the blog post](https://mertbakir.gitlab.io/projects/resume-a4/) 8. Add linkedin in resume header (?) > I'm open to suggestions or contributions. @@ -23,7 +23,7 @@ ## Download 1. Create a hugo project. -2. Go to themes folder. +2. Go to themes folder. 3. Clone this theme. ``` diff --git a/assets/sass/_base.scss b/assets/sass/_base.scss index a4d76b1..ff83785 100644 --- a/assets/sass/_base.scss +++ b/assets/sass/_base.scss @@ -7,6 +7,7 @@ body { background: #FFF; + color: $text-color; font-family: $font-1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -14,6 +15,7 @@ a { text-decoration: none; + color: $text-color; } li { @@ -58,7 +60,7 @@ font-family: $font-1; h1 { font-size: 64px; - color: $heading-color; + color: $text-color; letter-spacing: 0.15rem; } } diff --git a/assets/sass/_item_styling.scss b/assets/sass/_item_styling.scss index ef32ac2..02ae8e8 100644 --- a/assets/sass/_item_styling.scss +++ b/assets/sass/_item_styling.scss @@ -19,7 +19,7 @@ } .section-title { - border-left: solid 6px $heading-color; + border-left: solid 6px $text-color; padding-left: 8px; font-family: $font-1; } diff --git a/assets/sass/main.scss b/assets/sass/main.scss index 2af490e..0a5d6df 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -1,6 +1,6 @@ $font-1: 'PT Sans', 'IBM Plex Sans', 'Arial', sans-serif; $border-color: #bfbfbf; -$heading-color: #202020; +$text-color: #202020; $toprak: #b56b00; $turk: #E30A17; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5ddf441..dccd738 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,8 +21,21 @@ tagline = true aboutMe = false projects = false papers = false +certificates = true avatar = true +[params.title_as] +experience = "Experience" +education = "Education" +languages = "Languages" +awards = "Awards" +skills = "Skills" +certificates = "Certifications" +interests = "Interests" +about_me = "About Me" +papers = "Academic" +projects = "Projects" + [params.display.footer] footer = true links = true diff --git a/exampleSite/data/education.yaml b/exampleSite/data/education.yaml index 8626c77..abbc9cf 100644 --- a/exampleSite/data/education.yaml +++ b/exampleSite/data/education.yaml @@ -1,7 +1,7 @@ - name: "Msc. Industrial Engineering" university: "Yildiz Technical University" date: "2019- 2021" - gpa: "3.63 / 4.00" + gpa: "3.71 / 4.00" - name: "Bsc. Industrial Engineering" university: "Gazi University" diff --git a/exampleSite/data/features.yaml b/exampleSite/data/features.yaml index bfd5de6..aef9650 100644 --- a/exampleSite/data/features.yaml +++ b/exampleSite/data/features.yaml @@ -29,12 +29,20 @@ languages: level: "Professional" certificates: ["YDS: 86.25 - 2018", "TOEFL: 109 - 2021"] - awards: - name: "Tübitak - Graduation Project" date: "2017" details: "A Decision Support System for 3D Cutting Problem" +certificates: + - name: "Supervised Learning: Regression" + date: "2020" + issued_by: "Coursera" + link: "https://www.coursera.org/account/accomplishments/certificate/7T7YUWB8YNSH" + + - name: "Supervised Learning: Classification" + date: "2020" + issued_by: "Coursera" about: - name: "MERT BAKIR" diff --git a/layouts/home.html b/layouts/home.html index baa8102..28adde8 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -47,6 +47,10 @@ {{ partial "languages" . }} {{ end }} + {{ if .Site.Params.display.certificates }} + {{ partial "certificates" . }} + {{ end }} + {{ if .Site.Params.display.awards }} {{ partial "awards" . }} {{ end }} diff --git a/layouts/partials/about-me.html b/layouts/partials/about-me.html index fd860d8..1b32d6a 100644 --- a/layouts/partials/about-me.html +++ b/layouts/partials/about-me.html @@ -1,5 +1,5 @@
-

About Me

+

{{ .Site.Params.title_as.about_me }}

{{ range .Site.Data.features.about }} {{ .details }} diff --git a/layouts/partials/awards.html b/layouts/partials/awards.html index 75c2732..8ba5d85 100644 --- a/layouts/partials/awards.html +++ b/layouts/partials/awards.html @@ -1,5 +1,5 @@

-

Awards

+

{{ .Site.Params.title_as.awards }}

{{ range .Site.Data.features.awards }}

{{ .name }}

diff --git a/layouts/partials/certificates.html b/layouts/partials/certificates.html new file mode 100644 index 0000000..646ea68 --- /dev/null +++ b/layouts/partials/certificates.html @@ -0,0 +1,14 @@ +
+

{{ .Site.Params.title_as.certificates }}

+ {{ range .Site.Data.features.certificates }} +
+

{{ .name }}

+ {{ if .link }} + {{ if $.Site.Params.useFontAwesome }} + {{else}}🔗{{ end }} + + {{ end }} + {{ .issued_by | markdownify }} - {{ .date }} +
+ {{ end }} +
\ No newline at end of file diff --git a/layouts/partials/education.html b/layouts/partials/education.html index 681e666..03f1316 100644 --- a/layouts/partials/education.html +++ b/layouts/partials/education.html @@ -1,5 +1,5 @@
-

Education

+

{{ .Site.Params.title_as.education }}

{{ range .Site.Data.education }}

{{ .name }}

diff --git a/layouts/partials/experience.html b/layouts/partials/experience.html index b1068e8..8db7e59 100644 --- a/layouts/partials/experience.html +++ b/layouts/partials/experience.html @@ -1,5 +1,5 @@
-

Experience

+

{{ .Site.Params.title_as.experience }}

{{ $companies := slice }} {{ range .Site.Data.experience }} {{ $companies = $companies | append .company }} diff --git a/layouts/partials/interests.html b/layouts/partials/interests.html index 4f4b44c..4720d13 100644 --- a/layouts/partials/interests.html +++ b/layouts/partials/interests.html @@ -1,5 +1,5 @@
-

Interests

+

{{ .Site.Params.title_as.interests }}

{{ range .Site.Data.features.interests }}
  • {{.}}
  • diff --git a/layouts/partials/languages.html b/layouts/partials/languages.html index 3cc4951..12a06a3 100644 --- a/layouts/partials/languages.html +++ b/layouts/partials/languages.html @@ -1,5 +1,5 @@
    -

    Languages

    +

    {{ .Site.Params.title_as.languages }}

    {{ range .Site.Data.features.languages }}

    {{ .name }} diff --git a/layouts/partials/skills.html b/layouts/partials/skills.html index 0321b99..09a2567 100644 --- a/layouts/partials/skills.html +++ b/layouts/partials/skills.html @@ -1,5 +1,5 @@
    -

    Skills

    +

    {{ .Site.Params.title_as.skills }}

    {{ range .Site.Data.features.skills }}
  • {{.}}
  • diff --git a/layouts/partials/skills_grouped.html b/layouts/partials/skills_grouped.html index e33c719..8309cf5 100644 --- a/layouts/partials/skills_grouped.html +++ b/layouts/partials/skills_grouped.html @@ -1,5 +1,5 @@
    -

    Skills

    +

    {{ .Site.Params.title_as.skills }}

    {{ range .Site.Data.features.skillsGrouped }}

    {{ .groupName }}

    diff --git a/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.content b/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.content index cc08323..ee8f96d 100644 --- a/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.content +++ b/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.content @@ -1 +1 @@ -*{margin:0;padding:0}body{background:#fff;font-family:pt sans,ibm plex sans,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none}li{list-style-type:square;padding-left:0;list-style-position:inside;margin:8px 0}.resumeCanvas{margin:2.5rem auto;padding:0 .45in .5in;width:8.25in;height:11.75in;background-color:#fff;-moz-box-shadow:2px 2px 10px #aaa;-webkit-box-shadow:2px 2px 10px #aaa;box-shadow:2px 2px 10px #aaa;box-sizing:border-box}.gridParent{width:100%;height:100%;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);grid-column-gap:0;grid-row-gap:0}.flex-row{display:flex;flex-direction:row;justify-content:space-between}.titleHeader{display:flex;flex-direction:column;justify-content:center;font-family:pt sans,ibm plex sans,arial,sans-serif}.titleHeader h1{font-size:64px;color:#202020;letter-spacing:.15rem}header{grid-area:1/1/2/8;border-bottom:#bfbfbf 1px solid}.leftSide{grid-area:2/1/7/6;display:flex;flex-direction:column;justify-content:flex-start;border-right:#bfbfbf 1px solid;padding-right:16px}.rightSide{grid-area:2/6/7/8;display:flex;flex-direction:column;justify-content:flex-start;margin-left:8px}.rightSide li{list-style-type:none;padding:0}.leftSide,.rightSide{margin-top:12px;font-size:14px}.leftSide h1,.leftSide h2,.leftSide h3,.rightSide h1,.rightSide h2,.rightSide h3{line-height:1.2}.leftSide h1,.rightSide h1{margin-bottom:16px;font-size:24px}.leftSide h2,.rightSide h2{font-size:20px;margin-bottom:4px}.leftSide h3,.rightSide h3{font-size:16px}.leftSide p,.rightSide p{font-size:14px;margin:8px 0;line-height:1.5;text-align:justify}*::-webkit-scrollbar{width:12px;height:8px}*::-webkit-scrollbar-thumb{background-color:#b56b00;outline:1px solid #b56b00}*::-webkit-scrollbar-track{background-color:#ffe1b5}::selection{background:#b56b00;color:#fff}::-moz-selection{background:#b56b00;color:#fff}footer{width:8.25in;margin:36px auto;text-align:center;display:flex;flex-flow:column}.link-text{font-weight:700}#link::after{content:"\00B7"}#link:last-child::after{content:""}footer a{color:#e30a17;padding:0 4px}footer a:hover{color:#fff;background-color:#e30a17;transition:all .35s ease-out;transition-property:all .35s ease-out;-webkit-transition-property:all .35s ease-out;-moz-transition-property:all .35s ease-out;-o-transition-property:all .35s ease-out}.section{margin-bottom:20px}.item{margin-bottom:14px}.section .item:last-child{margin-bottom:0}.group .item{margin-top:0}.section-title{border-left:solid 6px #202020;padding-left:8px;font-family:pt sans,ibm plex sans,arial,sans-serif}.job-title{font-size:14px}.item-title{margin-bottom:2px}.item-title-span{font-weight:400;font-size:14px}.item-info{font-weight:400;font-size:14px}.avatar{display:block;margin:1rem auto;padding:1rem;object-fit:cover;height:140px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}@media print{@page{size:A4;margin:0}html,body{width:210mm;height:297mm;background:#fff;overflow:hidden;margin:0;padding:0}.resumeCanvas{margin:0;width:100%;height:100%;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}} \ No newline at end of file +*{margin:0;padding:0}body{background:#fff;color:#202020;font-family:pt sans,ibm plex sans,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none;color:#202020}li{list-style-type:square;padding-left:0;list-style-position:inside;margin:8px 0}.resumeCanvas{margin:2.5rem auto;padding:0 .45in .5in;width:8.25in;height:11.75in;background-color:#fff;-moz-box-shadow:2px 2px 10px #aaa;-webkit-box-shadow:2px 2px 10px #aaa;box-shadow:2px 2px 10px #aaa;box-sizing:border-box}.gridParent{width:100%;height:100%;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);grid-column-gap:0;grid-row-gap:0}.flex-row{display:flex;flex-direction:row;justify-content:space-between}.titleHeader{display:flex;flex-direction:column;justify-content:center;font-family:pt sans,ibm plex sans,arial,sans-serif}.titleHeader h1{font-size:64px;color:#202020;letter-spacing:.15rem}header{grid-area:1/1/2/8;border-bottom:#bfbfbf 1px solid}.leftSide{grid-area:2/1/7/6;display:flex;flex-direction:column;justify-content:flex-start;border-right:#bfbfbf 1px solid;padding-right:16px}.rightSide{grid-area:2/6/7/8;display:flex;flex-direction:column;justify-content:flex-start;margin-left:8px}.rightSide li{list-style-type:none;padding:0}.leftSide,.rightSide{margin-top:12px;font-size:14px}.leftSide h1,.leftSide h2,.leftSide h3,.rightSide h1,.rightSide h2,.rightSide h3{line-height:1.2}.leftSide h1,.rightSide h1{margin-bottom:16px;font-size:24px}.leftSide h2,.rightSide h2{font-size:20px;margin-bottom:4px}.leftSide h3,.rightSide h3{font-size:16px}.leftSide p,.rightSide p{font-size:14px;margin:8px 0;line-height:1.5;text-align:justify}*::-webkit-scrollbar{width:12px;height:8px}*::-webkit-scrollbar-thumb{background-color:#b56b00;outline:1px solid #b56b00}*::-webkit-scrollbar-track{background-color:#ffe1b5}::selection{background:#b56b00;color:#fff}::-moz-selection{background:#b56b00;color:#fff}footer{width:8.25in;margin:36px auto;text-align:center;display:flex;flex-flow:column}.link-text{font-weight:700}#link::after{content:"\00B7"}#link:last-child::after{content:""}footer a{color:#e30a17;padding:0 4px}footer a:hover{color:#fff;background-color:#e30a17;transition:all .35s ease-out;transition-property:all .35s ease-out;-webkit-transition-property:all .35s ease-out;-moz-transition-property:all .35s ease-out;-o-transition-property:all .35s ease-out}.section{margin-bottom:20px}.item{margin-bottom:14px}.section .item:last-child{margin-bottom:0}.group .item{margin-top:0}.section-title{border-left:solid 6px #202020;padding-left:8px;font-family:pt sans,ibm plex sans,arial,sans-serif}.job-title{font-size:14px}.item-title{margin-bottom:2px}.item-title-span{font-weight:400;font-size:14px}.item-info{font-weight:400;font-size:14px}.avatar{display:block;margin:1rem auto;padding:1rem;object-fit:cover;height:140px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}@media print{@page{size:A4;margin:0}html,body{width:210mm;height:297mm;background:#fff;overflow:hidden;margin:0;padding:0}.resumeCanvas{margin:0;width:100%;height:100%;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}} \ No newline at end of file diff --git a/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.json b/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.json index 0c32387..108818c 100644 --- a/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.json +++ b/resources/_gen/assets/scss/sass/main.scss_48b060fe05b0a273d182ef83c0605941.json @@ -1 +1 @@ -{"Target":"sass/main.min.89d125fc487a75c1353e2de4ff537bc3d096c96d46c3e37785e443f598a929a4.css","MediaType":"text/css","Data":{"Integrity":"sha256-idEl/Eh6dcE1Pi3k/1N7w9CWyW1Gw+N3heRD9ZipKaQ="}} \ No newline at end of file +{"Target":"sass/main.min.60d7836e25482f39d7d89c948911ca5b9cdde95c4dd2746ccd2c5448276c6e77.css","MediaType":"text/css","Data":{"Integrity":"sha256-YNeDbiVILznX2JyUiRHKW5zd6VxN0nRszSxUSCdsbnc="}} \ No newline at end of file