Compare commits
5 commits
05907377fe
...
7b2bd5a6da
Author | SHA1 | Date | |
---|---|---|---|
7b2bd5a6da | |||
8e67ac8218 | |||
93477924f7 | |||
f9fb6e3ec5 | |||
fe7b2a2648 |
4 changed files with 43 additions and 24 deletions
|
@ -1,8 +1,12 @@
|
||||||
<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
|
<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
|
||||||
<img class="thumbnail" src="{{ .RelPermalink }}/thumb.jpg" />
|
{{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}}
|
||||||
|
{{ if $thumb }}
|
||||||
|
<img class="thumbnail" src="{{ .RelPermalink }}thumb.jpg" />
|
||||||
|
{{ else }}
|
||||||
|
<img class="thumbnail" src="/images/thumb.jpg" />
|
||||||
|
{{ end }}
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<span class="title">{{ .Title }}</span>
|
<span class="title">{{ .Title }}</span>
|
||||||
<p>{{ .Description }}</p>
|
|
||||||
<span class="more">→ plus d'infos</span>
|
<span class="more">→ plus d'infos</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -39,22 +39,6 @@
|
||||||
<a href="#img{{ $next }}" class="light-btn hidden_link btn-next">>></a>
|
<a href="#img{{ $next }}" class="light-btn hidden_link btn-next">>></a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="post-meta">
|
|
||||||
<!--div class="date">
|
|
||||||
<span class="posted-on">
|
|
||||||
<img class="page-icon header-icon" src="/svg/calendar.svg"/>
|
|
||||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
|
||||||
Article publié le {{ .Date.Day }} {{ index $.Site.Data.snotra.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
|
||||||
</time>
|
|
||||||
</span>
|
|
||||||
<span class="reading-time">
|
|
||||||
<img class="page-icon header-icon" src="/svg/clock.svg"/>
|
|
||||||
{{ i18n "reading_time" .ReadingTime }}
|
|
||||||
</span>
|
|
||||||
</div-->
|
|
||||||
{{ partial "categories.html" .Page.Params.Categories }}
|
|
||||||
{{ partial "tags.html" .Page.Params.Tags }}
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
<div class="archive-body">
|
<div class="archive-body">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
--color03: #871818;
|
--color03: #871818;
|
||||||
|
|
||||||
--image-margin-side: 2.5em;
|
--image-margin-side: 2.5em;
|
||||||
|
--navigation-height: 4em;
|
||||||
|
|
||||||
--content-width: 900px;
|
--content-width: 900px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@
|
||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
font-family: Lato, Helvetica, sans-serif;
|
font-family: serif;
|
||||||
font-size: medium;
|
font-size: medium;
|
||||||
color: var(--font-color);
|
color: var(--font-color);
|
||||||
}
|
}
|
||||||
|
@ -86,9 +87,13 @@ a.not(.anchor):focus {
|
||||||
|
|
||||||
/******************* Navbar *******************/
|
/******************* Navbar *******************/
|
||||||
#navigation {
|
#navigation {
|
||||||
height: 4em;
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
height: var(--navigation-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 4em;
|
line-height: var(--navigation-height);
|
||||||
|
background-color: var(--background-color);
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
#navigation a {
|
#navigation a {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
@ -302,6 +307,7 @@ a.not(.anchor):focus {
|
||||||
.container {
|
.container {
|
||||||
max-width: 90vw;
|
max-width: 90vw;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
margin-top: var(--navigation-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -333,9 +339,24 @@ a.not(.anchor):focus {
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************* Archives List *******************/
|
/******************* Archives List *******************/
|
||||||
|
#blog-list {
|
||||||
|
max-width: 95vw;
|
||||||
|
}
|
||||||
|
|
||||||
.archives-list {
|
.archives-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-content: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archives-list::after {
|
||||||
|
content: "";
|
||||||
|
flex: auto;
|
||||||
|
flex-basis: 20em;
|
||||||
}
|
}
|
||||||
.archives-list .archive {
|
.archives-list .archive {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -343,6 +364,7 @@ a.not(.anchor):focus {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border: none;
|
border: none;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.archives-list .archive:hover {
|
.archives-list .archive:hover {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -352,11 +374,13 @@ a.not(.anchor):focus {
|
||||||
}
|
}
|
||||||
.archives-list .thumbnail {
|
.archives-list .thumbnail {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 15em;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-right: 1.5em;
|
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
|
.archives-list .archive {
|
||||||
|
width: 48%;
|
||||||
|
}
|
||||||
.archives-list .thumbnail {
|
.archives-list .thumbnail {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -378,6 +402,10 @@ a.not(.anchor):focus {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.archive:hover .more {
|
||||||
|
display: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************* Letters *******************/
|
/******************* Letters *******************/
|
||||||
|
|
3
static/svg/telegram.svg
Normal file
3
static/svg/telegram.svg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="1792" height="1792" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M1189 1307l147-693c13-61-22-85-62-70L410 877c-59 23-58 56-10 71l221 69 513-323c24-16 46-7 28 9l-415 375-16 228c23 0 33-10 45-22l108-104 224 165c41 23 70 11 81-38zm603-411A896 896 0 1 1 0 896a896 896 0 0 1 1792 0z" fill="#efefef"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 317 B |
Loading…
Reference in a new issue