Skip to content

Commit

Permalink
Implement certificates section
Browse files Browse the repository at this point in the history
Merge pull request #133 from maksymgendin/feature/132-certificates-section
  • Loading branch information
mudassir0909 authored Apr 3, 2021
2 parents ff72912 + 6a8bb3b commit c8db72d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ function render(resume) {
});
});

_(resume.certificates).forEach(c => {
const date = c.date;

if (date) {
c.date = utils.getFormattedDate(date, 'MMM DD, YYYY');
}
});

_(resume.awards).forEach(a => {
const date = a.date;

Expand Down Expand Up @@ -180,6 +188,7 @@ function getFloatingNavItems(resume) {
{label: 'Projects Experience', target: 'projects-experience', icon: 'code', requires: 'projects'},
{label: 'Skills', target: 'skills', icon: 'tools', requires: 'skills'},
{label: 'Education', target: 'education', icon: 'graduation-cap', requires: 'education'},
{label: 'Certificates', target: 'certificates', icon: 'profile', requires: 'certificates'},
{label: 'Awards', target: 'awards', icon: 'trophy', requires: 'awards'},
{label: 'Volunteer Work', target: 'volunteer-work', icon: 'child', requires: 'volunteer'},
{label: 'Publications', target: 'publications', icon: 'newspaper', requires: 'publications'},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"markdown-it-abbr": "^1.0.3",
"moment": "^2.22.2",
"pug": "^2.0.4",
"resume-schema": "0.1.3",
"resume-schema": "1.0.0",
"tarball-extract": "0.0.3",
"sshpk": ">=1.13.2",
"underscore": "^1.6.0"
Expand Down
1 change: 1 addition & 0 deletions pug/background-card.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ section.col-md-9.card-wrapper.pull-right
include background/projects-experience.pug
include background/skills.pug
include background/education.pug
include background/certificates.pug
include background/awards.pug
include background/volunteer-work.pug
include background/publications.pug
Expand Down
26 changes: 26 additions & 0 deletions pug/background/certificates.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
unless _.isEmpty(resume.certificates)
.detail#certificates
.icon
i.fs-lg.icon-profile
span.mobile-title Certificates

.info
h4.title.text-uppercase Certificates

.content
ul.list-unstyled.clear-margin
each certificate in resume.certificates
li.card.card-nested
.content
p.clear-margin(itemprop="certificate")
strong
if certificate.url
a(href=certificate.url, target="_blank")= certificate.name
|, 
else
|#{certificate.name + ', '}
|#{certificate.issuer}

p.text-muted
small
|Issued on: #{certificate.date}

0 comments on commit c8db72d

Please sign in to comment.