Skip to content

Commit 5b29dee

Browse files
committed
Fix summary box to uniform small text
1 parent d40bffe commit 5b29dee

4 files changed

Lines changed: 5 additions & 19 deletions

File tree

hugo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ title = 'PyTorch DevLog'
66
[params]
77
description = 'Developer technical notes for PyTorch'
88

9+
summaryLength = 30
10+
911
[markup]
1012
[markup.goldmark]
1113
[markup.goldmark.renderer]

layouts/_default/baseof.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616
</nav>
1717
</header>
1818
<div class="wrapper">
19-
{{ if .IsPage }}
20-
<aside class="sidebar">
21-
<h3><a href="{{ .FirstSection.Permalink }}">{{ .FirstSection.Title }} (recent)</a></h3>
22-
<ul>
23-
{{ range first 5 .FirstSection.Pages.ByDate.Reverse }}
24-
<li><a href="{{ .Permalink }}"{{ if eq $.RelPermalink .RelPermalink }} class="active"{{ end }}>{{ .Title }}</a></li>
25-
{{ end }}
26-
{{ if gt (len .FirstSection.Pages) 5 }}
27-
<li><a href="{{ .FirstSection.Permalink }}">See all →</a></li>
28-
{{ end }}
29-
</ul>
30-
</aside>
31-
{{ end }}
3219
<div class="content">
3320
{{ block "main" . }}{{ end }}
3421
</div>

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>{{ .Site.Title }}</h1>
44
{{ .Content }}
55

6-
<h2>Recent Posts</h2>
6+
<h2>Most Recent 10 Posts</h2>
77
{{ range first 10 .Site.RegularPages.ByDate.Reverse }}
88
<div class="post-card">
99
<h3><a href="{{ .Permalink }}">{{ .Title }}</a> <span class="tag">{{ .FirstSection.Title }}</span></h3>

static/css/style.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,8 @@ a.tag:hover {
383383
overflow: hidden;
384384
}
385385

386-
.summary-box h1,
387-
.summary-box h2,
388-
.summary-box h3,
389-
.summary-box h4 {
390-
font-size: 0.85rem;
386+
.summary-box * {
387+
font-size: 0.85rem !important;
391388
margin: 0.25rem 0;
392389
border: none;
393390
padding: 0;

0 commit comments

Comments
 (0)