Update link lists to visually indicate they're links.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
4ede62b39a
commit
e883e3c60e
|
@ -4,3 +4,4 @@ title = "Daniel's Blog"
|
||||||
theme = "vanilla"
|
theme = "vanilla"
|
||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
pygmentsStyle = "github"
|
pygmentsStyle = "github"
|
||||||
|
summaryLength = 20
|
||||||
|
|
|
@ -88,12 +88,7 @@ nav {
|
||||||
color: black;
|
color: black;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
transition: color .25s;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: $primary-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +129,11 @@ a {
|
||||||
color: black;
|
color: black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: .2rem solid $primary-color;
|
border-bottom: .2rem solid $primary-color;
|
||||||
|
transition: color 0.25s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $primary-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -153,10 +153,6 @@ tr {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.highlight tr {
|
|
||||||
display: table-row;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
td {
|
||||||
@include below-container-width {
|
@include below-container-width {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
@ -164,6 +160,10 @@ td {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.highlight tr {
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
|
||||||
hr.header-divider {
|
hr.header-divider {
|
||||||
background-color: $primary-color;
|
background-color: $primary-color;
|
||||||
height: 0.3rem;
|
height: 0.3rem;
|
||||||
|
@ -171,8 +171,27 @@ hr.header-divider {
|
||||||
border-radius: 0.15rem;
|
border-radius: 0.15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.page-list a {
|
ul.page-list {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
@include bordered-block;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: $font-heading;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.katex-html {
|
.katex-html {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<ul class="page-list">
|
<ul class="page-list">
|
||||||
{{ range .Pages.ByDate.Reverse }}
|
{{ range .Pages.ByDate.Reverse }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
{{ partial "post.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Recent posts:
|
Recent posts:
|
||||||
<ul class="page-list">
|
<ul class="page-list">
|
||||||
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
|
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
{{ partial "post.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
5
themes/vanilla/layouts/partials/post.html
Normal file
5
themes/vanilla/layouts/partials/post.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
<p>{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
|
||||||
|
<p>{{ .Summary }} . . .</p>
|
||||||
|
</li>
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<ul class="page-list">
|
<ul class="page-list">
|
||||||
{{ range .Pages.ByDate.Reverse }}
|
{{ range .Pages.ByDate.Reverse }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
{{ partial "post.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
Below is a list of all the tags ever used on this site.
|
Below is a list of all the tags ever used on this site.
|
||||||
|
|
||||||
<ul class="page-list">
|
<ul>
|
||||||
{{ range sort .Pages "Title" }}
|
{{ range sort .Pages "Title" }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user