From 3e13c5ea2daca9cdab0acd7224d1d1c439c03e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kantoj=C3=A4rvi?= Date: Wed, 3 Mar 2021 17:29:15 +0200 Subject: [PATCH] Rewrite all layouts, data and configuration structures * Add support for multiple pages * Add support to reorder and move features to columns and pages * Add support for new sections with generic widgets --- README.md | 39 +++--- assets/css/_base.scss | 37 +++++ assets/css/_footer.scss | 35 +++++ assets/css/_layout.scss | 154 +++++++++++++++++++++ assets/css/_print.scss | 59 ++++++++ assets/css/_redundant.scss | 23 +++ assets/css/_section.scss | 105 ++++++++++++++ assets/{sass => css}/main.scss | 5 +- assets/sass/_base.scss | 118 ---------------- assets/sass/_footer.scss | 39 ------ assets/sass/_item_styling.scss | 58 -------- assets/sass/_print.scss | 23 --- assets/sass/_redundant.scss | 22 --- exampleSite/assets/css/custom.scss | 15 ++ exampleSite/config.toml | 149 ++++++++++++++------ exampleSite/data/features.yaml | 95 +++++++------ exampleSite/data/projects.yaml | 20 ++- layouts/home.html | 110 +++++++-------- layouts/partials/about-me.html | 8 -- layouts/partials/awards.html | 9 -- layouts/partials/certificates.html | 14 -- layouts/partials/education.html | 10 -- layouts/partials/experience.html | 17 --- layouts/partials/footer.html | 41 +++--- layouts/partials/header.html | 29 ++-- layouts/partials/interests.html | 8 -- layouts/partials/languages.html | 12 -- layouts/partials/markdown.html | 6 + layouts/partials/projects.html | 15 -- layouts/partials/publications.html | 56 -------- layouts/partials/section-about.html | 1 + layouts/partials/section-details-list.html | 32 +++++ layouts/partials/section-education.html | 7 + layouts/partials/section-experience.html | 16 +++ layouts/partials/section-json.html | 1 + layouts/partials/section-languages.html | 11 ++ layouts/partials/section-publications.html | 63 +++++++++ layouts/partials/section-word-list.html | 37 +++++ layouts/partials/section.html | 12 ++ layouts/partials/skills.html | 8 -- layouts/partials/skills_grouped.html | 11 -- 41 files changed, 900 insertions(+), 630 deletions(-) create mode 100644 assets/css/_base.scss create mode 100644 assets/css/_footer.scss create mode 100644 assets/css/_layout.scss create mode 100644 assets/css/_print.scss create mode 100644 assets/css/_redundant.scss create mode 100644 assets/css/_section.scss rename assets/{sass => css}/main.scss (78%) delete mode 100644 assets/sass/_base.scss delete mode 100644 assets/sass/_footer.scss delete mode 100644 assets/sass/_item_styling.scss delete mode 100644 assets/sass/_print.scss delete mode 100644 assets/sass/_redundant.scss create mode 100644 exampleSite/assets/css/custom.scss delete mode 100644 layouts/partials/about-me.html delete mode 100644 layouts/partials/awards.html delete mode 100644 layouts/partials/certificates.html delete mode 100644 layouts/partials/education.html delete mode 100644 layouts/partials/experience.html delete mode 100644 layouts/partials/interests.html delete mode 100644 layouts/partials/languages.html create mode 100644 layouts/partials/markdown.html delete mode 100644 layouts/partials/projects.html delete mode 100644 layouts/partials/publications.html create mode 100644 layouts/partials/section-about.html create mode 100644 layouts/partials/section-details-list.html create mode 100644 layouts/partials/section-education.html create mode 100644 layouts/partials/section-experience.html create mode 100644 layouts/partials/section-json.html create mode 100644 layouts/partials/section-languages.html create mode 100644 layouts/partials/section-publications.html create mode 100644 layouts/partials/section-word-list.html create mode 100644 layouts/partials/section.html delete mode 100644 layouts/partials/skills.html delete mode 100644 layouts/partials/skills_grouped.html diff --git a/README.md b/README.md index 3796797..c68294c 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,44 @@ # Features -* Simple, easy to use, single page, A4-sized Resume generator. +* Simple, easy to use, single or multi page, A4-sized Resume generator. * Print friendly, just use your browser or save as PDF. * Write your resume in yaml. All content stored in data files. -* Enable/Disable sections from ```config.toml```. -* Section names are configurable in ```config.toml```. So, you can write in any language you want. -* Change ```bib_style``` (APA, IEEE, else) for ```publications.yaml```. +* Remove/Add sections from `config.toml`. +* Section names are configurable in `config.toml`. So, you can write in any language you want. # How To Use ## Download -1. Create a hugo project. +1. Create a hugo project. 2. Go to themes folder. 3. Clone this theme. ``` cd themes -$ git clone https://gitlab.com/mertbakir/resume-a4.git +git clone https://gitlab.com/mertbakir/resume-a4.git +``` + +or add ass a submodule + +``` +git submodule add https://gitlab.com/mertbakir/resume-a4.git themes/resume-a4 ``` ## Start -1. Go to ```exampleSite``` and copy ```config.toml``` to the root directory of your hugo project. -2. Open ```config.toml``` and add your relevant information. -3. Copy ```data``` folder from ```exampleSite``` to root directory. All you need is that folder. +1. Copy `config.toml` from `exampleSite` to the root directory of your hugo project. +2. Open `config.toml` and add your relevant information. +3. Copy `data` folder from `exampleSite` to the root directory of your hugo project. All you need is that folder. 4. Create your resume in yaml files. ## Notes -* Enable/Disable Sections in ```config.toml``` -* Set avatar link in ```config.toml```, keep your image under ```static``` folder if you want. -* You can change bib_style in the config file. I've created options for APA and IEEE standards. You can configure ```publications.html``` file in the ```layouts\partials``` folder if you are looking for something else. +* Add/Remove sections in `config.toml` +* Set avatar link in `config.toml`, keep your image under `static` folder if you want. +* You can change `style` of the `publications` feature in the config file. + I've created options for APA and IEEE standards. + You can add more standards to `section-publications.html` file in the `layouts\partials` folder if you are looking for something else. * [Here is the blog post](https://mertbakir.gitlab.io/projects/resume-a4/) about this project. # License @@ -43,7 +50,7 @@ This project is open-sourced and licensed under the terms of the MIT license. I # My Work Flow 1. Make changes. -2. Delete resources folder in main project. -2. Build your hugo site using the theme. ```hugo server``` -3. Copy "resources" folder from main project to theme folder ```themes\resume-A4\resources``` -4. git commit & push. \ No newline at end of file +2. Delete `resources` folder in main project. +2. Build your hugo site using the theme. `hugo server` +3. Copy `resources` folder from main project to theme folder `themes\resume-A4\resources` +4. `git commit` and `git push`. diff --git a/assets/css/_base.scss b/assets/css/_base.scss new file mode 100644 index 0000000..93d415e --- /dev/null +++ b/assets/css/_base.scss @@ -0,0 +1,37 @@ +* { + margin: 0; + padding: 0; +} + +body { + background: #fff; + color: $text-color; + font-family: $font-1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + text-decoration: none; + color: $text-color; + + i { + padding: 0 0.2rem 0 0.25rem; + } + + &:hover { + text-decoration: underline; + } + + &:not(.no-external-icon)::after { + content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==); + margin: 0 0.2rem 0 0.25rem; + } +} + +li { + list-style-type: square; + padding-left: 0px; + list-style-position: inside; + margin: 0.5rem 0; +} diff --git a/assets/css/_footer.scss b/assets/css/_footer.scss new file mode 100644 index 0000000..b37cb14 --- /dev/null +++ b/assets/css/_footer.scss @@ -0,0 +1,35 @@ +footer { + width: 8.25in; + margin: 36px auto; + text-align: center; + display: flex; + flex-flow: column; + + .footer-item { + margin-bottom: 0.5rem; + + a { + span { + font-weight: 700; + } + + color: $turk; + padding: 0 4px; + + &:hover { + color: white; + background-color: $turk; + text-decoration: none; + transition: all 0.35s ease-out; + transition-property: all 0.35s ease-out; + -webkit-transition-property: all 0.35s ease-out; + -moz-transition-property: all 0.35s ease-out; + -o-transition-property: all 0.35s ease-out; + } + } + + .footer-link:not(:last-child)::after { + content: "\00B7"; + } + } +} diff --git a/assets/css/_layout.scss b/assets/css/_layout.scss new file mode 100644 index 0000000..fa36033 --- /dev/null +++ b/assets/css/_layout.scss @@ -0,0 +1,154 @@ +.paper { + position: relative; + margin: 0.5rem auto; + padding: 0.45in 0.5in; + width: 210mm; + height: 297mm; + background-color: #fff; + -webkit-box-shadow: 0.2rem 0.2rem 0.6rem #aaa; + -moz-box-shadow: 0.2rem 0.2rem 0.6rem #aaa; + box-shadow: 0.2rem 0.2rem 0.6rem #aaa; + box-sizing: border-box; + + font-size: 0.88rem; + + h1, h2, h3 { + line-height: 1.2; + } + + h1 { + margin-bottom: 0.8rem; + font-size: 1.5rem; + } + + h2 { + margin-bottom: 0.4rem; + font-size: 1.1rem; + } + + h3 { + margin-bottom: 0.2rem; + font-size: 1rem; + } + + p { + margin: 0.5rem 0; + font-size: 0.88rem; + line-height: 1.5; + text-align: justify; + } + + > *:first-child { + margin-top: 0; + } +} + +main.paper { + margin-top: 2.5rem; + padding-top: 0; + + .grid { + 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; + } + } + + header { + grid-area: 1 / 1 / 2 / 8; + border-bottom: $border-color 0.05rem solid; + + .title { + display: flex; + flex-direction: column; + justify-content: center; + font-family: $font-1; + + h1 { + margin-bottom: 0.4rem; + font-size: 4rem; + color: $text-color; + letter-spacing: 0.15rem; + text-transform: uppercase; + } + + h2 { + margin-bottom: 0.3rem; + font-size: 1rem; + } + } + + .avatar { + display: block; + margin: 1rem auto; + padding: 1rem; + object-fit: cover; + height: 8.75rem; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + -ms-border-radius: 50%; + -o-border-radius: 50%; + border-radius: 50%; + } + } + + .left-column, .right-column { + margin-top: 0.75rem; + + > *:first-child, + > *:first-child > *:first-child { + margin-top: 0; + } + } + + .left-column { + grid-area: 2 / 1 / 7 / 6; + display: flex; + flex-direction: column; + justify-content: flex-start; + border-right: $border-color 0.05rem solid; + padding-right: 1rem; + } + + .right-column { + grid-area: 2 / 6 / 7 / 8; + display: flex; + flex-direction: column; + justify-content: flex-start; + margin-left: 0.5rem; + + li { + list-style-type: none; + padding: 0; + } + + h1 { + margin-bottom: 0.5rem; + font-size: 1.2rem; + } + + h2 { + margin-bottom: 0.2rem; + font-size: 1rem; + } + + h3 { + margin-bottom: 0.1rem; + font-size: 0.8rem; + } + + p { + font-size: 0.8rem; + line-height: 1.3; + } + } +} diff --git a/assets/css/_print.scss b/assets/css/_print.scss new file mode 100644 index 0000000..cc4b147 --- /dev/null +++ b/assets/css/_print.scss @@ -0,0 +1,59 @@ +/* Print */ + +@media print { + @page { + size: A4; + margin: 0; + } + + html, body { + background: #fff; + margin: 0; + padding: 0; + } + + .paper, main.paper { + margin: 0; + width: 210mm; + height: 297mm; + overflow: hidden; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; + page-break-after: always; + } + + a { + text-decoration: none; + + &:not(.non-existing)::after { + content: " (" attr(href) ")"; + margin: 0; + font-weight: 400; + font-size: 0.75rem; + color: scale-color($text-color, $lightness: 30%); + } + + .item-title & { + &::after { + content: attr(href); + display: block; + margin: 0; + } + } + + .section-publications & { + &::after { + content: attr(href); + display: block; + margin: 0 0.75rem; + } + } + } + + .item-title {} + + footer { + display: none; + } +} diff --git a/assets/css/_redundant.scss b/assets/css/_redundant.scss new file mode 100644 index 0000000..6d0b86d --- /dev/null +++ b/assets/css/_redundant.scss @@ -0,0 +1,23 @@ +*::-webkit-scrollbar { + width: 12px; + height: 8px; +} + +*::-webkit-scrollbar-thumb { + background-color: $toprak; + outline: 1px solid $toprak; +} + +*::-webkit-scrollbar-track { + background-color: lighten($toprak, 50%); +} + +::selection { + background: $toprak; + color: white; +} + +::-moz-selection { + background: $toprak; + color: white; +} diff --git a/assets/css/_section.scss b/assets/css/_section.scss new file mode 100644 index 0000000..b2f63f3 --- /dev/null +++ b/assets/css/_section.scss @@ -0,0 +1,105 @@ +.section { + margin-bottom: 1.5rem; + + > *:last-child { + margin-bottom: 0; + } + + .right-column & { + margin-bottom: 1rem; + } +} + +.section-title { + border-left: solid 0.4rem $text-color; + padding-left: 0.5rem; + font-family: $font-1; + + .right-column & { + border-left: solid 0.3rem $text-color; + } +} + +.item { + margin-bottom: 0.6rem; + + dl { + dt { + display: inline; + font-weight: 600; + + &::after { + content: ': ' + } + } + + dd { + display: inline; + + &:not(:last-child)::after { + content: ""; + display: block; + margin-bottom: 0.4em; + } + + *:not(:last-child)::after { + content: "; "; + margin-right: 0.25rem; + } + + } + } + + &.group { + .item { + margin-top: 0; + } + } +} + +.item-title { + font-weight: 600; + margin-bottom: 2px; +} + +.item-info { + font-weight: 400; + font-size: 14px; +} + +.job-title { + font-size: 14px; + font-style: italic; +} + +.date { + color: scale-color($text-color, $lightness: 30%); +} + +main.paper .right-column, +main.paper .left-column, +.paper { + .section-education { + h2 { + margin-bottom: 0; + font-size: 1rem; + } + } + + .section-languages { + .item { + margin-bottom: 0.4rem; + } + + h2 { + margin-bottom: 0.1rem; + font-size: 0.9rem; + line-height: 1.1; + + span { + font-weight: 400; + font-size: 0.8rem; + } + } + } +} diff --git a/assets/sass/main.scss b/assets/css/main.scss similarity index 78% rename from assets/sass/main.scss rename to assets/css/main.scss index 0a5d6df..cddfc21 100644 --- a/assets/sass/main.scss +++ b/assets/css/main.scss @@ -6,6 +6,7 @@ $turk: #E30A17; @import "base"; @import "redundant"; +@import "layout"; +@import "section"; @import "footer"; -@import "item_styling"; -@import "print"; \ No newline at end of file +@import "print"; diff --git a/assets/sass/_base.scss b/assets/sass/_base.scss deleted file mode 100644 index ff83785..0000000 --- a/assets/sass/_base.scss +++ /dev/null @@ -1,118 +0,0 @@ - -* { - margin: 0; - padding: 0; - } - - - body { - background: #FFF; - color: $text-color; - font-family: $font-1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - a { - text-decoration: none; - color: $text-color; - } - - li { - list-style-type: square; - padding-left: 0px; - list-style-position: inside; - margin: 8px 0; - } - - .resumeCanvas { - margin: 2.5rem auto; - padding: 0 0.45in 0.5in 0.45in; - 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: 0px; - grid-row-gap: 0px; - } - - .flex-row{ - display: flex; - flex-direction: row; - justify-content: space-between; - } - - .titleHeader { - display: flex; - flex-direction: column; - justify-content: center; - font-family: $font-1; - h1 { - font-size: 64px; - color: $text-color; - letter-spacing: 0.15rem; - } - } - - header { - grid-area: 1 / 1 / 2 / 8; - border-bottom: $border-color 1px solid; - } - - .leftSide { - grid-area: 2 / 1 / 7 / 6; - display: flex; - flex-direction: column; - justify-content: flex-start; - border-right: $border-color 1px solid; - padding-right: 16px; - } - - .rightSide { - grid-area: 2 / 6 / 7 / 8; - display: flex; - flex-direction: column; - justify-content: flex-start; - margin-left: 8px; - - li { - list-style-type: none; - padding: 0; - } - } - - .leftSide, .rightSide { - margin-top: 12px; - font-size: 14px; - h1, h2, h3 { - line-height: 1.2; - } - h1 { - margin-bottom: 16px; - font-size: 24px; - } - h2 { - font-size: 20px; - margin-bottom: 4px; - } - h3 { - font-size: 16px; - } - p { - font-size: 14px; - margin: 8px 0; - line-height: 1.5; - text-align: justify; - } - } \ No newline at end of file diff --git a/assets/sass/_footer.scss b/assets/sass/_footer.scss deleted file mode 100644 index aa86bdb..0000000 --- a/assets/sass/_footer.scss +++ /dev/null @@ -1,39 +0,0 @@ -footer { - width: 8.25in; - margin: 36px auto; - text-align: center; - display: flex; - flex-flow: column; -} - -.link-text { - font-weight: 700; -} - -.footer-item { - //I'm doing nothing here. -} - -#link::after { - content: "\00B7"; -} - -#link:last-child::after { - content: ""; -} - -footer { - a { - color: $turk; - padding: 0 4px; - &:hover { - color: white; - background-color: $turk; - transition: all 0.35s ease-out; - transition-property: all 0.35s ease-out; - -webkit-transition-property: all 0.35s ease-out; - -moz-transition-property: all 0.35s ease-out; - -o-transition-property: all 0.35s ease-out; - } - } -} \ No newline at end of file diff --git a/assets/sass/_item_styling.scss b/assets/sass/_item_styling.scss deleted file mode 100644 index 02ae8e8..0000000 --- a/assets/sass/_item_styling.scss +++ /dev/null @@ -1,58 +0,0 @@ -.section { - margin-bottom: 20px; - } - -.item { - margin-bottom: 14px; -} - -.section { - .item:last-child { - margin-bottom: 0px; - } -} - -.group { - .item { - margin-top: 0; - } -} - -.section-title { - border-left: solid 6px $text-color; - padding-left: 8px; - font-family: $font-1; -} - -.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%; -} \ No newline at end of file diff --git a/assets/sass/_print.scss b/assets/sass/_print.scss deleted file mode 100644 index 52b7a15..0000000 --- a/assets/sass/_print.scss +++ /dev/null @@ -1,23 +0,0 @@ -/* Print */ - -@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/assets/sass/_redundant.scss b/assets/sass/_redundant.scss deleted file mode 100644 index 5d9d016..0000000 --- a/assets/sass/_redundant.scss +++ /dev/null @@ -1,22 +0,0 @@ -*::-webkit-scrollbar { - width: 12px; - height: 8px; - } - - *::-webkit-scrollbar-thumb { - background-color: $toprak; - outline: 1px solid $toprak; - } - - *::-webkit-scrollbar-track { - background-color: lighten($toprak, 50%); - } - - ::selection { - background: $toprak; - color: white; - } - ::-moz-selection { - background: $toprak; - color: white; -} \ No newline at end of file diff --git a/exampleSite/assets/css/custom.scss b/exampleSite/assets/css/custom.scss new file mode 100644 index 0000000..7ceb8ec --- /dev/null +++ b/exampleSite/assets/css/custom.scss @@ -0,0 +1,15 @@ +main.paper { + header .title h1 { + // You might want to change the font size if you have a long or a short name + //font-size: 4rem; + + // You may disable all capitals name with this. + //text-transform: none; + } + + .section-experience p { + // If you have a lot of experiences, you can lower the line height + // to fit more text on a single page. + //line-height: 1.5; + } +} diff --git a/exampleSite/config.toml b/exampleSite/config.toml index eba26f4..9cce5f9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,59 +2,126 @@ baseURL = "/" languageCode = "en-us" title = "Resume | MERT BAKIR" disableKinds = ["taxonomy", "term", "page", "section", "RSS", "sitemap", "robotsTXT", "404"] -theme = "resume-A4" +theme = "resume-a4" [params] useFontAwesome = true +css = [ "custom.scss" ] + +[params.header] avatar = "avatar.jpg" -bib_style = "IEEE" # IEEE, APA, else - -[params.display] -experience = true -education = true -languages = true -awards = true -skills = true -skills_grouped = false -interests = true -contact = false -linkedin = false +contact = true tagline = true -aboutMe = false -projects = false -publications = 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" -publications = "Publications" -projects = "Projects" - -[params.display.footer] -footer = true links = true -credits = true + +# Construct main column, side column and additional page from features +# Every column and page may include any features. Some features are +# created using generic widgets and you can add easily new features, +# as long as an existing widget can render it as you like. +# +# Common keys: +# feature: name of the feature. For generic features, this is also the root key in the yaml file. +# title: string rendered as the header of the element. Can be disabled with an empty string. +# collection: the base name of the yaml file containing the data. Defaults to "features". +# widget: `layout/partials/section-.html` used to render this element. +# +# Common widgets: +# +# details-list: +# Used by default, if section-.html doesn't exists. +# +# Expects data in format (in yaml file): +# title: the title string +# subtitle: string rendered under title. E.g., company for projects, certificate authority etc. +# date: date string, e.g., when a certificate was given +# details: a text in markdown. +# link: url where the title will link to +# links: list of links rendered as a bullet list below details +# prefix: a string before the link +# title: a string inside the link +# url: the destination of the link +# icon: the icon string, e.g., "fas fa-cloud". rendered inside link and after title. +# +# word-list: +# Handy for skills and interests etc. +# +# Additional keys: +# style: Rendering style for word list. One of: list, compact, or title-list +# +# Expects data in format (in yaml file): +# A list of strings, if style is "list", or +# +# A list of: +# groupName: title of the group +# list: list of strings rendered under the group + +# Side panel + +[[params.side]] +feature = "education" + +[[params.side]] +feature = "languages" + +[[params.side]] +feature = "skills" +widget = "word-list" +style = "title-list" # list, compact, title-list + +[[params.side]] +feature = "interests" +widget = "word-list" +style = "list" # list, compact, title-list + + +# First Page + +[[params.pages]] +[[params.pages.features]] +feature = "about" +title = "About Me" + +[[params.pages.features]] +feature = "experience" + + +# Additional Pages + +[[params.pages]] +[[params.pages.features]] +feature = "projects" +collection = "projects" + +[[params.pages.features]] +feature = "publications" +style = "IEEE" # IEEE, APA, else + +[[params.pages.features]] +feature = "awards" + +[[params.pages.features]] +feature = "certificates" +title = "Certifications" + + +# Footer [params.footer] -footnote = "You can print this resume in A4 size or save as pdf. | Last update on 01.09.2020." +show = true +credits = true +footnote = "You can print this resume in A4 size or save as pdf. | Last update on 2020-09-01." -[params.footer.links] -[[params.footer.links.link]] +[[params.footer.links]] prefix = "Contact me on" -name = "Linkedin" +title = "Linkedin" url = "https://linkedin.com/in/mertbakir/" icon = "fab fa-linkedin" -[[params.footer.links.link]] +[[params.footer.links]] prefix = "Check out my" -name = "Website" +title = "Website" url = "https://mertbakir.gitlab.io/about/" -icon = "fas fa-globe" \ No newline at end of file +icon = "fas fa-globe" + + +# p.s. if you know YAML, then you should use that for this file. diff --git a/exampleSite/data/features.yaml b/exampleSite/data/features.yaml index 7557476..6b20ae4 100644 --- a/exampleSite/data/features.yaml +++ b/exampleSite/data/features.yaml @@ -1,57 +1,70 @@ +about: + name: Mert Bakir + tagline: Data Scientist + phone: "5070*4****" + email: yourmail@yourdomain + links: + - title: /in/mertbakir + url: https://tr.linkedin.com/in/mertbakir + icon: fab fa-linkedin + - title: mertbakir + url: https://gitlab.com/mertbakir/ + icon: fab fa-gitlab + - title: mertbakir + url: https://github.com/mertbakir + icon: fab fa-github + details: | + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. + Aenean nec volutpat arcu. Maecenas quis tempus risus. Curabitur condimentum ligula in erat pharetra porta. + + Nam suscipit nisi a bibendum lacinia. + + skills: - - "Python - R - SQL" - - "InfluxDB/TICK Stack" - - "Grafana - PowerBI" - - "Excel - Minitab - SPSS" - - "GAMS - OR-Tools - IBM CPLEX" - - "C# - Git - Docker - NGINX" + - groupName: Databases & Visualization + list: + - Grafana - Kibana - PowerBI + - InfluxDB - TICK Stack -skillsGrouped: - - groupName: "Databases & Visualization" - skills: ["Grafana - Kibana - PowerBI", "InfluxDB - TICK Stack"] - - - groupName: "Data Analysis & Analytics" - skills: ["Python - R - SQL", "Excel - Minitab - SPSS", "GAMS - PuLP - OR Tools"] + - groupName: Data Analysis & Analytics + list: + - Python - R - SQL + - Excel - Minitab - SPSS + - GAMS - PuLP - OR Tools - - groupName: "Programming & Systems" - skills: ["C# - Git - Docker - NGINX", "Linux - CentOS RHEL"] + - groupName: Programming & Systems + list: + - C# - Git - Docker - NGINX + - Linux - CentOS RHEL interests: - - "Data Science" - - "AI Applications" - - "Optimization Problems" + - Data Science + - AI Applications + - Optimization Problems languages: - - name: "Turkish" - level: "Native" + - name: Turkish + level: Native - - name: "English" - level: "Professional" - certificates: ["YDS: 86.25 - 2018", "TOEFL: 109 - 2021"] + - name: English + level: Professional + certificates: + - "YDS: 86.25 - 2018" + - "TOEFL: 109 - 2021" awards: - - name: "Tübitak - Graduation Project" + - title: Tübitak - Graduation Project date: "2017" - details: "A Decision Support System for 3D Cutting Problem" + details: | + A Decision Support System for 3D Cutting Problem certificates: - - name: "Supervised Learning: Regression" + - title: "Supervised Learning: Regression" + subtitle: Coursera date: "2020" - issued_by: "Coursera" - link: "https://xkcd.com/605/" + link: https://xkcd.com/605/ - - name: "Supervised Learning: Classification" + - title: "Supervised Learning: Classification" + subtitle: Coursera date: "2020" - issued_by: "Coursera" - link: "https://xkcd.com/388/" - - -about: - - name: "MERT BAKIR" - tagline: "Data Scientist" - phone: "5070*4****" - linkedin: "/in/mertbakir" - email: "yourmail@yourdomain" - details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. - Aenean nec volutpat arcu. Maecenas quis tempus risus. Curabitur condimentum ligula in erat pharetra porta. - Nam suscipit nisi a bibendum lacinia." \ No newline at end of file + link: https://xkcd.com/388/ diff --git a/exampleSite/data/projects.yaml b/exampleSite/data/projects.yaml index 099bbbf..7e07403 100644 --- a/exampleSite/data/projects.yaml +++ b/exampleSite/data/projects.yaml @@ -1,11 +1,17 @@ -- name: "Simulated Annealing for Traveling Salesman Problem" - company: "Some University" - link: "" +projects: +- title: "Simulated Annealing for Traveling Salesman Problem" + subtitle: "Some University" date: "2016" - details: "Lorem ipsum dolor sit amet" + details: | + Lorem ipsum dolor sit amet -- name: "Resume - A4" - company: "mertbakir.gitlab.io/resume" +- title: "Resume - A4" + subtitle: "mertbakir.gitlab.io/resume" link: "https://gitlab.com/mertbakir/resume-a4" date: "2020" - details: "Bring CI/CD to your resume using YAML and Git." \ No newline at end of file + details: | + Bring CI/CD to your resume using YAML and Git." + links: + - title: Available in GitLab + utl: https://gitlab.com/mertbakir/resume-a4 + icon: fab fa-gitlab diff --git a/layouts/home.html b/layouts/home.html index 1e6973d..10c4558 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,75 +1,59 @@ - - - - {{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }} - - - {{ if .Site.Params.useFontAwesome }} - - {{ end }} - {{ .Site.Title }} + + + {{ $style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }} + + + {{ if .Site.Params.useFontAwesome }} + + {{ end }} + {{ range .Site.Params.css }} + {{ $style := resources.Get (printf "css/%s" .) }} + {{ if $style }} + + {{ end }} + {{ end }} + {{ .Site.Title }} -
-
-
{{ partial "header" . }}
+
+
+
+ {{ partial "header" (dict "Header" .Site.Params.header "Data" .Site.Data "useFontAwesome" .Site.Params.useFontAwesome) }} +
-
- {{ if .Site.Params.display.aboutMe }} - {{ partial "about-me" . }} - {{ end }} - - {{ if .Site.Params.display.experience }} - {{ partial "experience" . }} - {{ end }} + {{ range first 1 .Site.Params.pages }} +
+ {{ range .features }} + {{ partial "section" (dict "Feature" . "Data" $.Site.Data "useFontAwesome" $.Site.Params.useFontAwesome) }} + {{ end }} +
+ {{ end }} - {{ if .Site.Params.display.projects }} - {{ partial "projects" . }} - {{ end }} - - {{ if .Site.Params.display.publications }} - {{ partial "publications" . }} - {{ end }} +
+ {{ range .Site.Params.side }} + {{ partial "section" (dict "Feature" . "Data" $.Site.Data "useFontAwesome" $.Site.Params.useFontAwesome) }} + {{ end }} +
+
+
- {{ if .Site.Params.display.certificates }} - {{ partial "certificates" . }} - {{ end }} + {{ range after 1 .Site.Params.pages }} +
+ {{ range .features }} + {{ partial "section" (dict "Feature" . "Data" $.Site.Data "useFontAwesome" $.Site.Params.useFontAwesome) }} + {{ end }} +
+ {{ end }} -
- -
- {{ if .Site.Params.display.education }} - {{ partial "education" . }} - {{ end }} - - {{ if .Site.Params.display.languages }} - {{ partial "languages" . }} - {{ end }} - - {{ if .Site.Params.display.awards }} - {{ partial "awards" . }} - {{ end }} - - {{ if .Site.Params.display.skills }} - {{ partial "skills" . }} - {{ end }} - - {{ if .Site.Params.display.skills_grouped }} - {{ partial "skills_grouped" . }} - {{ end }} - - {{ if .Site.Params.display.interests }} - {{ partial "interests" . }} - {{ end }} -
-
- {{ if .Site.Params.display.footer.footer }} -
{{ partial "footer" .}}
- {{ end }} + {{ if .Site.Params.footer.show }} +
+ {{ partial "footer" (dict "Footer" .Site.Params.footer "useFontAwesome" .Site.Params.useFontAwesome) }} +
+ {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/about-me.html b/layouts/partials/about-me.html deleted file mode 100644 index 1b32d6a..0000000 --- a/layouts/partials/about-me.html +++ /dev/null @@ -1,8 +0,0 @@ -
-

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

-

- {{ range .Site.Data.features.about }} - {{ .details }} - {{ end }} -

-
\ No newline at end of file diff --git a/layouts/partials/awards.html b/layouts/partials/awards.html deleted file mode 100644 index 8ba5d85..0000000 --- a/layouts/partials/awards.html +++ /dev/null @@ -1,9 +0,0 @@ -
-

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

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

{{ .name }}

- {{ .details | markdownify }} - {{ .date }} -
- {{ end }} -
\ No newline at end of file diff --git a/layouts/partials/certificates.html b/layouts/partials/certificates.html deleted file mode 100644 index 11a4a74..0000000 --- a/layouts/partials/certificates.html +++ /dev/null @@ -1,14 +0,0 @@ -
-

{{ .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 deleted file mode 100644 index 03f1316..0000000 --- a/layouts/partials/education.html +++ /dev/null @@ -1,10 +0,0 @@ -
-

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

- {{ range .Site.Data.education }} -
-

{{ .name }}

- {{ .university }}
- {{ .date }} | GPA: {{ .gpa }} -
- {{ end }} -
\ No newline at end of file diff --git a/layouts/partials/experience.html b/layouts/partials/experience.html deleted file mode 100644 index 7db932d..0000000 --- a/layouts/partials/experience.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

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

- {{ range .Site.Data.experience }} -
-

{{ .company }}

- {{ range .roles }} -
-
- {{ .role }} - {{ .date }} -
-

{{ .details | markdownify }}

-
- {{ end }} -
- {{ end }} -
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 86947fe..8a05b1c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,20 +1,27 @@ -{{ if .Site.Params.display.footer.credits }} +{{ if .Footer.links }} + + {{ range .Footer.links }} + + {{ .prefix }} + + {{ .title }} + {{ if and $.useFontAwesome .icon }}{{ end }} + + + {{ end }} + +{{ end }} + + + {{ .Footer.footnote }} + + +{{ if .Footer.credits }} -Resume-A4 project is open-sourced by Mert Bakır + The open-source theme Resume-A4 is designed by + Mert Bakır  +
+ and template code by + Jaakko Kantojärvi 
{{ end }} - -{{ if .Site.Params.display.footer.links }} - - {{ range .Site.Params.footer.links.link }} - - {{ .prefix }} {{.name}} - {{ if $.Site.Params.useFontAwesome }}{{ end }} - - {{ end }} - -{{ end }} - - - {{ .Site.Params.footer.footnote }} - diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2797d0c..2ac03c4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,16 +1,15 @@ -
- {{ range .Site.Data.features.about }} -

{{ .name }}

- {{ if $.Site.Params.display.tagline }}

{{ .tagline }}

{{end}} - {{ if $.Site.Params.display.contact }}{{ .phone }} | {{ .email }}{{ end }} - {{ if $.Site.Params.display.linkedin }} - - {{ if $.Site.Params.useFontAwesome }}{{ end }} - {{ .linkedin }} - - {{ end }} - {{ end }} +
+ {{ with .Data.features.about }} +

{{ .name }}

+ {{ if $.Header.tagline }}

{{ .tagline }}

{{end}} + {{ if $.Header.contact }}{{ .phone }} | {{ .email }}{{ end }} + {{ if $.Header.links }} + {{ range .links }} + {{ if and $.useFontAwesome .icon }}{{ end }}{{ .title }} + {{ end }} + {{ end }} + {{ end }}
-{{ if .Site.Params.display.avatar }} -
-{{ end }} \ No newline at end of file +{{ if .Header.avatar }} +
+{{ end }} diff --git a/layouts/partials/interests.html b/layouts/partials/interests.html deleted file mode 100644 index 4720d13..0000000 --- a/layouts/partials/interests.html +++ /dev/null @@ -1,8 +0,0 @@ -
-

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

-
- {{ range .Site.Data.features.interests }} -
  • {{.}}
  • - {{ end }} -
    -
    \ No newline at end of file diff --git a/layouts/partials/languages.html b/layouts/partials/languages.html deleted file mode 100644 index 12a06a3..0000000 --- a/layouts/partials/languages.html +++ /dev/null @@ -1,12 +0,0 @@ -
    -

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

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

    {{ .name }} - - {{ .level }}

    - {{ range .certificates }} -
  • {{.}}
  • - {{ end }} -
    - {{ end }} -
    \ No newline at end of file diff --git a/layouts/partials/markdown.html b/layouts/partials/markdown.html new file mode 100644 index 0000000..e8e0513 --- /dev/null +++ b/layouts/partials/markdown.html @@ -0,0 +1,6 @@ +{{ $markdown := . | markdownify }} +{{ if strings.Contains $markdown "

    " }} + {{ $markdown }} +{{ else }} +

    {{ $markdown }}

    +{{ end }} diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html deleted file mode 100644 index 1d654ed..0000000 --- a/layouts/partials/projects.html +++ /dev/null @@ -1,15 +0,0 @@ -
    -

    {{ .Site.Params.title_as.projects }}

    - {{ range .Site.Data.projects }} -
    -

    {{ .name }} - {{ if .link }} - {{ if $.Site.Params.useFontAwesome }} - {{else}}🔗{{ end }} - {{ end }} -

    - {{ .company | markdownify }} - {{ .date }} -

    {{ .details }}

    -
    - {{ end }} -
    \ No newline at end of file diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html deleted file mode 100644 index 84e8bca..0000000 --- a/layouts/partials/publications.html +++ /dev/null @@ -1,56 +0,0 @@ -
    -

    {{ .Site.Params.title_as.publications }}

    - {{ range .Site.Data.publications }} -
    - {{ if eq $.Site.Params.bib_style "IEEE" }} - - {{ range .authors }} - {{ substr .first_name 0 1 }}. - {{ with .middle_name}}{{ substr . 0 1 }}.{{end}} - {{ .last_name }}, - {{ end }} - "{{ .title }}", - {{ if .journal }} - {{ .journal }}, - {{ with .vol }} - vol. {{.}}, - {{ end }} - {{ with .page }} - pp. {{.}}, - {{ end }} - {{ end }} - {{ .date }}. - - {{ else if eq $.Site.Params.bib_style "APA" }} - - {{ $last_index := sub (.authors | len) 1 }} - {{ range $i, $e := .authors }} - {{ $e.last_name }}, - {{ substr $e.first_name 0 1 }}. - {{- with $e.middle_name -}}{{ substr . 0 1 }}.{{- end -}} - {{- if ne $i $last_index -}},{{- end -}} - {{ end }} - ({{ .date }}). - - {{ .title }}. - {{ if .journal }} - {{ .journal }} - {{- if .vol -}} - , {{.vol}}{{if .issue}}({{.issue}}){{end}}, - {{- end -}} - {{ with .page }} - {{.}} - {{ end }} - {{ end }}. - - {{ else }} - {{ range .authors }} - {{ .last_name }} {{ substr .first_name 0 1 }}. - {{ end }} - - {{ .title }} - {{ .date }}. - {{ end }} -
    - {{ end }} -
    \ No newline at end of file diff --git a/layouts/partials/section-about.html b/layouts/partials/section-about.html new file mode 100644 index 0000000..debedaf --- /dev/null +++ b/layouts/partials/section-about.html @@ -0,0 +1 @@ +{{ partial "markdown" .Data.features.about.details }} diff --git a/layouts/partials/section-details-list.html b/layouts/partials/section-details-list.html new file mode 100644 index 0000000..c36e5ca --- /dev/null +++ b/layouts/partials/section-details-list.html @@ -0,0 +1,32 @@ +{{- $collection := index .Data (.Feature.collection | default "features" ) -}} +{{ range (index $collection .Feature.feature) }} +
    +

    + {{- if .link -}} + {{ .title }} + {{- else -}} + {{ .title }} + {{- end -}} +

    + {{ if and .subtitle .date }} + {{- .subtitle | markdownify }} - {{ .date }} + {{- else if .subtitle }} + {{- .subtitle | markdownify }} + {{- else if .date }} + {{- .date }} + {{- end }} + {{ if .details }} + {{- partial "markdown" .details }} + {{- end }} + {{ if .links }} + + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/section-education.html b/layouts/partials/section-education.html new file mode 100644 index 0000000..80e71eb --- /dev/null +++ b/layouts/partials/section-education.html @@ -0,0 +1,7 @@ +{{ range .Data.education }} +
    +

    {{ .name }}

    + {{ .university }}
    + {{ .date }}{{ if .gpa }} | GPA: {{ .gpa }}{{ end }} +
    +{{ end }} diff --git a/layouts/partials/section-experience.html b/layouts/partials/section-experience.html new file mode 100644 index 0000000..2d26316 --- /dev/null +++ b/layouts/partials/section-experience.html @@ -0,0 +1,16 @@ +{{ range .Data.experience }} +
    +

    {{ .company }}

    + {{ range .roles }} +
    +
    + {{ .role }} + {{ .date }} +
    + {{ if .details }} +

    {{ .details | markdownify }}

    + {{ end }} +
    + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/section-json.html b/layouts/partials/section-json.html new file mode 100644 index 0000000..13da1ae --- /dev/null +++ b/layouts/partials/section-json.html @@ -0,0 +1 @@ +
    {{ . | jsonify (dict "indent" "  ") }}
    diff --git a/layouts/partials/section-languages.html b/layouts/partials/section-languages.html new file mode 100644 index 0000000..a363381 --- /dev/null +++ b/layouts/partials/section-languages.html @@ -0,0 +1,11 @@ +{{ range .Data.features.languages }} +
    +

    + {{- .name -}} + - {{ .level }} +

    + {{ range .certificates }} +
  • {{.}}
  • + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/section-publications.html b/layouts/partials/section-publications.html new file mode 100644 index 0000000..d7c5bdb --- /dev/null +++ b/layouts/partials/section-publications.html @@ -0,0 +1,63 @@ +{{ range .Data.publications }} + +{{ end }} diff --git a/layouts/partials/section-word-list.html b/layouts/partials/section-word-list.html new file mode 100644 index 0000000..273c22b --- /dev/null +++ b/layouts/partials/section-word-list.html @@ -0,0 +1,37 @@ +{{- $collection := index .Data (.Feature.collection | default "features" ) -}} +{{- $data := index $collection .Feature.feature }} +{{- if eq .Feature.style "list" -}} +
    + {{ range $data }} + {{- if reflect.IsMap . -}} + {{- range .list -}} +
  • {{.}}
  • + {{- end -}} + {{- else -}} +
  • {{.}}
  • + {{- end -}} + {{ end }} +
    +{{- else if eq .Feature.style "compact" -}} +
    +
    + {{ range $data }} +
    {{ .groupName }}
    +
    + {{- range .list -}} + {{.}} + {{- end -}} +
    + {{ end }} +
    +
    +{{- else -}} + {{ range $data }} +
    +

    {{ .groupName }}

    + {{ range .list }} +
  • {{.}}
  • + {{ end }} +
    + {{ end }} +{{- end -}} diff --git a/layouts/partials/section.html b/layouts/partials/section.html new file mode 100644 index 0000000..e8eba85 --- /dev/null +++ b/layouts/partials/section.html @@ -0,0 +1,12 @@ +
    + {{- if or (not (isset .Feature "title")) .Feature.title -}} +

    {{ .Feature.title | default (title .Feature.feature) }}

    + {{- end -}} + {{- $partial := (printf "section-%s.html" (default .Feature.feature .Feature.widget)) -}} + {{- $collection := index .Data (default "features" .Feature.collection) -}} + {{- if and (not (templates.Exists (printf "partials/%s" $partial))) (isset $collection .Feature.feature) -}} + {{ partial "section-details-list.html" . }} + {{- else -}} + {{ partial $partial . }} + {{- end -}} +
    diff --git a/layouts/partials/skills.html b/layouts/partials/skills.html deleted file mode 100644 index 09a2567..0000000 --- a/layouts/partials/skills.html +++ /dev/null @@ -1,8 +0,0 @@ -
    -

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

    -
    - {{ range .Site.Data.features.skills }} -
  • {{.}}
  • - {{ end }} -
    -
    \ No newline at end of file diff --git a/layouts/partials/skills_grouped.html b/layouts/partials/skills_grouped.html deleted file mode 100644 index 8309cf5..0000000 --- a/layouts/partials/skills_grouped.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -

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

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

    {{ .groupName }}

    - {{ range .skills }} -
  • {{.}}
  • - {{ end }} -
    - {{ end }} -
    \ No newline at end of file