Add post scroll to top and blog links

This commit is contained in:
grandeljay 2022-06-13 07:44:57 +02:00
parent d25f80c6b3
commit 16a658a24d
3 changed files with 23 additions and 1 deletions

View file

@ -6,6 +6,10 @@
--themeTransitionDuration: 2s; --themeTransitionDuration: 2s;
} }
html {
scroll-behavior: smooth;
}
img { img {
max-width: 100%; max-width: 100%;
} }

View file

@ -453,7 +453,7 @@ class Page
public function bodyStart(): void public function bodyStart(): void
{ {
?> ?>
<body> <body id="top">
<?php <?php
} }

View file

@ -43,6 +43,24 @@ $page->navigation();
<div><?= $post->content->rendered ?></div> <div><?= $post->content->rendered ?></div>
</div> </div>
</div> </div>
<div class="ui two columns grid">
<div class="column">
<a href="#top" class="ui fluid labeled icon button">
<i class="arrow up icon"></i>
<?= __('Top') ?>
</a>
</div>
<div class="column">
<a href="<?= Page::PAGE_BLOG ?>" class="ui fluid labeled icon button">
<i class="rss icon"></i>
<?= __('Blog') ?>
</a>
</div>
</div>
</div> </div>
</main> </main>