Show date only in posts

This commit is contained in:
lostinlight 2019-03-20 20:43:55 +03:00
parent 9841db4c24
commit cd9c622364
3 changed files with 17 additions and 9 deletions

View file

@ -1,9 +1,10 @@
<%
let contType = '';
let indexBody = '';
let ball = false;
let misc;
let contType = '',
indexBody = '',
ball = false,
misc,
post;
if (is_root()) {
contType = 'main__container';
indexBody = 'main';
@ -14,6 +15,9 @@
if (page.layout == 'miscellaneous') {
misc = "miscellaneous";
}
if (page.layout == 'post') {
post = "post";
}
%>
<!DOCTYPE html>
@ -27,7 +31,7 @@
<![endif]-->
<%- partial('_partial/navbar', null, {cache: !config.relative_link}) %>
<%- partial('_partial/sidebar') %>
<div class="container <%= contType %> <%= misc %>">
<div class="container <%= contType %> <%= misc %> <%= post %>">
<noscript><small class="no-js">You disabled Javascript. Some things won't work.</small></noscript>
<%- body %>
</div>

View file

@ -18,6 +18,14 @@
padding: 0 7em;
}
.hero-header small {
display: none;
}
.post .hero-header small {
display: block;
}
.hero-header .author {
display: block;
margin-top: 1.5em;

View file

@ -5,10 +5,6 @@
box-shadow: 1px 1px 4px 2px $black;
}
.miscellaneous small {
display: none;
}
.misc {
background: $asphalt;
color: $white;