From 56f6fe690eafaa2d82a8dced44c70f434d40a60e Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 20 Nov 2013 21:15:00 -0800 Subject: [PATCH] Plus two lines, missed the date! --- index.php | 2 ++ styles/home.css | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/index.php b/index.php index d8e48dabd..b2ba3c49b 100644 --- a/index.php +++ b/index.php @@ -71,8 +71,10 @@ foreach($NEWS_ENTRIES as $entry) { } foreach($frontpage as $entry) { $link = substr($entry["id"], 15); // Strip http://php.net/ + $date = date_format(date_create($entry["updated"]), 'Y-m-d'); $content .= '
'; $content .= ''; + $content .= '
' . $date . '
'; $content .= '
'; $content .= $entry["content"]; $content .= '
'; diff --git a/styles/home.css b/styles/home.css index 2833370f6..74f2ff729 100644 --- a/styles/home.css +++ b/styles/home.css @@ -169,6 +169,12 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99 content:"ยป"; color:#666; } +.newsentry .newstime { + float: right; + border-bottom: 1px dotted #999; + margin: 3px; +} + .newsentry .newscontent { padding: 5px; margin-bottom: 20px;