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

View file

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

View file

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