YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 2: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 3: Git Hub Pages

https://git-scm.com

Page 4: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 5: Git Hub Pages

https://github.com

Page 6: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 7: Git Hub Pages

https://pages.github.com

Page 8: Git Hub Pages

https://pages.github.com

Page 9: Git Hub Pages

https://jekyllrb.com

Page 10: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 11: Git Hub Pages

https://github.com/christophevg

Page 12: Git Hub Pages

http://christophe.vg

Page 13: Git Hub Pages
Page 14: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 15: Git Hub Pages

WORKS H O P

Page 16: Git Hub Pages

WORKS H O P?

!♥

#$

%

Page 17: Git Hub Pages

Com

plex

ity

18:30 19:00 19:30 20:00 20:30 21:00 21:30

GitGitHubGitHub Pages

HTML Markdown

Jekyll

Layouts

Includes

Data

CVblog

Filters

Page 18: Git Hub Pages

GitHub PagesGitHubGit

Christophe Van Ginneken

Page 19: Git Hub Pages
Page 20: Git Hub Pages

• visit https://github.com

• provide username, email, password

• provide profile information (or not)

• confirm email !

Page 21: Git Hub Pages
Page 22: Git Hub Pages

https://pages.github.com

Page 23: Git Hub Pages

christophevg.github.io

website

https://christophevg.github.io

https://christophevg.github.io/website

&

&

Page 24: Git Hub Pages

• create a new repository username.github.io

• create a new file index.html

• visit https://username.github.io

<html> <body> <h1>Christophe VG's website</h1> Welcome to my GitHub Pages website! </body> </html>

Page 25: Git Hub Pages

<HTML>&#x2639;

Page 26: Git Hub Pages
Page 27: Git Hub Pages

https://guides.github.com/features/mastering-markdown

Page 28: Git Hub Pages

Semantics

Page 29: Git Hub Pages

Semantics Styling

Page 30: Git Hub Pages
Page 31: Git Hub Pages
Page 32: Git Hub Pages

• create a new file _config.yml

• update index.html index.md

• visit https://username.github.io

--- --- # Christophe VG’s website Welcome to my GitHub Pages website! Using Markdown!

markdown: kramdown

don’t forget front matter

Page 33: Git Hub Pages

• create a new file _layouts/site.html

• update index.md

• visit https://username.github.io

<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <title>My Website!</title> </head> <body> {{ content }} </body> </html>

--- layout: site ---

just try it !

Page 34: Git Hub Pages

<HTML>&#x2639;

Page 35: Git Hub Pages

• “overwrite site” using “automatic page generator”

• steal content from index.html

• reuse it in _layouts/site.html

• delete index.html

• visit https://username.github.io

under settings

{{ content }}

Page 36: Git Hub Pages

https://github.com/mmistakes/minimal-mistakes

Page 37: Git Hub Pages
Page 38: Git Hub Pages
Page 39: Git Hub Pages
Page 40: Git Hub Pages
Page 41: Git Hub Pages

• add content to your website • extend index.md • create cv.md • upload a picture and add it to your site • start a blog • FIX stylesheet paths: add a leading “/“

• visit https://username.github.io

experiment

try things !

Page 42: Git Hub Pages
Page 43: Git Hub Pages
Page 44: Git Hub Pages
Page 45: Git Hub Pages

https://jekyllrb.com/docs/variables/

Page 46: Git Hub Pages

https://jekyllrb.com/docs/variables/

Page 47: Git Hub Pages

<ul>

{% for post in site.posts %}

<li>

<a href=“{{ post.url }}”>{{ post.title }}</a> {{ post.excerpt }}

</li>

{% endfor %}

</ul>

Page 48: Git Hub Pages

• create a new file_includes/posts.html

• create a new file_layouts/post.html

• change layout move titles to front matter(create excerpt)

• create a new fileblog/index.md

• visit https://username.github.io

<ul> {% for post in site.posts %} <li> <a href=“{{ post.url }}”>

{{ post.title }} </a>

{{ post.excerpt }} </li> {% endfor %} </ul>

--- layout: site --- # My Blog

{% include posts.html %}

--- layout: post title: First Post --- # First Post

--- layout: site --- <h2>{{ page.date }} - {{ page.title }}</h2> {{ content }}

Page 49: Git Hub Pages

• update_includes/posts.html

• updateindex.md

• add a few more blog entries

• improve date rendering in _layouts/post.html

• add date to index _includes/posts.html

• visit https://username.github.io

{% for post in site.posts limit: include.posts %}

{% include posts.html posts=“2” %}

{{ page.date | date_to_long_string }}

{{ post.date | date_to_string }} -<a href="{{ post.url }}">{{ post.title }}</a>

Page 50: Git Hub Pages
Page 51: Git Hub Pages

• create a new file_data/cv.yml

• updatecv.md

• visit https://username.github.io

- start: September 2015 end: August 2016 description: Embedded R&D Engineer company: University of Antwerp

- start: July 2014 end: August 2015 description: Researcher company: University of Leuven

{% for position in site.data.cv %}

## {{ position.description }} at {{ position.company }} {{ position.start }} - {{ position.end }}

{% endfor %}

Page 52: Git Hub Pages

• Slides http://www.slideshare.net/christophevg/git-hub-pages

• Git https://git-scm.com

• GitHub https://github.com

• GitHub Pages https://pages.github.com

• Markdown https://guides.github.com/features/mastering-markdown

• Jekyll https://jekyllrb.com (docs)

• Jekyll Template https://github.com/mmistakes/minimal-mistakes

[email protected]

@Christophe_VG

http://christophe.vgHave Fun

&

Good Luck ! '

(

&


Related Documents