Skip to content

Instantly share code, notes, and snippets.

@jacquesbh
Last active December 11, 2015 01:49
Show Gist options
  • Save jacquesbh/4526322 to your computer and use it in GitHub Desktop.
Save jacquesbh/4526322 to your computer and use it in GitHub Desktop.
title layout published tags
Mon premier article !
post
2013-01-13 14:00:00 -0800
foo
bar
baz

Super :)

title layout published tags
Mon second article !
post
2013-01-13 15:00:00 -0800
foo
bar

contemplons ce trésor de grâces florentines dans l'ondulation de ce corps musculeux l'elégance et la force abondent soeurs divines cette femme morceau vraiment miraculeux divinement robuste adorablement mince est faite pour trôner sur des lits somptueux et charmer les loisirs d'un pontife ou d'un prince aussi vois ce souris fin et voluptueux ou la fatuité promene son extase ce long regard sournois langoureux et moqueur ce visage mignard tout encadré de gaze dont chaque trait nous dit avec un air vainqueur «la volupté m'appelle et l'amour me couronne» a cet etre doué de tant de majesté vois quel charme excitant la gentillesse donne approchons et tournons autour de sa beauté ô blaspheme de l'art ô surprise fatale la femme au corps divin promettant le bonheur par le haut se termine en monstre bicéphale mais non ce n'est qu'un masque un décor suborneur ce visage éclairé d'une exquise grimace et regarde voici crispée atrocement la véritable tete et la sincere face renversée a l'abri de la face qui ment pauvre grande beauté le magnifique fleuve de tes pleurs aboutit dans mon coeur soucieux ton mensonge m'enivre et mon âme s'abreuve aux flots que la douleur fait jaillir de tes yeux

# The articles links
# https://github.com/mojombo/jekyll/wiki/Permalinks
permalink: pretty
# Publish future articles?
future: false
# Files to exclude
exclude: ["README.md", "CNAME"]
# Markdown engine
markdown: rdiscount
# Language
lang: fr
# Page size
paginate: 5
# Production URL
production_url : http://example.org
<!DOCTYPE html>
<html lang="fr">
{% include head.html %}
<body class="layout-{{ page.layout }}">
{% include header.html %}
{{ content }}
{% include footer.html %}
</body>
</html>
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
{% if page.description %} <meta name="description" content="{{ page.description }}">{% endif %}
{% if page.keywords %} <meta name="keywords" content="{{ page.keywords }}">{% endif %}
<link href="/css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" ></script>
<script type="text/javascript" src="/js/event.js" ></script>
</head>
<header>
{% if page.layout == "post" %}<a href="{{ site.production_url }}">Mon super site !</a>{% else %}<h1>Mon super site !</h1>{% endif %}
</header>
---
title: "Mon premier post"
layout: post
published: 2013-01-15 16:00:00
tags: [tag1, tag2, tag3]
---
---
title: Un blog avec Jekyll !
layout: default
---
<ul id="articles">
{% for post in paginator.posts %}
<li><a href="{{ site.production_url}}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<div id="pagination">
{% if paginator.total_pages > 1 %}{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}<a href="/" class="previous">Précédent</a>
{% else %}<a href="/page{{ paginator.previous_page }}" class="previous">Précédent</a>{% endif %}
{% endif %}{% endif %}
<span class="summary">Page {{paginator.page}} sur {{paginator.total_pages}}</span>
{% if paginator.total_pages > 1 %}{% if paginator.next_page and paginator.total_pages > 1 %}
– <a href="/page{{ paginator.next_page }}" class="next">Suivant</a>
{% endif %}{% endif %}
</div>
mkdir _layouts _includes _posts
mkdir css js images
touch _config.yml
echo "/_site" >> .gitignore
<!DOCTYPE html>
<html lang="fr">
{% include head.html %}
<body class="layout-{{ page.layout }}">
{% include header.html %}
<h1>{{ page.title }}</h1>
{{ content }}
{% include footer.html %}
</body>
</html>
---
title: Mes tags
layout: default
permalink: tags.html
---
<ul>
{% for tag in site.tags %}
<li>
<strong>{{ tag[0] }}</strong> <small>({{ tag[1].size }} article{% if tag[1].size > 1 %}s{% endif %})</small>
<ul>
{% for post in tag[1] %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment