Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added navigation at index.md and legal variable to layout cv #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_site/
.sass-cache/
.sass-cache/
.jekyll-cache/
48 changes: 34 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,80 @@ For more details, see the [project page](http://elipapa.github.io/markdown-cv),

***

Extended version:
- added multiple CV support, now INDEX.md defines the navigation hub. To edit CV look at **_includes/cv_content.md**
- added **legal** variable that generates additional info personalized for your employer in one paragraf

this README.md file was edited by me to accomodate those changes.

...Jacek

***

## Customization

Simply [fork the markdown-cv repo](https://github.com/elipapa/markdown-cv)

![](https://help.github.com/assets/images/help/repository/fork_button.jpg)

and edit the `index.md` file [directly in Github](https://help.github.com/articles/editing-files-in-your-repository/)
and edit the `_includes/cv_content.md` file [directly in Github](https://help.github.com/articles/editing-files-in-your-repository/)

![](https://help.github.com/assets/images/help/repository/edit-file-edit-button.png)

adding your skills, jobs and education.

![](https://help.github.com/assets/images/help/repository/edit-readme-light.png)

## Distribution

To transform your plain text CV into a beautiful and shareable HTML page, you have two options:
after that you can create multiple cvs, via adding them in __posts using `YEAR-MONTH-DAY-name-.md`. All created cvs should appear at index.html page. They include **legal** variable, and content of file will be appear on the middle (below cv_content.md and above legal variable) of your cv page.

### I. Use Github Pages to publish it online

1. Delete the existing `gh-pages` branch from your fork. It will only contain this webpage. You can either use git or [the Github web interface](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#deleting-a-branch).
2. Create a new branch called `gh-pages`.
3. Head to *yourusername*.github.io/markdown-cv to see your CV live.
## Distribution

Any change you want to make to your CV from then on would have to be done on the `gh-pages` branch and will be immediately rendered by Github Pages.
To transform your plain text CV into a beautiful and shareable HTML page, you have two options below. With this extended version I highly suggest using local build and printing.

### II. Build it locally and print a PDF
### I. Build it locally and print a PDF

1. To [install jekyll](https://jekyllrb.com/docs/installation/), run `gem install bundler jekyll` from the command line.
3. [Clone](https://help.github.com/en/articles/cloning-a-repository) your fork of markdown-cv to your local machine.
3. Type `jekyll serve` to render your CV at http://localhost:4000.
4. You can edit the `index.md` file and see the changes live in your browser.
5. To print a PDF, press <kbd>⌘</kbd> + <kbd>p</kbd>. Print and web CSS media queries should take care of the styling.

### II. Use Github Pages to publish it online

1. Delete the existing `gh-pages` branch from your fork. It will only contain this webpage. You can either use git or [the Github web interface](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#deleting-a-branch).
2. Create a new branch called `gh-pages`.
3. Head to *yourusername*.github.io/markdown-cv to see your CV live.

Any change you want to make to your CV from then on would have to be done on the `gh-pages` branch and will be immediately rendered by Github Pages.

## Styling

The included CSS will render your CV in two styles:
s
The included CSS will render your CV in three styles:

1. `kjhealy` the original default, inspired by [kjhealy's vita
template](https://github.com/kjhealy/kjh-vita).
2. `davewhipp` is a tweaked version of `kjhealy`, with bigger fonts and dates
right aligned.
3. `jacekwozniak` is extended version of those two before mentioned.

In addition all styles got new `hide-print` class.

To change the default style, simply change the variable in the
`_config.yml` file.

Any other styling is possible. More CSS style contributions and forks are welcome!
Any other styling is possible. More CSS style contributions and forks are welcome!

### Author

Eliseo Papa ([Twitter](http://twitter.com/elipapa)/[Github](http://github.com/elipapa)/[Website](https://elipapa.github.io)).


![Eliseo Papa](https://s.gravatar.com/avatar/eae1f0c01afda2bed9ce9cb88f6873f6?s=100)


Extended by Jacek Woźniak [Website](https://jacekwozniak12.github.io/)


### License

[MIT License](https://github.com/elipapa/markdown-cv/blob/master/LICENSE)
89 changes: 89 additions & 0 deletions _includes/cv_content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@


# Isaac Newton
Physicist, Mathematician, Cambridge professor.

<div id="webaddress">
<a href="[email protected]">[email protected]</a>
| <a href="http://en.wikipedia.org/wiki/Isaac_Newton">My wikipedia page</a>
</div>


## Currently

Standing on the shoulders of giants

### Specialized in

Laws of motion, gravitation, minting coins, disliking [Robert Hooke](http://en.wikipedia.org/wiki/Robert_Hooke)


### Research interests

Cooling, power series, optics, alchemy, planetary motions, apples.


## Education

`1654-1660`
__The King's School, Grantham.__

`June 1661 - now`
__Trinity College, Cambridge__

- Sizar

`1667 - death`
__Trinity College, Cambridge__

- Fellow



## Awards

`2012`
President, *Royal Society*, London, UK

Associate, *French Academy of Science*, Paris, France



## Publications

<!-- A list is also available [online](http://scholar.google.co.uk/citations?user=LTOTl0YAAAAJ) -->

### Journals

`1669`
Newton Sir I, De analysi per æquationes numero terminorum infinitas.

`1669`
Lectiones opticæ.

etc. etc. etc.

### Patents

`2012`
Infinitesimal calculus for solutions to physics problems, [SMBC](http://www.techdirt.com/articles/20121011/09312820678/if-patents-had-been-around-time-newton.shtml) patent 001


## Occupation

`1600`
__Royal Mint__, London

- Warden
- Minted coins

`1600`
__Lucasian professor of Mathematics__, Cambridge University



<!-- ### Footer

Last updated: May 2013 -->


31 changes: 27 additions & 4 deletions _layouts/cv.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,39 @@
<!doctype html>
<!DOCTYPE html>
<html>

<head>
<meta charset=utf-8 />
<title> {% if page.title %} {{ page.title }} | {% endif %} CV</title>
<link href="media/{{ site.style }}-screen.css" type="text/css" rel="stylesheet" media="screen">
<link href="media/{{ site.style }}-print.css" type="text/css" rel="stylesheet" media="print">
<link href="/media/{{ site.style }}-screen.css" type="text/css" rel="stylesheet" media="screen">
<link href="/media/{{ site.style }}-print.css" type="text/css" rel="stylesheet" media="print">
</head>

<body>
<a href="/index.html" class="hide-print">Return to cvs</a>
<br>
<br>
<div id="main">
<div id="content">
{{ content }}
{% capture index %}
{% include cv_content.md %}
{% endcapture%}

{{ index | markdownify}}

<!-- Here comes additional content from post file-->
{{ content }}

{% if page.legal %}
<h2>
Legal
</h2>
<p>
{{page.legal}}
</p>
{% endif %}

</div>
</div>
</body>

</html>
26 changes: 26 additions & 0 deletions _layouts/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cvs</title>
<link rel="stylesheet" href="/media/nav.css">
</head>


<body>
<div class="nav">
<h1>CVs rendered</h1>
<ul>
{% for item in site.posts %}
<li>
<a href="{{ item.url }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</body>

</html>
4 changes: 4 additions & 0 deletions _posts/2022-04-27-einstein.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: cv
legal: einstein
---
4 changes: 4 additions & 0 deletions _posts/2022-04-27-newton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: cv
legal: newton
---
92 changes: 2 additions & 90 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,3 @@
---
layout: cv
title: Isaac Newtons's CV
---
# Isaac Newton
Physicist, Mathematician, Cambridge professor.

<div id="webaddress">
<a href="[email protected]">[email protected]</a>
| <a href="http://en.wikipedia.org/wiki/Isaac_Newton">My wikipedia page</a>
</div>


## Currently

Standing on the shoulders of giants

### Specialized in

Laws of motion, gravitation, minting coins, disliking [Robert Hooke](http://en.wikipedia.org/wiki/Robert_Hooke)


### Research interests

Cooling, power series, optics, alchemy, planetary motions, apples.


## Education

`1654-1660`
__The King's School, Grantham.__

`June 1661 - now`
__Trinity College, Cambridge__

- Sizar

`1667 - death`
__Trinity College, Cambridge__

- Fellow



## Awards

`2012`
President, *Royal Society*, London, UK

Associate, *French Academy of Science*, Paris, France



## Publications

<!-- A list is also available [online](http://scholar.google.co.uk/citations?user=LTOTl0YAAAAJ) -->

### Journals

`1669`
Newton Sir I, De analysi per æquationes numero terminorum infinitas.

`1669`
Lectiones opticæ.

etc. etc. etc.

### Patents

`2012`
Infinitesimal calculus for solutions to physics problems, [SMBC](http://www.techdirt.com/articles/20121011/09312820678/if-patents-had-been-around-time-newton.shtml) patent 001


## Occupation

`1600`
__Royal Mint__, London

- Warden
- Minted coins

`1600`
__Lucasian professor of Mathematics__, Cambridge University



<!-- ### Footer

Last updated: May 2013 -->


layout: nav
---
5 changes: 4 additions & 1 deletion media/davewhipp-print.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,8 @@ strong {
visibility: hidden;
}


.hide-print
{
display: none;
}

Loading