Skip to content

Commit f2ede36

Browse files
committed
✨ Switch blog pages to include TOC
1 parent e94e41d commit f2ede36

14 files changed

Lines changed: 87 additions & 11 deletions

content/blog/2013-10-25-bootstrapping-node-problem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "Bootstrapping node problem"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["decentralized"]
56
+++

content/blog/2013-10-30-using-libssu-for-communication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "Using libsss for communication"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["structured-secure-streams","howto","uvvy"]
56
+++

content/blog/2013-12-28-progress-report-audio-services.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "Progress report: Audio services, congestion control"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["report","structured-secure-streams","network","uvvy"]
56
+++

content/blog/2018-03-09-reboot-to-rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "Reboot to Rust"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["rust","osdev","cargo"]
56
+++

content/blog/2019-11-17-rust-on-longan-nano.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "Rust on Sipeed Longan Nano board"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["rust","embedded"]
56
+++

content/blog/2021-11-11-osdev-tooling.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "OSdev tooling"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["rust","osdev","tools"]
56
+++

content/blog/2021-12-28-osdev-tooling-2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "OSdev tooling continued"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["rust","osdev","tools"]
56
+++

content/blog/2022-05-03-osdev-tooling-3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
+++
22
title = "OSdev tooling finished"
3+
template = "page-with-toc.html"
34
[taxonomies]
45
tags = ["rust","osdev","tools"]
56
+++

sass/classic-blue.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ $header_menu_item_border_shadow_color: #8bbef3;
1717

1818
$section_bg_color: #fafafa;
1919

20+
$toc_bg_color: #c6eafa;
21+
$toc_border_color: #77b9fb;
22+
2023
/* $title_fg_color: #222;
2124
$title2_fg_color: #393939;
2225
$title3_fg_color: #494949; */

sass/modernist.scss

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,28 @@ html {
3535
50% 100%,
3636
color-stop(0%, $bg_color_start),
3737
color-stop(100%, $bg_color_end)
38-
) fixed;
38+
)
39+
fixed;
3940
background: $bg_color_start -webkit-linear-gradient(
4041
$bg_color_start,
4142
$bg_color_end
42-
) fixed;
43+
)
44+
fixed;
4345
background: $bg_color_start -moz-linear-gradient(
4446
$bg_color_start,
4547
$bg_color_end
46-
) fixed;
48+
)
49+
fixed;
4750
background: $bg_color_start -o-linear-gradient(
4851
$bg_color_start,
4952
$bg_color_end
50-
) fixed;
53+
)
54+
fixed;
5155
background: $bg_color_start -ms-linear-gradient(
5256
$bg_color_start,
5357
$bg_color_end
54-
) fixed;
58+
)
59+
fixed;
5560
background: $bg_color_start linear-gradient($bg_color_start, $bg_color_end)
5661
fixed;
5762
}
@@ -496,14 +501,16 @@ blockquote {
496501
color: $blockquote_fg_color;
497502
padding: 0;
498503
margin: 0;
499-
font-family: Helvetica, sans-serif; // TODO: fix font style, try B612 for quotes?
504+
font-family:
505+
Helvetica, sans-serif; // TODO: fix font style, try B612 for quotes?
500506
text-align: right;
501507
}
502508
}
503509

504510
.post-quote {
505511
p {
506-
font-family: Helvetica, sans-serif; // TODO: fix font style, try B612 for quotes?
512+
font-family:
513+
Helvetica, sans-serif; // TODO: fix font style, try B612 for quotes?
507514
text-align: right;
508515
}
509516

@@ -554,6 +561,26 @@ article.post-preview {
554561
margin-bottom: 4em;
555562
}
556563

564+
/* TOC for a page */
565+
566+
.post-toc {
567+
float: right;
568+
font-size: x-small;
569+
border: 1px dotted $toc_border_color;
570+
background-color: $toc_bg_color;
571+
padding: 1rem;
572+
margin: 0.5rem;
573+
574+
ul {
575+
padding: 0;
576+
margin: 0;
577+
578+
li {
579+
list-style-type: none;
580+
}
581+
}
582+
}
583+
557584
/* Posts feed pagination */
558585

559586
.paginator {

0 commit comments

Comments
 (0)