Commit 52b32836 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

display shortContent instead of content in tag list page

parent 172b00de
......@@ -46,6 +46,7 @@
<?php
// le gros switch qui fait peur
switch ($pageName[1]){
case 'blog': // blog
writeBlogPage($pageName); // voir mainController
......
......@@ -24,7 +24,7 @@
<section>
<p>
<?php
if(isset($_GET['title']))
if($pageName[1] == "blog")
echo htmlspecialchars_decode($blogpost['content']);
else
echo nl2br($blogpost['shortContent']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment