First standalone version
This commit is contained in:
commit
9d22a63950
49 changed files with 1367 additions and 0 deletions
6
layouts/blog/li.html
Normal file
6
layouts/blog/li.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<li>
|
||||
<span class="date">
|
||||
{{ .Date.Day }} {{ index $.Site.Data.snotra.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
||||
</span>
|
||||
<a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
23
layouts/blog/list.html
Normal file
23
layouts/blog/list.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<section id="blog-list" class="container liste">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="list-title">
|
||||
{{ i18n "articles" | title }}
|
||||
</h1>
|
||||
</header>
|
||||
<ul class="articles-list">
|
||||
{{- range .Paginator.Pages -}}
|
||||
{{- .Render "li" -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</article>
|
||||
{{ partial "pagination.html" . }}
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
36
layouts/blog/single.html
Normal file
36
layouts/blog/single.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
{{ partial "navigation.html" . }}
|
||||
<section class="container article">
|
||||
<article>
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<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>
|
||||
<div class="article-body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "article-footer.html" . }}
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue