site appearance

master
John Montagu, the 4th Earl of Sandvich 2023-07-04 01:35:55 -07:00
parent d0b550789d
commit d6def0b961
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
5 changed files with 37 additions and 4 deletions

View File

@ -9,6 +9,7 @@
{{ partial "post-info.html" . }} {{ partial "post-info.html" . }}
{{ end }} {{ end }}
{{ .Content }} {{ .Content }}
<h2 id="comments">Comments</h2>
{{ partial "remark42.html" . }} {{ partial "remark42.html" . }}
{{ partial "footer.html" }} {{ partial "footer.html" }}
</div> </div>

View File

@ -0,0 +1,2 @@
<div>
</div>

View File

@ -1,14 +1,23 @@
<div class="post-item"> {{ $class := cond .Truncated "post-item more" "post-item" }}
<div class="{{ $class }}">
<h1> <h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1> </h1>
{{ if (eq .Section "posts") }} {{ if (eq .Section "posts") }}
{{ partial "post-info-small.html" . }} {{ partial "post-info-small.html" . }}
{{ end }} {{ end }}
{{ if (and .Truncated (gt (len .Summary) 0) .Truncated) }} {{ if (gt (len .Summary) 0) }}
<p> <p>
{{ .Summary }} {{ .Summary }}
<a href="{{ .RelPermalink }}">(read more)</a>
</p> </p>
{{ if .Truncated }}
<div class="read-more-button">
<a href="{{ .RelPermalink }}" class="button">
<button>
Read more
</button>
</a>
</div>
{{ end }}
{{ end }} {{ end }}
</div> </div>

View File

@ -20,7 +20,7 @@
--cyan: #56b6c2; --cyan: #56b6c2;
--purple: #c678dd; --purple: #c678dd;
--accent: #61afef; --accent: #61afef;
--bg0: #f3f3f3; --bg0: #ffffff;
--bg1: #ededed; --bg1: #ededed;
--bg2: #dadada; --bg2: #dadada;
--bg3: #afafaf; --bg3: #afafaf;

View File

@ -43,6 +43,12 @@ div.post-list {
margin-bottom: 0; margin-bottom: 0;
} }
.post-item.more p {
background: -webkit-linear-gradient(var(--fg0) 50%, var(--bg0) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.post-item h1 a:hover { .post-item h1 a:hover {
color: unset; color: unset;
background-color: unset; background-color: unset;
@ -52,3 +58,18 @@ div.post-list {
.tag-list li { .tag-list li {
font-family: var(--monospace); font-family: var(--monospace);
} }
.post-item:hover .read-more-button {
opacity: 1;
transition-duration: 200ms;
}
.read-more-button {
opacity: 0;
position: absolute;
transition-duration: 200ms;
}
.read-more-button button {
vertical-align: middle;
}