diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-12-16 11:39:12 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-12-16 11:39:12 -0500 |
commit | 4b8ac0cc26c4d8b85a1e1805d0a3164b10d4cb9a (patch) | |
tree | 78ee7bd7e5d92ec5fb9e88cbfa0e7972d27302d5 /app/views/index.view.php | |
parent | fc00dddeb72ee8ff506512ddb82d249b49c0dde0 (diff) | |
download | thedroneely.com-4b8ac0cc26c4d8b85a1e1805d0a3164b10d4cb9a.tar.gz thedroneely.com-4b8ac0cc26c4d8b85a1e1805d0a3164b10d4cb9a.tar.bz2 thedroneely.com-4b8ac0cc26c4d8b85a1e1805d0a3164b10d4cb9a.zip |
app/views/partials/footer: Remove inline JavaScript to single file
Keep closing body and html tag outside of footer
Diffstat (limited to 'app/views/index.view.php')
-rw-r--r-- | app/views/index.view.php | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/app/views/index.view.php b/app/views/index.view.php index e1232fd..ba1a7b1 100644 --- a/app/views/index.view.php +++ b/app/views/index.view.php @@ -46,52 +46,48 @@ <div class="columns"> - <div class="column"> - <h3 class="has-text-dark is-marginless is-size-5"> - Recent Posts - </h3> + <div class="column has-text-centered"> + <div class="front__textbox has-text-left-desktop is-inline-block"> - <br> + <h3 class="has-text-dark is-marginless is-size-5"> + Recent Posts + </h3> - <a class="underline__hover line__height" href="/post/bitcoin-hacked-email-scam/">Bitcoin Hacked Email Scam</a> + <?php + $recent_posts = file($_SERVER['DOCUMENT_ROOT'] . '/post/index.html'); + foreach (range(count($recent_posts) - 32, count($recent_posts) - 24) as $line) { + echo $recent_posts[$line]; + } + ?> - <br> + <br> + <br> - <a class="underline__hover line__height" href="/post/my-sublime-text-setup/">My Sublime Text Setup</a> - - <br> - - <a class="underline__hover line__height" href="/post/mixing-php-into-hugo/">Mixing PHP into Hugo</a> - - <br> - <br> - - <a class="front__frame" href="post/">More posts <span class="icon">➤</span></a> + <a class="front__frame" href="post/">More posts <span class="icon">➤</span></a> + </div> </div> - <div class="column"> - <h3 class="has-text-dark is-marginless is-size-5"> - Recent Projects - </h3> - - <br> - - <a class="underline__hover line__height" href="/project/bulma-resume">Bulma Resume</a> + <div class="column has-text-centered"> + <div class="front__textbox has-text-left-desktop is-inline-block"> - <br> + <h3 class="has-text-dark is-marginless is-size-5"> + Recent Projects + </h3> - <a class="underline__hover line__height" href="/project/personal-portfolio/">Personal Portfolio</a> + <?php + $recent_projects = file($_SERVER['DOCUMENT_ROOT'] . '/post/index.html'); + foreach (range(count($recent_projects) - 15, count($recent_projects) - 7) as $line) { + echo $recent_projects[$line]; + } + ?> - <br> + <br> + <br> - <a class="underline__hover line__height" href="/project/voiceover-website/">Voiceover Website</a> - - <br> - <br> - - <a class="front__frame" href="project/">More projects <span class="icon">➤</span></a> + <a class="front__frame" href="project/">More projects <span class="icon">➤</span></a> + </div> </div> </div> @@ -99,7 +95,12 @@ </div> </div> </div> -</section> + + </section> + <section> <?php require __DIR__ . '/partials/footer.php'; ?> + + </body> +</html> |