diff options
Diffstat (limited to '_site/includes')
-rw-r--r-- | _site/includes/articles/getlist.php | 9 | ||||
-rw-r--r-- | _site/includes/dom/footer.php | 14 | ||||
-rw-r--r-- | _site/includes/dom/header.php | 10 |
3 files changed, 31 insertions, 2 deletions
diff --git a/_site/includes/articles/getlist.php b/_site/includes/articles/getlist.php index 5f55574..e3947f2 100644 --- a/_site/includes/articles/getlist.php +++ b/_site/includes/articles/getlist.php @@ -1,7 +1,11 @@ <?php +$listGetTimeout = 0; + function getArticlesList() { + $listGetStart = new DateTime("now"); global $Parsedown; + global $listGetTimeout; $list = []; $files = scandir($_SERVER['DOCUMENT_ROOT'] . "/../_posts"); @@ -82,5 +86,10 @@ function getArticlesList() { } } + $listGetEnd = new DateTime("now"); + + $listGetTimeoutA = $listGetStart->diff($listGetEnd); + $listGetTimeout = $listGetTimeoutA->f; + return $list; }
\ No newline at end of file diff --git a/_site/includes/dom/footer.php b/_site/includes/dom/footer.php index 31b6cb8..4832ed2 100644 --- a/_site/includes/dom/footer.php +++ b/_site/includes/dom/footer.php @@ -1,7 +1,19 @@ <hr> <div class="container"> - <p># blogchain <a href="https://twitter.com/_Minteck" target="_blank">--twitter</a> <a href="https://github.com/Minteck/Blogchain-Software" target="_blank">--github</a>gi_</p> + <p># blogchain <a href="https://twitter.com/_Minteck" target="_blank">--support</a> <a href="https://github.com/Minteck/Blogchain-Software" target="_blank">--code</a> <a href="/about">--version</a>_<br> + <span style="color:black !important;"> + <?php + + /** @var float $listGetTimeout */ + if ($listGetTimeout !== 0) { + echo("Articles list loading took " . round($listGetTimeout*1000, 4) . " ms"); + } else { + echo("No articles list loading"); + } + + ?> + </span></p> </div> </body> diff --git a/_site/includes/dom/header.php b/_site/includes/dom/header.php index 7398567..079adb5 100644 --- a/_site/includes/dom/header.php +++ b/_site/includes/dom/header.php @@ -1,5 +1,6 @@ <?php +$listGetTimeout = 0; ob_start(); require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/markdown.php"; @@ -238,7 +239,7 @@ register_shutdown_function("customShutdown"); border: 1px solid #00ff00; } - .list-group-item:hover { + .list-group:not(.no-link) .list-group-item:hover { background: #00ff00; color: black !important; } @@ -289,6 +290,13 @@ register_shutdown_function("customShutdown"); box-shadow: none; } + #article-cover { + width: 100%; + height: 50vh; + background-size: cover; + background-position: center; + } + </style> </head> <body> |