Skip to content
Snippets Groups Projects
Commit 6d979d13 authored by yahiko's avatar yahiko
Browse files

Adding draft warning on article for preview

parent ae3cc502
No related branches found
No related tags found
No related merge requests found
...@@ -675,4 +675,19 @@ figcaption { ...@@ -675,4 +675,19 @@ figcaption {
black 40px black 40px
) )
20; 20;
}
.draft-article {
font-weight: bold;
font-size: larger;
background-color: var(--bg-article-color);
padding: 1em 1em 1em 1em;
border-radius: 25px;
}
.draft-article::before {
content: "☝️";
letter-spacing: 10px;
margin-left: -5px;
font-size: xx-large;
} }
\ No newline at end of file
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
{% block content %} {% block content %}
<article class="article-page"> <article class="article-page">
{% if article.status=='draft' %}
<p class="draft-article">Attention, cet article est un brouillon ! Tu vas y arriver 💪 !</p>
{% endif %}
<header> <header>
<h1> <h1>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<article class="index"> <article class="index">
<header><h2 class="art-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> <header><h2 class="art-title"><span class="cat-{{ article.category.slug }}"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span></h2>
<p class="art-desc">Publié le : <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> dans la catégorie <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.</p> <p class="art-desc">Publié le : <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> dans la catégorie <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.</p>
</header> </header>
</article> </article>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment