Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 53 additions & 19 deletions static/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions static/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,46 @@ html.dark-theme {
}
}

.blog-title::after {
content: none !important;
display: none !important;
}

.blog-title {
margin-bottom: 0.5rem;
padding-bottom: 0 !important;
}

.blog-meta-wrapper {
display: inline-block;
padding-bottom: 1.25rem;
margin-bottom: 2rem;
border-bottom: 3px solid $lavenderfloral;
min-width: 160px;
}

.blog-meta-author {
color: $lavenderfloral;
font-weight: 500;
line-height: 1.2;
margin-bottom: 0.25rem;
font-size: 1rem;
}

.by-label {
color: $darkspace;
font-weight: 400;
margin-right: 4px;
}

.date {
font-size: 0.85rem !important;
color: $darkspace;
letter-spacing: 0.125em;
text-transform: uppercase;
font-family: $work;
}

/* Dark theme for blog listing */
html.dark-theme {
.blog-post-preview {
Expand Down
25 changes: 19 additions & 6 deletions templates/blog_post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@

<div class="column">
<article class="page content my-8 mx-auto">
<h1>{{{page.head.title}}}</h1>
{{! Since this is HTML, we use the triple-curly }}
{{{page.body}}}
{{! Remove the `!` on the line below to see how to call a Rhai script }}
{{! echo "world" }}
<h1 class="blog-title">{{{page.head.title}}}</h1>

<div class="blog-meta-wrapper">
{{#if this.page.head.extra.author}}
<div class="blog-meta-author">
<span class="by-label">By</span> {{page.head.extra.author}}
</div>
{{/if}}

{{#if this.page.head.date}}
<div class="date">{{date_format "%B %d, %Y" this.page.head.date}}</div>
{{/if}}
</div>

<div class="blog-body">
{{{page.body}}}
</div>
</article>

{{> content_footer }}
Expand All @@ -24,4 +36,5 @@
{{> content_bottom }}

</body>
</html>

</html>