From 00027c5801c2204a97fe068bcaedfafbb37dfefb Mon Sep 17 00:00:00 2001 From: mertbakir <2335694-mertbakir@users.noreply.gitlab.com> Date: Tue, 1 Sep 2020 12:10:42 +0300 Subject: Update Footer * It's now customizable in config.toml * Remove resume.pdf --- README.md | 8 +++++--- assets/sass/_footer.scss | 15 ++++++++++++++- exampleSite/config.toml | 31 ++++++++++++++++++++++--------- layouts/home.html | 2 +- layouts/partials/footer.html | 26 ++++++++++++++++++++------ static/resume.pdf | Bin 61483 -> 0 bytes 6 files changed, 62 insertions(+), 20 deletions(-) delete mode 100644 static/resume.pdf diff --git a/README.md b/README.md index 3ca0091..1da6d39 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,11 @@ 1. ~~Write proper README.~~ 2. Projects Section 3. Papers Section -4. Remove side grid from front config file. > Add new scss and an if statement in head. ez. -5. Make footer configurable from config file. +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. +8. Add linkedin in resume header (?) > I'm open to suggestions or contributions. @@ -39,7 +42,6 @@ $ git clone https://gitlab.com/mertbakir/resume-a4.git * Enable/Disable Sections in ```config.toml``` * Set avatar link in ```config.toml```, keep your image under ```static``` folder if you want. -* Contacts, useFontAwesome, dateUpdated pparameters in the config file are used in footer only, not in the resume itself. * Save your resume as pdf, put it under ```static``` folder in root directory. Name the pdf as ```resume.pdf``` or set it's name to ```download``` param in ```config.yml```. # License diff --git a/assets/sass/_footer.scss b/assets/sass/_footer.scss index 8beb237..aa86bdb 100644 --- a/assets/sass/_footer.scss +++ b/assets/sass/_footer.scss @@ -1,13 +1,26 @@ footer { width: 8.25in; margin: 36px auto; - display: block; 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 { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 82617b6..be519f1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,11 +1,10 @@ baseURL = "/" languageCode = "en-us" -title = "Résumé | MERT BAKIR" +title = "Resume | MERT BAKIR" disableKinds = ["taxonomy", "term", "page", "section", "RSS", "sitemap", "robotsTXT", "404"] theme = "resume-A4" [params] -dateUpdated = "01 September, 2020" useFontAwesome = true avatar = "avatar.jpg" @@ -17,16 +16,30 @@ awards = true skills = true skills_grouped = false interests = true -contact = true +contact = false tagline = true -objective = true +objective = false projects = false papers = false avatar = true + +[params.display.footer] footer = true +links = true +credits = true + +[params.footer] +footnote = "You can print this resume in A4 size or save as pdf. | Last update on 01.09.2020." + +[params.footer.links] +[[params.footer.links.link]] +prefix = "Contact me on" +name = "Linkedin" +url = "https://www.linkedin.com/in/mertbakir/" +icon = "fab fa-linkedin" -[params.contacts] -linkedin = "https://www.linkedin.com/in/mertbakir/" -gitlab = "https://gitlab.com/mertbakir/resume-A4" -website = "https://mertbakir.gitlab.io/about/" -download = "resume.pdf" \ No newline at end of file +[[params.footer.links.link]] +prefix = "Check out my" +name = "Website" +url = "https://www.mertbakir.gitlab.io/about" +icon = "fas fa-globe" \ No newline at end of file diff --git a/layouts/home.html b/layouts/home.html index 0be6907..8b115fb 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -64,7 +64,7 @@ {{ end }} - {{ if .Site.Params.display.footer }} + {{ if .Site.Params.display.footer.footer }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 16249c6..86947fe 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,20 @@ -Last updated on {{ .Site.Params.dateUpdated }}
-This page is print friendly, you can print via your browser or Download -
-Contact me on Linkedin -| See, this project at GitLab -| Checkout my Website \ No newline at end of file +{{ if .Site.Params.display.footer.credits }} + +Resume-A4 project is open-sourced by Mert Bakır + +{{ 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/static/resume.pdf b/static/resume.pdf deleted file mode 100644 index c94527d..0000000 Binary files a/static/resume.pdf and /dev/null differ -- cgit v1.2.3