mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add new “interrupts” section to index page (#165)
This commit is contained in:
@@ -26,4 +26,11 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div id="interrupts" class="post-category interrupts">Interrupts</div>
|
||||
<div class="posts interrupts">
|
||||
{{ range first 4 (after 8 (where .Site.Pages.ByDate "Section" "post")) }}
|
||||
{{ .Render "teaser" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
@@ -48,6 +48,10 @@ main img {
|
||||
border: 2px solid #cc0;
|
||||
}
|
||||
|
||||
.posts.interrupts {
|
||||
border: 2px solid #f66;
|
||||
}
|
||||
|
||||
.posts hr {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
@@ -67,6 +71,10 @@ main img {
|
||||
color: #990;
|
||||
}
|
||||
|
||||
.post-category.interrupts {
|
||||
color: #f33;
|
||||
}
|
||||
|
||||
.PageNavigation {
|
||||
font-size: 0.9em;
|
||||
display: table;
|
||||
|
||||
Reference in New Issue
Block a user