Skip to content

Commit 95c2ab2

Browse files
authored
feat: adhere Hugo theme requirements (#9)
* feat: adhere Hugo theme requirements Fix javascript bug when jQuery didn't load yet. Change exampleSite content to lorem ipsum. Edit README.md file and add formspree to Features sections. Add an option to enable/disable sections. BREAKING CHANGE: Add an option to disable/enable section - changed the content yaml structure. fix #8 * docs: fix all of the screenshots
1 parent 7655e7f commit 95c2ab2

File tree

20 files changed

+255
-223
lines changed

20 files changed

+255
-223
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
extended: true
1919

2020
- name: Hugo Build 🚧
21-
run: hugo --source=exampleSite --minify -v
21+
run: |
22+
sed -i 's/example.com/nirgn975.github.io\/devRes/g' exampleSite/config.toml
23+
hugo --source=exampleSite --minify -v
2224
2325
- uses: actions/checkout@v2
2426
- name: Set up Ruby 2.6

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# devRes Theme | Hugo
22

3-
[![CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-orange.svg)](http://creativecommons.org/licenses/by/4.0/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/nirgn975/devRes)](https://github.com/nirgn975/devRes/releases) ![Continuous Deployment](https://github.com/nirgn975/devRes/workflows/Continuous%20Deployment/badge.svg?branch=main) [![Hugo](https://img.shields.io/badge/Hugo-%5E0.41.0-ff4088?logo=hugo)](https://gohugo.io/) [![Donate](https://img.shields.io/badge/PayPal-Donate-lightgrey.svg)](https://www.paypal.me/nirgn/2)
3+
[![CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-orange.svg)](http://creativecommons.org/licenses/by/4.0/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/nirgn975/devRes)](https://github.com/nirgn975/devRes/releases) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![Continuous Deployment](https://github.com/nirgn975/devRes/workflows/Continuous%20Deployment/badge.svg?branch=main) [![Hugo](https://img.shields.io/badge/Hugo-%5E0.59.0-ff4088?logo=hugo)](https://gohugo.io/) [![Donate](https://img.shields.io/badge/PayPal-Donate-lightgrey.svg)](https://www.paypal.me/nirgn/2)
44

55
> A Hugo resume theme with a Developer focus in mind.
66
@@ -20,6 +20,7 @@ To see this theme in action, Here is a [live demo](https://nirgn975.github.io/de
2020
- Support [Google](https://analytics.google.com/analytics) and [Plausible](https://plausible.io) analytics.
2121
- Optimized for Performance, Accessibility, Best Practices, and SEO: 90+ (out of 100) on mobile and desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights).
2222
- **CDN** for all third-party libraries supported.
23+
- Automated contact form with [formspree](https://formspree.io).
2324

2425
## Getting started
2526

assets/javascript/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import * as params from '@params';
22

33
/**
4-
*
4+
* Get GitHub repos data.
55
*/
66
async function getReposData() {
7+
if (!params.projects.enable) {
8+
return;
9+
}
10+
711
for (repo of params.projects.repos) {
812
await fetch(`https://api.github.com/repos/${params.projects.githubUsername}/${repo.url}`)
913
.then(response => response.json())
@@ -21,7 +25,7 @@ async function getReposData() {
2125
return params.projects.repos;
2226
}
2327

24-
$(document).ready(function() {
28+
document.addEventListener("DOMContentLoaded", function(event) {
2529
const theme = localStorage.getItem('theme');
2630
if (theme == 'dark') {
2731
$('html').attr('data-theme', 'dark');

exampleSite/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "https://nirgn975.github.io/devRes/"
1+
baseURL = "https://example.com/"
22
languageCode = "en-us"
33
title = "DevRes"
44
theme = "devRes"
@@ -24,7 +24,7 @@ themesDir = "../.."
2424
[params.analytics]
2525
[params.analytics.plausible]
2626
enable = true
27-
domain = "nir.galon.io"
27+
domain = "johndoe.com"
2828
[params.analytics.google]
2929
enable = false
30-
id = "UA-87725724-1"
30+
id = "UA-xxxxxxxx-1"

exampleSite/data/content.yaml

Lines changed: 92 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ banner:
1313
text: Stack Overflow
1414

1515
aboutMe:
16+
enable: True
1617
text: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
1718
list:
1819
enable: True
@@ -21,88 +22,95 @@ aboutMe:
2122
- text: It was popularised in the 1960s with the release of Letraset sheets containing.
2223

2324
work:
24-
- position: Lead DevOps Engineer
25-
employerName: Google
26-
employerUrl: https://www.linkedin.com/company/google/
27-
timeStart: 01/2020
28-
timeEnd: Present
29-
text: Nullam aliquam ornare massa. Nulla eleifend viverra velit, et vehicula metus condimentum sit amet. Aliquam erat volutpat. Nam sit amet viverra orci. Nulla rutrum facilisis massa, vel tincidunt erat. Nam ante quam, ultricies eu dignissim quis, consequat non velit.
30-
list:
31-
enable: True
32-
items:
33-
- text: a tincidunt tortor dictum non. Phasellus lobortis leo risus, at malesuada eros rutrum non.
34-
- text: Quisque hendrerit hendrerit lectus.
35-
- text: Aliquam erat volutpat. Nam sit amet viverra orci. Nulla rutrum facilisis.
36-
- position: Software Engineer
37-
employerName: Facebook
38-
employerUrl: https://www.linkedin.com/company/facebook/
39-
timeStart: 02/2015
40-
timeEnd: 12/2019
41-
text:
42-
list:
43-
enable: True
44-
items:
45-
- text: Nam ornare sollicitudin mauris quis dignissim.
46-
- text: Mauris sed risus consectetur, rutrum urna a, dictum ex.
47-
- text: Aenean quam augue, suscipit quis nisl ut.
48-
- text: Donec a venenatis risus. Nullam gravida faucibus rhoncus. Fusce feugiat lectus sit amet fermentum maximus.
49-
- text: Aliquam pharetra arcu a lectus pharetra, eget mattis orci rutrum.
50-
- text: Duis interdum imperdiet porta.
51-
- text: Aenean quam augue, suscipit quis nisl ut, sodales sodales quam. Duis scelerisque feugiat tellus, ut rutrum dui tempus sed. Proin at sapien lorem.
25+
enable: True
26+
items:
27+
- position: Lead DevOps Engineer
28+
employerName: Google
29+
employerUrl: https://www.linkedin.com/company/google/
30+
timeStart: 01/2020
31+
timeEnd: Present
32+
text: Nullam aliquam ornare massa. Nulla eleifend viverra velit, et vehicula metus condimentum sit amet. Aliquam erat volutpat. Nam sit amet viverra orci. Nulla rutrum facilisis massa, vel tincidunt erat. Nam ante quam, ultricies eu dignissim quis, consequat non velit.
33+
list:
34+
enable: True
35+
items:
36+
- text: a tincidunt tortor dictum non. Phasellus lobortis leo risus, at malesuada eros rutrum non.
37+
- text: Quisque hendrerit hendrerit lectus.
38+
- text: Aliquam erat volutpat. Nam sit amet viverra orci. Nulla rutrum facilisis.
39+
- position: Software Engineer
40+
employerName: Facebook
41+
employerUrl: https://www.linkedin.com/company/facebook/
42+
timeStart: 02/2015
43+
timeEnd: 12/2019
44+
text:
45+
list:
46+
enable: True
47+
items:
48+
- text: Nam ornare sollicitudin mauris quis dignissim.
49+
- text: Mauris sed risus consectetur, rutrum urna a, dictum ex.
50+
- text: Aenean quam augue, suscipit quis nisl ut.
51+
- text: Donec a venenatis risus. Nullam gravida faucibus rhoncus. Fusce feugiat lectus sit amet fermentum maximus.
52+
- text: Aliquam pharetra arcu a lectus pharetra, eget mattis orci rutrum.
53+
- text: Duis interdum imperdiet porta.
54+
- text: Aenean quam augue, suscipit quis nisl ut, sodales sodales quam. Duis scelerisque feugiat tellus, ut rutrum dui tempus sed. Proin at sapien lorem.
5255

5356
education:
54-
- course: Deep Learning Foundations
55-
schoolName: Udacity
56-
schoolUrl: https://www.udacity.com
57-
timeStart: 01/2017
58-
timeEnd: 08/2017
59-
text: A nanodegree program at Udacity
60-
list:
61-
enable: True
62-
items:
63-
- text: "The <a href='https://www.udacity.com/course/deep-learning-nanodegree-foundation--nd101' target='_blank'>program syllabus</a> include: Neural Networks, Convolutional Neural Networks, Recurrent Neural Networks, Generative Adversarial Networks"
64-
- text: The 5 projects I built during the program - <a href="https://github.com/nirgn975/DLND" target="_blank">GitHub</a>
65-
- course: Bachelor of Science (BSc) in Computer Science
66-
schoolName: MIT - Massachusetts Institute of Technology
67-
schoolUrl: https://www.linkedin.com/school/mit/
68-
timeStart: 06/2011
69-
timeEnd: 06/2014
70-
text:
71-
list:
72-
enable: True
73-
items:
74-
- text: Major in distributed computing systems.
75-
- text: 3.8 GPA
57+
enable: True
58+
items:
59+
- course: Deep Learning Foundations
60+
schoolName: Udacity
61+
schoolUrl: https://www.udacity.com
62+
timeStart: 01/2017
63+
timeEnd: 08/2017
64+
text: A nanodegree program at Udacity
65+
list:
66+
enable: True
67+
items:
68+
- text: "The <a href='https://www.udacity.com/course/deep-learning-nanodegree-foundation--nd101' target='_blank'>program syllabus</a> include: Neural Networks, Convolutional Neural Networks, Recurrent Neural Networks, Generative Adversarial Networks"
69+
- text: The 5 projects I built during the program - <a href="https://github.com/nirgn975/DLND" target="_blank">GitHub</a>
70+
- course: Bachelor of Science (BSc) in Computer Science
71+
schoolName: MIT - Massachusetts Institute of Technology
72+
schoolUrl: https://www.linkedin.com/school/mit/
73+
timeStart: 06/2011
74+
timeEnd: 06/2014
75+
text:
76+
list:
77+
enable: True
78+
items:
79+
- text: Major in distributed computing systems.
80+
- text: 3.8 GPA
7681

7782
skills:
78-
- family: FrontEnd
79-
items:
80-
- icon: <span class="devicons devicons-html5"></span>
81-
text: HTML
82-
- icon: <span class="devicons devicons-sass"></span>
83-
text: CSS / SCSS (Bootstrap, Material Design)
84-
- icon: <span class="devicons devicons-nodejs_small"></span>
85-
text: JavaScript (jQuery, Ajax)
86-
- icon: <span class="devicons devicons-angular"></span>
87-
text: Angular
88-
- family: BackEnd
89-
items:
90-
- icon: <span class="devicons devicons-nodejs"></span>
91-
text: Node.js (TypeScript, Express.js, NestJS, Mocha)
92-
- icon: <span class="devicons devicons-python"></span>
93-
text: Python (Django, Sanic)
94-
- icon: <span class="devicons devicons-go"></span>
95-
text: Golang
96-
- family: Platforms
97-
items:
98-
- icon: <span class="devicons devicons-linux"></span>
99-
text: Linux
100-
- icon: <span class="devicons devicons-git"></span>
101-
text: Git
102-
- icon: <span class="devicons devicons-github_badge"></span>
103-
text: GitHub
83+
enable: True
84+
items:
85+
- family: FrontEnd
86+
items:
87+
- icon: <span class="devicons devicons-html5"></span>
88+
text: HTML
89+
- icon: <span class="devicons devicons-sass"></span>
90+
text: CSS / SCSS (Bootstrap, Material Design)
91+
- icon: <span class="devicons devicons-nodejs_small"></span>
92+
text: JavaScript (jQuery, Ajax)
93+
- icon: <span class="devicons devicons-angular"></span>
94+
text: Angular
95+
- family: BackEnd
96+
items:
97+
- icon: <span class="devicons devicons-nodejs"></span>
98+
text: Node.js (TypeScript, NestJS, Mocha)
99+
- icon: <span class="devicons devicons-python"></span>
100+
text: Python (Django, Sanic)
101+
- icon: <span class="devicons devicons-go"></span>
102+
text: Golang
103+
- family: Platforms
104+
items:
105+
- icon: <span class="devicons devicons-linux"></span>
106+
text: Linux
107+
- icon: <span class="devicons devicons-git"></span>
108+
text: Git
109+
- icon: <span class="devicons devicons-github_badge"></span>
110+
text: GitHub
104111

105112
projects:
113+
enable: True
106114
githubUsername: nirgn975
107115
repos:
108116
- url: generator-jekyll-starter-kit
@@ -113,16 +121,19 @@ projects:
113121
name: Developer Resume
114122

115123
blog:
124+
enable: False
116125
url: https://lifelongstudent.io
117126
sitemapUrl: https://lifelongstudent.io/index.xml
118127
numberOfPosts: 2
119128

120129
talks:
121-
- title: "The future of blogging is with Hugo"
122-
cover: img/talks/hugo-blogging.webp
123-
date: 4/12/19
124-
meetupUrl: https://www.meetup.com
125-
downloadLink: https://github.com/nirgn975/devRes
130+
enable: True
131+
items:
132+
- title: "The future of blogging is with Hugo"
133+
cover: img/talks/hugo-blogging.webp
134+
date: 4/12/19
135+
meetupUrl: https://www.meetup.com
136+
downloadLink: https://github.com/nirgn975/devRes
126137

127138
contact:
128139
formspreeUrl: https://formspree.io/[email protected]
-110 Bytes
Loading

images/screenshot.png

663 KB
Loading

images/screenshot.psd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:37f848b3514fbd82f7377ae729109a928c86da5bab608d70546f9356388455cb
3-
size 122186390
2+
oid sha256:ea50c459ccc7860a38747d458ea9d5034d3d1af64fa9fbdfa992b17c23e1fff6
3+
size 269173034

images/screenshot.webp

-32.6 KB
Loading

images/tn.png

312 KB
Loading

0 commit comments

Comments
 (0)