-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Clément
committed
Jul 17, 2024
1 parent
2bccd0a
commit f7ca30e
Showing
8 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ title Hello, world | |
date 1970-01-01T00:00+00:00 | ||
category test | ||
abstract | ||
author Bob | ||
--- | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,61 @@ | ||
{% extends "base.html" %} | ||
{% extends "base.html"%} | ||
{% block content %} | ||
|
||
<div class="container"> | ||
<nav class='navbar navbar-light bg-light static-top'> | ||
<a>Catégories :</a> | ||
<a href='/posts/'>Tout</a> | ||
{% for category in object.categories %} | ||
<a href='/posts/category/{{category}}.html'>{{ category }}</a> | ||
<a href='/posts/category/{{category}}.html'>{{ category|replace('-', ' ')|title }}</a> | ||
{% endfor %} | ||
</nav> | ||
</div> | ||
|
||
<div class="row" id="articles"> | ||
{% for post in object.posts %} | ||
<a href='/posts/{{post.slug}}.html'>{{ post.timestamp.strftime("%d/%m/%Y") }} : {{ post.title }} : {{ post.metadata.abstract }}</a> <br> | ||
<div class="col-12 col-lg-4 my-2 blog__article " id="r-d-et-veille-techno-petit-point-sur-nos-projets-internes"> | ||
<div class="blog__post card rounded-20 " style="max-width: ; min-width: "> | ||
<div class="card-body"> | ||
<div class="card-text" style="height: 400px"> | ||
|
||
<a class="card-link footer-link" href="/posts/{{post.slug}}.html"> | ||
<h2 class="blog__post__text__title">{{ post.title }}</h2> | ||
</a> | ||
|
||
<div class="blog__post__text__content"> | ||
<p>{{ post.metadata.abstract }}</p> | ||
</div> | ||
|
||
<div class="blog__post__text__bottom"> | ||
<div class="blog__post__text__bottom__meta"> | ||
<div class="blog__post__text__bottom__meta__author"> | ||
<div class="blog__post__text__bottom__meta__author__icon"><i class="fas fa-user"></i></div> | ||
<div class="blog__post__text__bottom__meta__author__name">{{post.metadata.author}}</div> | ||
</div> | ||
|
||
<div class="blog__post__text__bottom__meta__date"> | ||
<div class="blog__post__text__bottom__meta__date__icon"><i class="fas fa-calendar"></i></div> | ||
<div class="blog__post__text__bottom__meta__date__name">{{ post.timestamp.strftime("%d/%m/%Y") }}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="blog__post__text__bottom__btn"> | ||
<a | ||
class="btn btn-primary btn-round" | ||
href="/posts/{{post.slug}}.html" | ||
> | ||
Lire la suite ... | ||
</a> | ||
</div> | ||
</div> | ||
<div class="blog__post__text__meta__category d-none"> | ||
{{post.metadata.abstract}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
|
||
<h1>{{ object.title }}</h1> | ||
{{ object.content|safe }} | ||
<a href="/posts">Tous les posts</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters