summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php19
1 files changed, 2 insertions, 17 deletions
diff --git a/index.php b/index.php
index c20508e..09badc6 100644
--- a/index.php
+++ b/index.php
@@ -64,24 +64,9 @@
</p>
</hgroup>
<p id="blogpreview">
- <?php
- $path = "blog";
- $files = scandir($path."/");
- $i = 0;
- foreach ($files as $file) {
- if (preg_match("/.+?(?=\.html|\.php)/", $file, $matches)) {
- if ($i > 4)
- break;
- $tags = get_meta_tags($path.'/'.$file);
- printf('<a href='.$path.'/%s>%s</a><span>%s</span><br>',
- $matches[0], str_replace("-", " ", $matches[0]),
- $tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯");
- $i++;
- }
- }
- ?>
+ <?php include('misc/tools.php'); entries("blog", 5); ?>
</p>
- <a href="/blog.php">more...</a>
+ <a href="/blog">more...</a>
</div>
</div>
</div>