Compare commits

...

11 Commits

Author SHA1 Message Date
8b27f9b641 Readme updates 2024-01-31 12:58:06 -08:00
4fcc0856d1 Clean up template 2024-01-31 12:55:06 -08:00
Denny Britz
558eca2e63 Move some stuff. 2017-08-23 13:48:12 +08:00
Denny Britz
c35398e25c Add support for projects 2017-03-27 11:51:24 -07:00
Graeme Maciver
1dc7aa7038 version update to try force cdn refresh 2016-04-02 08:57:34 +01:00
Graeme Maciver
b30fe5f923 updating version 2016-03-31 16:02:44 +01:00
Graeme Maciver
e0c130ebf9 pragraphs on summary text 2016-03-31 16:02:26 +01:00
Graeme Maciver
535833ff30 fixing css fonts issue 2016-03-31 14:27:33 +01:00
Graeme Maciver
33a14fa3aa skill style fixes 2014-11-23 13:08:03 +00:00
Graeme Maciver
ad513ec482 package update, slight style fies 2014-11-23 13:01:17 +00:00
Graeme Maciver
8273e1af43 package update 2014-11-22 19:08:25 +00:00
6 changed files with 157 additions and 62 deletions

View File

@@ -1,23 +1,16 @@
# Boilerplate theme [![](https://badge.fury.io/js/jsonresume-theme-boilerplate.png)](https://www.npmjs.org/package/jsonresume-theme-boilerplate)
This is the boilerplate theme for [JSON Resume](http://jsonresume.org/).
# Jsonresume Short Theme
## Getting started
To get started with theme development, this is what you'll need:
- [node.js](http://howtonode.org/how-to-install-nodejs)
- [npm](http://howtonode.org/introduction-to-npm)
- yarn
If you're on Linux, you can simply run:
If you're on Arch Linux, you can simply run:
```
sudo apt-get install nodejs-legacy npm
```
Or if you're on OSX and got [Homebrew](http://brew.sh/) installed:
```
brew install node
sudo pacman -S yarn
```
### Install the command line
@@ -39,7 +32,7 @@ Lets go ahead and download a [copy of the repository](https://github.com/jsonres
We need to install the dependencies. `cd` into the theme folder we just downloaded and run:
```bash
sudo npm install
yarn global add $PWD
```
This will read the local `package.json` and install the packages listed under `dependencies`.

View File

@@ -20,6 +20,17 @@ function render(resume) {
});
}
Handlebars.registerHelper('paragraphSplit', function(plaintext) {
var i, output = '',
lines = plaintext.split(/\r\n|\r|\n/g);
for (i = 0; i < lines.length; i++) {
if(lines[i]) {
output += '<p>' + lines[i] + '</p>';
}
}
return new Handlebars.SafeString(output);
});
module.exports = {
render: render
};

62
package-lock.json generated Normal file
View File

@@ -0,0 +1,62 @@
{
"name": "jsonresume-theme-short",
"version": "0.1.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"amdefine": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
"optional": true
},
"async": {
"version": "0.2.10",
"resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz",
"integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=",
"optional": true
},
"handlebars": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-2.0.0.tgz",
"integrity": "sha1-bp1/hRSjRn+l6fgswVjs/B1ax28=",
"requires": {
"optimist": "0.3.7",
"uglify-js": "2.3.6"
}
},
"optimist": {
"version": "0.3.7",
"resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz",
"integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=",
"requires": {
"wordwrap": "0.0.3"
}
},
"source-map": {
"version": "0.1.43",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
"integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
"optional": true,
"requires": {
"amdefine": "1.0.1"
}
},
"uglify-js": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.3.6.tgz",
"integrity": "sha1-+gmEdwtCi3qbKoBY9GNV0U/vIRo=",
"optional": true,
"requires": {
"async": "0.2.10",
"optimist": "0.3.7",
"source-map": "0.1.43"
}
},
"wordwrap": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
"integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="
}
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "jsonresume-theme-short",
"version": "0.1.1",
"version": "0.1.7",
"description": "Simple to the point theme for JSON Resume",
"author": "Graeme Maciver",
"repository": {

View File

@@ -46,11 +46,10 @@
{{#if summary}}
<p>{{summary}}</p>
<p>{{paragraphSplit summary}}</p>
{{/if}}
{{#if profiles.length}}
<section id="profiles">
{{#each profiles}}
<div class="profile">
{{#if network}}
@@ -69,12 +68,36 @@
{{/if}}
</div>
{{/each}}
</section>
{{/if}}
</section>
{{/resume.basics}}
{{#if resume.publications.length}}
<section id="publications">
<h2>Academic Publications</h2>
{{#each resume.publications}}
<div class="item">
{{#if name}}
<div class="name">
{{name}}
</div>
{{/if}}
{{#if authors}}
<div class="authors">
{{authors}}
</div>
{{/if}}
{{#if venue}}
<div class="venue">
{{venue}}
</div>
{{/if}}
</div>
{{/each}}
</section>
{{/if}}
{{#if resume.skills.length}}
<section id="skills">
<h2>Skills</h2>
@@ -103,8 +126,8 @@
{{#each resume.work}}
<section class="item">
<header>
{{#if company}}
<h3 class="name">{{company}}</h3>
{{#if name}}
<h3 class="name">{{name}}</h3>
{{/if}}
</header>
{{#if position}}
@@ -130,7 +153,7 @@
{{#if summary}}
<div class="summary">
<p>{{summary}}</p>
<p>{{paragraphSplit summary}}</p>
</div>
{{/if}}
{{#if highlights.length}}
@@ -145,6 +168,37 @@
</section>
{{/if}}
{{#if resume.projects.length}}
<section class="experience">
<h2>Projects</h2>
{{#each resume.projects}}
<header>
{{#if name}}
<h3 class="name">
{{#if url}}
<a href="{{url}}">{{name}}</a>
{{else}}
{{name}}
{{/if}}
</h3>
{{/if}}
</header>
{{#if description}}
<div class="summary">
<p>{{paragraphSplit description}}</p>
</div>
{{/if}}
{{#if highlights.length}}
<ul class="highlights">
{{#each highlights}}
<li>{{.}}</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
</section>
{{/if}}
{{#if resume.volunteer.length}}
<section class="experience">
<h2>Volunteering</h2>
@@ -276,41 +330,6 @@
</section>
{{/if}}
{{#if resume.publications.length}}
<section id="publications">
<h2>Publications</h2>
{{#each resume.publications}}
<div class="item">
{{#if name}}
<div class="name">
{{name}}
</div>
{{/if}}
{{#if publisher}}
<div class="publisher">
{{publisher}}
</div>
{{/if}}
{{#if releaseDate}}
<div class="releaseDate">
{{releaseDate}}
</div>
{{/if}}
{{#if website}}
<div class="website">
<a href="{{website}}">Link</a>
</div>
{{/if}}
{{#if summary}}
<div class="summary">
<p>{{summary}}</p>
</div>
{{/if}}
</div>
{{/each}}
</section>
{{/if}}
{{#if resume.languages.length}}
<section id="languages">
<h2>Languages</h2>

View File

@@ -1,6 +1,6 @@
body {
background: #fff;
font: 16px 'Open Sans' Helvetica, Arial, sans-serif;
font: 16px 'Open Sans', Helvetica, Arial, sans-serif;
line-height: 1.4;
margin: 0 0;
margin-bottom: 100px;
@@ -30,7 +30,7 @@ blockquote {
}
#resume {
margin: 2em 2em 2em 2.5em;
max-width: 960px;
max-width: 760px;
}
/* Resume heading */
@@ -54,13 +54,14 @@ blockquote {
margin: 0 1em 0 0;
}
#profiles .profile {
.profile {
display: inline-block;
margin: 0 1em 0 0;
}
#profiles .profile strong,
#profiles .profile span {
.profile strong,
.profile span {
display: inline-block;
margin: 0 1em 0 0;
}
/* section / line breaks */
@@ -112,10 +113,9 @@ section h2 {
/* skills */
#skills .item {
margin: 0.4em 0;
padding: 0;
margin: 0.5em 0;
padding: 0 0 0.5em;
font-size: 90%;
border-bottom: 0;
}
#skills .item .name {
@@ -123,10 +123,14 @@ section h2 {
display: inline-block;
text-transform: uppercase;
margin: 0 1em 0 0;
width: 23%;
vertical-align: top;
}
#skills .item .keywords {
display: inline-block;
width: 70%;
vertical-align: top;
}
/* education */
@@ -137,4 +141,10 @@ section h2 {
border-bottom: 0;
}
#publications .authors {
font-size: 0.8em;
}
#publications .venue {
font-size: 0.8em;
}