Update link lists to visually indicate they're links.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danila Fedorin 2020-05-04 19:25:03 -07:00
parent 4ede62b39a
commit e883e3c60e
7 changed files with 40 additions and 15 deletions

View File

@ -4,3 +4,4 @@ title = "Daniel's Blog"
theme = "vanilla"
pygmentsCodeFences = true
pygmentsStyle = "github"
summaryLength = 20

View File

@ -88,12 +88,7 @@ nav {
color: black;
display: inline-block;
border-bottom: none;
transition: color .25s;
white-space: nowrap;
&:hover {
color: $primary-color;
}
}
}
@ -134,6 +129,11 @@ a {
color: black;
text-decoration: none;
border-bottom: .2rem solid $primary-color;
transition: color 0.25s;
&:hover {
color: $primary-color;
}
}
img {
@ -153,10 +153,6 @@ tr {
}
}
div.highlight tr {
display: table-row;
}
td {
@include below-container-width {
overflow-x: auto;
@ -164,6 +160,10 @@ td {
padding: 0.5rem;
}
div.highlight tr {
display: table-row;
}
hr.header-divider {
background-color: $primary-color;
height: 0.3rem;
@ -171,8 +171,27 @@ hr.header-divider {
border-radius: 0.15rem;
}
ul.page-list a {
border-bottom: none;
ul.page-list {
list-style: none;
padding: 0;
li {
@include bordered-block;
margin-bottom: 1rem;
padding: 0.5rem;
}
a {
border-bottom: none;
font-size: 1.3rem;
font-weight: bold;
font-family: $font-heading;
}
p {
margin-bottom: 0;
margin-top: 0.2rem;
}
}
.katex-html {

View File

@ -3,7 +3,7 @@
<ul class="page-list">
{{ range .Pages.ByDate.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ partial "post.html" . }}
{{ end }}
</ul>
{{ end }}

View File

@ -4,7 +4,7 @@
Recent posts:
<ul class="page-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ partial "post.html" . }}
{{ end }}
</ul>
{{ end }}

View File

@ -0,0 +1,5 @@
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<p>{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p>{{ .Summary }} . . .</p>
</li>

View File

@ -3,7 +3,7 @@
<ul class="page-list">
{{ range .Pages.ByDate.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ partial "post.html" . }}
{{ end }}
</ul>
{{ end }}

View File

@ -2,7 +2,7 @@
<h2>{{ .Title }}</h2>
Below is a list of all the tags ever used on this site.
<ul class="page-list">
<ul>
{{ range sort .Pages "Title" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}