From 7f582b6643f5798bf9f0d8959057efe41ce51a08 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Fri, 25 Jan 2019 11:49:30 +0100
Subject: [PATCH] hide categories

---
 article.php | 2 ++
 posts.php   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/article.php b/article.php
index 72c9ae1..1fa1f01 100644
--- a/article.php
+++ b/article.php
@@ -20,7 +20,9 @@
             <?php echo total_comments();?> <?php echo pluralise(total_comments(), "commentaire", "s") ?>.<?php endif; ?> <?php echo article_custom_field('attribution'); ?></p>
             <ul style="list-style:none;box-sizing:border-box">
             <li style="float:left;padding:15px"><a href="<?php echo article_previous_url()?>">Article précédent</a></li>
+            <!--
             <li style="float:left;padding:15px"><a href="<?php echo article_category_url()?>">Tous les articles de la catégorie <?php echo article_category();?></a></li>
+            -->
             <li style="float:left;padding:15px"><a href="<?php echo article_next_url()?>">Article suivant</a></li>
             </ul>
 			</section>
diff --git a/posts.php b/posts.php
index 914382b..6ac5730 100644
--- a/posts.php
+++ b/posts.php
@@ -21,7 +21,7 @@
                 <h2> Dernier article </h2>
                 <?php include("single_article.php"); ?>
             </li>
-
+            <!--
             <?php if (!preg_match('/category.*/',current_url())): ?>
             <li id="<?php echo current_url();?>" style="background:none">
                     <h2> Catégories d'articles </h2>
@@ -36,6 +36,7 @@
                     <?php endwhile; ?>
                 </li>
             <?php endif; ?>
+            -->
 
             <?php if(total_posts() > 1 || $title=="Blog"):?>
                 <li style="background:none">
-- 
GitLab