summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
Diffstat (limited to 'layout')
-rw-r--r--layout/_partial/header.ejs12
-rw-r--r--layout/post.ejs12
2 files changed, 20 insertions, 4 deletions
diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs
index 34097f7..a9d9dbd 100644
--- a/layout/_partial/header.ejs
+++ b/layout/_partial/header.ejs
@@ -1,7 +1,7 @@
-<% if (is_post()) { %>
-<section class="hero is-medium auto-dark">
+<% if (is_home()) { %>
+<section class="hero is-<%= theme.header.index %> auto-dark">
<% } else { %>
-<section class="hero is-large auto-dark">
+<section class="hero is-<%= theme.header.other %> auto-dark">
<% } %>
<div class="hero-head">
<header class="navbar" aria-label="main navigation">
@@ -69,4 +69,10 @@
</p>
</div>
</div>
+
+ <% if (is_home()) { %>
+ <div class="hero-foot">
+
+ </div>
+ <% } %>
</section> \ No newline at end of file
diff --git a/layout/post.ejs b/layout/post.ejs
index 9d9c8df..1419b70 100644
--- a/layout/post.ejs
+++ b/layout/post.ejs
@@ -1,6 +1,16 @@
<div class="columns">
<div class="column is-8 is-offset-2">
- <div class="card">
+ <div id="post" class="card">
+ <% if (theme.header.autoscroll) { %>
+ <script>
+ window.addEventListener("load", ()=>{
+ let content = document.getElementById("post");
+ content.scrollIntoView({
+ behavior: "smooth"
+ });
+ });
+ </script>
+ <% } %>
<% if (page.thumbnail) { %>
<div class="card-iamge">
<figure class="image is-16by9">