Skip to content

Commit

Permalink
[CI] Remove top read articles
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanDev authored Mar 24, 2024
1 parent e6cf525 commit fe12b96
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
DIRECT_TEMPLATES = ['index', 'latest', 'most_read', 'search']

PLUGIN_PATHS = ['./pelican-plugins']
PLUGINS = ['webassets', 'sitemap', 'readtime', 'pelican_katex', 'subcategory', 'tipue_search', 'top_read', 'to_json', 'add_class']
PLUGINS = ['webassets', 'sitemap', 'readtime', 'pelican_katex', 'subcategory', 'tipue_search', 'to_json', 'add_class']

CATEGORY_PRETTY_NAME = {"Cybersécurité": "🔒",
"Pensées du libre": "🔖", "Réseau": "📶", "Sysadmin": "🖥", "Sciences": "🔬"}
Expand Down
2 changes: 0 additions & 2 deletions theme/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ <h1 class="articleTitle">{{ article.title }}</h1>
<p>Lecture {{ article.readtime.minutes }}mn</p>
</div>
<article>{{ article.content }}</article>
<script defer src="https://commento.ilearned.eu/js/commento.js" data-no-websockets="true"></script>
<div id="commento"></div>
</div>
{% endblock %}
26 changes: 0 additions & 26 deletions theme/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,6 @@ <h3><a href="{{ article.url }}">{{ article.title }}</a></h3>
</div>
<a href="/latest.html" class="btn btn-primary">Voir plus</a>
</div>

<div class="card" id="mostRead">
<div class="title">
<h2>📈 Les plus lus</h2>
</div>
<div class="articles">
{% for article in TOP_READ[:4] %}
<div class="article">
<div class="author">
<img
src="https://cdn.ilearned.eu/img/contributors/{{ article.author|string|lower }}.webp"
alt="Photo de profil de {{ article.author }}"
/>
<a href="/author/{{ article.author|lower }}.html">{{ article.author }}</a>
</div>
<h3><a href="{{ article.url }}">{{ article.title }}</a></h3>
<div class="metadata">
<time class="published"> {{ article.locale_date }} </time>
<b>·</b>
<p>Lecture {{ article.readtime }}mn</p>
</div>
</div>
{% endfor %}
</div>
<a href="/most_read.html" class="btn btn-primary">Voir plus</a>
</div>
</section>

<section id="categories">
Expand Down

0 comments on commit fe12b96

Please sign in to comment.