Skip to content

Commit

Permalink
Show post date and author
Browse files Browse the repository at this point in the history
Use a separate layout for posts
  • Loading branch information
paly2 committed Jun 10, 2017
1 parent 04f90c6 commit 836b423
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 19 deletions.
14 changes: 14 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% include header.html %}

<div class="jumbotron reduced">
<div class="center">
<h1>{{ page.title }}</h1>
</div>
</div>

<div class="content">
<p>Author: {{ page.author }}<br />Date: {{ page.date | date_to_string }}</p>
{{ content }}
</div>

{% include footer.html %}
14 changes: 14 additions & 0 deletions _layouts/post_fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% include header_fr.html %}

<div class="jumbotron reduced">
<div class="center">
<h1>{{ page.title }}</h1>
</div>
</div>

<div class="content">
<p>Auteur : {{ page.author }}<br />Date : {{ page.date | date_to_string }}</p>
{{ content }}
</div>

{% include footer_fr.html %}
5 changes: 3 additions & 2 deletions _posts/2017-06-05-new-website-released-fr.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: default_fr
layout: post_fr
tab: Blog
title: Nouveau site Web!
title: Nouveau site Web !
author: Upsilon
---

# Nouveau site Web!
Expand Down
3 changes: 2 additions & 1 deletion _posts/2017-06-05-new-website-released.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: default
layout: post
tab: Blog
title: New Website released!
author: Upsilon
---

# New Website released!
Expand Down
13 changes: 6 additions & 7 deletions _site/2017/06/05/new-website-released-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="icon" href="/media/logo_small.png">
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/style.css" rel="stylesheet">
<title>Nouveau site Web! - Eurythmia</title>
<title>Nouveau site Web ! - Eurythmia</title>
</head>

<body>
Expand Down Expand Up @@ -52,15 +52,14 @@
<div class="container-fluid">



<div class="jumbotron reduced">
<div class="center">
<h1>Nouveau site Web!</h1>
</div>
<div class="jumbotron reduced">
<div class="center">
<h1>Nouveau site Web !</h1>
</div>

</div>

<div class="content">
<p>Auteur : Upsilon<br />Date : 05 Jun 2017</p>
<h1 id="nouveau-site-web">Nouveau site Web!</h1>

<p>Notre souvent site Web a été terminé aujourd’hui. Il possède maintenant:</p>
Expand Down
11 changes: 5 additions & 6 deletions _site/2017/06/05/new-website-released.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@
<div class="container-fluid">



<div class="jumbotron reduced">
<div class="center">
<h1>New Website released!</h1>
</div>
<div class="jumbotron reduced">
<div class="center">
<h1>New Website released!</h1>
</div>

</div>

<div class="content">
<p>Author: Upsilon<br />Date: 05 Jun 2017</p>
<h1 id="new-website-released">New Website released!</h1>

<p>Our new website has been finished today. It features:</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/blog_fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1>Blog</h1>
<h1 id="blog">Blog</h1>

<ul>
<li>05 Jun 2017: <a href="/2017/06/05/new-website-released-fr.html">Nouveau site Web!</a></li>
<li>05 Jun 2017: <a href="/2017/06/05/new-website-released-fr.html">Nouveau site Web !</a></li>
</ul>


Expand Down
2 changes: 1 addition & 1 deletion blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Blog
# Blog

{% for post in site.posts %}
{% if post.layout == "default" %}
{% if post.layout == "post" %}
* {{ post.date | date_to_string }}: [{{ post.title }}]({{ post.url }})
{% endif %}
{% endfor %}
2 changes: 1 addition & 1 deletion blog_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Blog
# Blog

{% for post in site.posts %}
{% if post.layout == "default_fr" %}
{% if post.layout == "post_fr" %}
* {{ post.date | date_to_string }}: [{{ post.title }}]({{ post.url }})
{% endif %}
{% endfor %}

0 comments on commit 836b423

Please sign in to comment.