Skip to content

Commit

Permalink
🎉 more informations on post page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ooggle committed Jul 22, 2021
1 parent c9ebbbd commit 9cea540
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ dead-simple blog template powered by Markdown and PHP

## Update guide

In order to update the website to the latest version, you need to copy the content of `src/apache2/src/` in your own `apache2/src/` directory.
In order to update the website to the latest version, you need to download the latest release, copy the content of the new `src/apache2/src/` in your own `apache2/src/` directory.

:warning: If you don't want all your work to be list, don't copy:
:warning: If you don't want all your work to be lost, don't copy:
- .htaccess
- articles/
- favicon.png
Expand Down
19 changes: 16 additions & 3 deletions src/apache2/src/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,22 @@
</div>
</div>
</nav>
<br><br>
<br>
<?php

echo '<div class="container">';
echo '<p class="theme-font-color">title: ' . $selectedPost->title . '<br>';
echo 'date: ' . date("M d, Y", strtotime($selectedPost->date)) . '<br>';
echo 'tags: ';
foreach (get_tag_list($selectedPost) as $key => $tag)
{
echo '<a href="' . $config['rooturl'] . 'tag/' . $tag . '">' . $tag . '</a> ';
}
echo '</p>';
echo '</div>';

?>
<br>
<?php

echo '<div class="markdown-body container">';
Expand All @@ -88,8 +103,6 @@

//$pattern = '/<\/summary>((.\n?)+)<\/details>/mg';



echo $mdfile;

echo '</div>';
Expand Down
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash

0 comments on commit 9cea540

Please sign in to comment.