diff --git a/articles/Normies are destroying GNU Linux.md.title b/articles/Normies are destroying GNU Linux.md.title new file mode 100644 index 0000000..60f2224 --- /dev/null +++ b/articles/Normies are destroying GNU Linux.md.title @@ -0,0 +1 @@ +Normies are destroying GNU/Linux diff --git a/blog.php b/blog.php index 71d86bb..5d88a75 100644 --- a/blog.php +++ b/blog.php @@ -105,6 +105,17 @@ function getDateForPost($postName, $postDate) { } } +function getNameForPost($postName) { + $file = BLOG_PATH . "/$postName." . BLOG_EXT . ".title"; + $title = $postName; + + if (file_exists($file)) { + return rtrim(file_get_contents($file)); + } + + return $postName; +} + function getAllPostNames($path = "") { $filenames = array(); $dir = opendir(BLOG_PATH . "/$path" ); @@ -241,7 +252,7 @@ if ( $action === 'home') { // Print text before blog itself $html .= "

Blog

\n"; $html .= "

This is a list of all my blog posts. If you prefer, you can also read them using your favorite RSS reader through my feed.\n"; - $html .= "

If you wish, you can also get site updates, through the updates feed. The feed is updated whenever there are important things to announce with the site, or a new release for my software is out.

\n"; + $html .= "

If you wish, you can also get site updates, through the updates feed or your web browser. The feed is updated whenever there are important things to announce with the site, or a new release for my software is out.

\n"; $html .= "