Add post scroll to top and blog links
This commit is contained in:
parent
d25f80c6b3
commit
16a658a24d
3 changed files with 23 additions and 1 deletions
|
@ -6,6 +6,10 @@
|
|||
--themeTransitionDuration: 2s;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
|
|
@ -453,7 +453,7 @@ class Page
|
|||
public function bodyStart(): void
|
||||
{
|
||||
?>
|
||||
<body>
|
||||
<body id="top">
|
||||
<?php
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,24 @@ $page->navigation();
|
|||
<div><?= $post->content->rendered ?></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>
|
||||
</main>
|
||||
|
||||
|
|
Loading…
Reference in a new issue