You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- enable blog in menu
- add continue reading and use zola's post preview
- add Table of contents options for blog posts
- youtube custom scss for responsible full-width
Signed-off-by: Lachezar Lechev <[email protected]>
Copy file name to clipboardExpand all lines: content/blog/YYYY-MM-DD-Draft-blog-post.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,15 @@ title = "Your blog post title"
7
7
description = "Description of your blog post for the blog listing"
8
8
# The date is set by the filename but we need to use it here,
9
9
# as the file does not contain a valid date "YYYY-MM-DD"
10
+
# This is not required if the filename contains a valid format!
10
11
date = "2022-01-01"
11
12
# Is it still a draft?
12
13
draft = true
14
+
13
15
[extra]
14
16
15
-
# Show a quote (first 300 characters) from the content of the blog
16
-
# The quote shows below the description.
17
-
show_quote = false
17
+
# Show a "Table of contents" before the content of the blog post
18
+
show_toc = true
18
19
19
20
[[extra.author]]
20
21
name = "The AeroRust community"
@@ -24,4 +25,9 @@ twitter = "AeroRust"
24
25
github = "AeroRust"
25
26
+++
26
27
27
-
Text of your blog
28
+
Text of your blog goes here...
29
+
30
+
If you want to add a "Continue Reading" link with a partial quote from the blog post in the list of blog posts, add this line where you want the quote to end:
<li><ahref="{{ get_url(path="@/catalogue/_index.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/catalogue/_index.md") | as_str == current_url%}fw-bold{%endif%}">Are we in space yet?</a></li>
0 commit comments