Add subtitle to posts

alternate-navbar
Maik de Kruif 3 years ago
parent f006f7aad8
commit 9c2dd10082
Signed by: maik
GPG Key ID: 44A55AD1F0673FA6
  1. 4
      content/posts/google-ctf/2021/beginners-quest/1.md
  2. BIN
      static/img/google-ctf/2021/beginners-quest/1/cover.png
  3. 13
      themes/maik-blog/assets/scss/_post.scss
  4. 8
      themes/maik-blog/assets/scss/_posts.scss
  5. 3
      themes/maik-blog/layouts/_default/list.html
  6. 3
      themes/maik-blog/layouts/posts/single.html

@ -1,8 +1,10 @@
+++
author = "Maik de Kruif"
title = "Beginners Quest 1 - Google CTF"
title = "Novosibirsk Chemical plant"
subtitle = "Beginners Quest 1 - Google CTF"
date = 2021-09-22T14:26:25+01:00
description = "A writeup for challenge 1 of the beginners quests of the Google CTF."
cover = "img/google-ctf/2021/beginners-quest/1/cover.png"
tags = [
"Google CTF",
"Beginners Quest",

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

@ -31,6 +31,19 @@
}
}
&-subtitle {
font-size: 1.9rem;
margin: -15px 0 20px;
@media #{$media-size-phone} {
font-size: 1.6rem;
}
a {
text-decoration: none;
}
}
&-tags {
display: block;
margin-bottom: 20px;

@ -40,10 +40,16 @@
.post {
&-title {
font-size: 1rem;
font-size: 1.9rem;
margin: 5px 0 5px 0;
}
&-subtitle {
font-size: 1.2rem;
margin: 5px 0 10px 0;
font-weight: 600;
}
&-year {
padding-top: 6px;
margin-right: 1.8em;

@ -16,6 +16,9 @@
{{ range $paginator.Pages }}
<div class="post">
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
{{- with .Params.Subtitle }}
<p class="post-subtitle">{{ . | markdownify }}</p>
{{- end }}
<div class="post-meta">
{{- if .Date }}
<span class="post-date">

@ -24,6 +24,9 @@
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
{{- with .Params.Subtitle }}
<p class="post-subtitle">{{ . | markdownify }}</p>
{{- end }}
{{- if .Params.toc }}
<hr />

Loading…
Cancel
Save