mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-24 06:56:59 +00:00
Add subtitle to posts
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
+++
|
+++
|
||||||
author = "Maik de Kruif"
|
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
|
date = 2021-09-22T14:26:25+01:00
|
||||||
description = "A writeup for challenge 1 of the beginners quests of the Google CTF."
|
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 = [
|
tags = [
|
||||||
"Google CTF",
|
"Google CTF",
|
||||||
"Beginners Quest",
|
"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 {
|
&-tags {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|||||||
@@ -40,10 +40,16 @@
|
|||||||
|
|
||||||
.post {
|
.post {
|
||||||
&-title {
|
&-title {
|
||||||
font-size: 1rem;
|
font-size: 1.9rem;
|
||||||
margin: 5px 0 5px 0;
|
margin: 5px 0 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-subtitle {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin: 5px 0 10px 0;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
&-year {
|
&-year {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
margin-right: 1.8em;
|
margin-right: 1.8em;
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
<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">
|
<div class="post-meta">
|
||||||
{{- if .Date }}
|
{{- if .Date }}
|
||||||
<span class="post-date">
|
<span class="post-date">
|
||||||
|
|||||||
@@ -24,6 +24,9 @@
|
|||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
{{- with .Params.Subtitle }}
|
||||||
|
<p class="post-subtitle">{{ . | markdownify }}</p>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Params.toc }}
|
{{- if .Params.toc }}
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
Reference in New Issue
Block a user