diff --git a/system/includes/functions.php b/system/includes/functions.php
index 4a4a58e..ea9cbfa 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -626,6 +626,21 @@ function keyword_count($keyword) {
return count($tmp);
}
+function recent() {
+ $str = '
';
+ $posts = get_posts(null, 1, 5);
+ foreach($posts as $post)
+ {
+ $str .= '- ' . $post->title . '
';
+ }
+ if(empty($posts))
+ {
+ $str .= '- No Posts Found
';
+ }
+ $str .= '
';
+ return $str;
+}
+
// Return an archive list, categorized by year and month.
function archive_list() {
diff --git a/themes/clean/layout.html.php b/themes/clean/layout.html.php
index 68f9238..fb8d646 100644
--- a/themes/clean/layout.html.php
+++ b/themes/clean/layout.html.php
@@ -27,6 +27,7 @@
+ Recent Posts
diff --git a/themes/default/layout.html.php b/themes/default/layout.html.php
index 7d93016..fad8bf3 100644
--- a/themes/default/layout.html.php
+++ b/themes/default/layout.html.php
@@ -50,6 +50,7 @@