Commit 4a8ebb70e7e508ba16f5842e6cc25b4fb3306b7e
1 parent
a1c0e1c1
Navigation vers CR suivant/précédent
Showing
2 changed files
with
31 additions
and
0 deletions
Show diff stats
_layouts/cr.html
@@ -2,6 +2,19 @@ | @@ -2,6 +2,19 @@ | ||
2 | layout: default | 2 | layout: default |
3 | --- | 3 | --- |
4 | <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> | 4 | <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> |
5 | + <div class="page-nav"> | ||
6 | + <span> | ||
7 | + {% if page.next.url %} | ||
8 | + <a class="next" href="{{page.next.url}}">« {% include date.html date=page.next.date %}</a> | ||
9 | + {% endif %} | ||
10 | + </span> | ||
11 | + <span class="prev"> | ||
12 | + {% if page.previous.url %} | ||
13 | + <a href="{{page.previous.url}}">{% include date.html date=page.previous.date %} »</a> | ||
14 | + {% endif %} | ||
15 | + </span> | ||
16 | + </div> | ||
17 | + | ||
5 | 18 | ||
6 | <header class="post-header"> | 19 | <header class="post-header"> |
7 | {% if page.tags contains 'ci' %} | 20 | {% if page.tags contains 'ci' %} |
assets/main.scss
@@ -95,3 +95,21 @@ $on-laptop: 800px; | @@ -95,3 +95,21 @@ $on-laptop: 800px; | ||
95 | width: -webkit-calc(60% - (#{$spacing-unit} / 2)); | 95 | width: -webkit-calc(60% - (#{$spacing-unit} / 2)); |
96 | width: calc(60% - (#{$spacing-unit} / 2)); | 96 | width: calc(60% - (#{$spacing-unit} / 2)); |
97 | } | 97 | } |
98 | + | ||
99 | +.page-nav { | ||
100 | + font-size: 14px; | ||
101 | + display: block; | ||
102 | + width: auto; | ||
103 | + overflow: hidden; | ||
104 | + span { | ||
105 | + display: block; | ||
106 | + width: 50%; | ||
107 | + float: left; | ||
108 | + margin: 1em 0; | ||
109 | + } | ||
110 | + | ||
111 | + span:last-child { | ||
112 | + text-align: right; | ||
113 | + } | ||
114 | +} | ||
115 | + |