diff --git a/config.php b/config.php
index d5ec092..041068c 100644
--- a/config.php
+++ b/config.php
@@ -29,7 +29,7 @@ $bloganalytics = '';
// Footer - set here the text for your footer (e.g. a copyright info). You can replace the whole text after the '=' with your own one.
$blogfooter = 'Rangitaki ' . date("Y") . ' github.com/mmk2410/Rangitaki';
// This enables the optional rangitaki control center. Please read the documentation before you enable it.
-$rcc = 'no';
+$rcc = 'yes';
// Here you can disable and enable the navigation menu. Usefull if you have no subblogs and no home directory
$nav_drawer = 'yes';
// Set here the name of your theme. Read the documentation for more themes
diff --git a/index.php b/index.php
index 746f71f..c1fd9d5 100644
--- a/index.php
+++ b/index.php
@@ -31,235 +31,240 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
-
-
-
-
-
- 3) { // Checking if not in article or tag view and if there are more the one blog. The 3 is for these three array entries: 'main.md', '.', '..'
- echo "
";
- echo "" . $BLOGLANG['Blogs on'] . " $blogtitle:
"; // 1. Set localized string 2. Set blogtitle
- foreach ($blogs as $blog) { // iterating through the blogs/ directory
- if (strlen($blog) >= 3 && substr($blog, -3) == ".md") { // check if filename is larger than three chars and if the file ends with ".md"
- if ($getblog == "") { // Run when on main blog
- if ($blog != "main.md") { // excluding main blog
- BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle); // creating navigation item
- }
- } else {
- if ($getblog . ".md" != $blog) { // Check if $blog is current blog -> this blog will be excluded
- // Make sure that the entry has a title, because main.md hasn't one
- if (empty($blogmainname)) {
- $blogmaintitle = $blogtitle;
- } else {
- $blogmaintitle = $blogmainname;
- }
- BlogListGenerator::listBlog("./blogs/", $blog, $blogmaintitle); // creating navigation item
- }
- }
- }
- }
- echo "";
- } elseif (isset($getarticle) || isset($gettag)) { // If viewing a blog or a tag
- ?>
-
Go back
-
-
-
-
-
- // Set blog to "main" if on main blog, else to $getblog. This variable is needed later
- if ($getblog == "") {
- $blog = "main";
- } else {
- $blog = $getblog;
- }
- ?>
-
+
+ 3) { // if there is no content, don't show the intro
+ ?>
+
+
+ setBreaksEnabled(true)// with linebreaks
+ ->text($file);
+ echo $intro; // PRINTS THE SH****
+ ?>
+
+
+ tag view
+ $articles = scandir($articlesdir, 1); // save the content of the directory in the articles variable
+ foreach ($articles as $article) { // iterate through all articles
+ $tags = ArticleGenerator::getTags($articlesdir, $article); // get the article tags
+ if (in_array($gettag, $tags)) { // if the article has the requested tag
+ if (strlen($article) >= 3 && substr($article, -3) == ".md") { // check if the file is a article file
+ ArticleGenerator::newArticle($articlesdir, $article, $getblog); // generate the article
+ }
+ }
+ }
+ } elseif ($getarticle == "") { // NORMAL VIEW if there's no article request -> normal view
+ $articles = scandir($articlesdir, 1); // save the content of the directory in the articles variable
+ foreach ($articles as $article) { // iterate through this variable
+ if (strlen($article) >= 3 && substr($article, -3) == ".md") { // check if the file is a article file
+ ArticleGenerator::newArticle($articlesdir, $article, $getblog); // generate the article
+ }
+ }
+ } elseif (isset($getarticle)) { // ARTICLE VIEW
+ ArticleGenerator::newArticle($articlesdir, $getarticle . ".md", $getblog); // generate the requested article
+ include './res/php/Disqus.php'; // include disques
+ } else { // SOMETHING STRANGE: THIS SHOULDN'T HAPPEN
+ echo "Some error occured, please go back.";
+ }
+ ?>
+
+
+
+
+
+
+
+
+