Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormertbakir <2335694-mertbakir@users.noreply.gitlab.com>2021-02-13 14:10:13 +0300
committermertbakir <mertbakxr@gmail.com>2021-02-13 14:13:08 +0300
commit38253c1174021bdda4e2c327a5e7d6539145313d (patch)
tree41a73ef6149ef221fcf227ea073d83cc8d9f90a0
parent40b9aeb26cb04c7bf0edad3e8124b969dad342ca (diff)
Publications section added.
-rw-r--r--README.md15
-rw-r--r--exampleSite/config.toml5
-rw-r--r--exampleSite/data/publications.yaml12
-rw-r--r--layouts/home.html4
-rw-r--r--layouts/partials/publications.html56
-rw-r--r--layouts/partials/wip/papers.html0
6 files changed, 79 insertions, 13 deletions
diff --git a/README.md b/README.md
index 515c8b2..3796797 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,11 @@
-# To Do:
-
-1. Papers Section
-2. Remove side grid from front config file. [?] > Add new scss and an if statement in head. Should be easy, but I'm not sure if ```/resources``` dependency of theme will be a problem.
-3. [Here is the blog post](https://mertbakir.gitlab.io/projects/resume-a4/)
-
-> _I'm open to suggestions and contributions._
-
# Features
* Simple, easy to use, single 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.
-* Configure sections from ```config.toml```.
+* 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```.
# How To Use
@@ -38,11 +31,15 @@ $ 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.
+* 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.
+* [Here is the blog post](https://mertbakir.gitlab.io/projects/resume-a4/) about this project.
# License
This project is open-sourced and licensed under the terms of the MIT license. I would be happy though, if you give attribution. <3
+> _I'm open to suggestions and contributions._
+
# My Work Flow
1. Make changes.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index ca6f184..eba26f4 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,6 +7,7 @@ theme = "resume-A4"
[params]
useFontAwesome = true
avatar = "avatar.jpg"
+bib_style = "IEEE" # IEEE, APA, else
[params.display]
experience = true
@@ -21,7 +22,7 @@ linkedin = false
tagline = true
aboutMe = false
projects = false
-papers = false
+publications = false
certificates = true
avatar = true
@@ -34,7 +35,7 @@ skills = "Skills"
certificates = "Certifications"
interests = "Interests"
about_me = "About Me"
-papers = "Academic"
+publications = "Publications"
projects = "Projects"
[params.display.footer]
diff --git a/exampleSite/data/publications.yaml b/exampleSite/data/publications.yaml
new file mode 100644
index 0000000..bba012e
--- /dev/null
+++ b/exampleSite/data/publications.yaml
@@ -0,0 +1,12 @@
+- authors:
+ - last_name: Dantzing
+ first_name: George
+ - last_name: Sunstrider
+ middle_name: "Felo'melorn"
+ first_name: Kael'thas
+ date: "2006"
+ title: "Additive Outlier Detection Via Extreme-Value Theory"
+ journal: Journal of Time Series Analysis
+ vol: 27
+ issue: 5
+ page: "29-34" \ No newline at end of file
diff --git a/layouts/home.html b/layouts/home.html
index 3132359..1e6973d 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -32,8 +32,8 @@
{{ partial "projects" . }}
{{ end }}
- {{ if .Site.Params.display.papers }}
- {{ partial "papers" . }}
+ {{ if .Site.Params.display.publications }}
+ {{ partial "publications" . }}
{{ end }}
{{ if .Site.Params.display.certificates }}
diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html
new file mode 100644
index 0000000..84e8bca
--- /dev/null
+++ b/layouts/partials/publications.html
@@ -0,0 +1,56 @@
+<div class="section">
+ <h1 class="section-title">{{ .Site.Params.title_as.publications }}</h1>
+ {{ range .Site.Data.publications }}
+ <div class="item">
+ {{ if eq $.Site.Params.bib_style "IEEE" }}
+ <span>
+ {{ range .authors }}
+ {{ substr .first_name 0 1 }}.
+ {{ with .middle_name}}{{ substr . 0 1 }}.{{end}}
+ {{ .last_name }},
+ {{ end }}
+ </span> <span>"{{ .title }}",</span>
+ {{ if .journal }}
+ <span>{{ .journal }}</span>,
+ {{ with .vol }}
+ <span>vol. {{.}}</span>,
+ {{ end }}
+ {{ with .page }}
+ <span>pp. {{.}}</span>,
+ {{ end }}
+ {{ end }}
+ <span>{{ .date }}</span>.
+
+ {{ else if eq $.Site.Params.bib_style "APA" }}
+ <span>
+ {{ $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 }}
+ <span>({{ .date }}).</span>
+ </span>
+ <span>{{ .title }}.</span>
+ {{ if .journal }}
+ <span>{{ .journal }}</span>
+ {{- if .vol -}}
+ <span>, {{.vol}}{{if .issue}}({{.issue}}){{end}}</span>,
+ {{- end -}}
+ {{ with .page }}
+ <span>{{.}}</span>
+ {{ end }}
+ {{ end }}.
+
+ {{ else }}
+ {{ range .authors }}
+ {{ .last_name }} {{ substr .first_name 0 1 }}.
+ {{ end }}
+
+ {{ .title }}
+ {{ .date }}.
+ {{ end }}
+ </div>
+ {{ end }}
+</div> \ No newline at end of file
diff --git a/layouts/partials/wip/papers.html b/layouts/partials/wip/papers.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/wip/papers.html
+++ /dev/null