mark links visited when read

This commit is contained in:
Ryan Stafford 2024-04-28 11:41:14 -04:00
parent 4483159c2f
commit 77abd06a2c
3 changed files with 8 additions and 5 deletions

View file

@ -32,8 +32,8 @@ input[type=text], input[type=password], textarea {
.title a { .title a {
color: #dedede; color: #dedede;
} }
.title a:visited { .title a:visited, .title.visited a {
color: #a6a6a6 color: #a6a6a6 !important;
} }
.message b { .message b {
color: #ddd; color: #ddd;

View file

@ -115,6 +115,9 @@ summary {
font-size: 10px; font-size: 10px;
margin-bottom: 2px; margin-bottom: 2px;
} }
.post .title.visited a {
color: #551A8B;
}
.activity .post .title a { .activity .post .title a {
font-size: medium; font-size: medium;
} }
@ -1049,8 +1052,8 @@ body.dark {
.dark .title a { .dark .title a {
color: #dedede; color: #dedede;
} }
.dark .title a:visited { .dark .title a:visited, .dark .title.visited a {
color: #a6a6a6 color: #a6a6a6 !important;
} }
.dark .message b { .dark .message b {
color: #ddd; color: #ddd;

View file

@ -33,7 +33,7 @@
</div> </div>
{{ end }} {{ end }}
<div class="entry"> <div class="entry">
<div class="title"> <div class="title{{ if .Read}} visited{{end}}">
<a class="url" <a class="url"
href="{{ if .Post.URL.IsValid }}{{ .Post.URL }}{{ else }}/{{ .State.Host }}/post/{{ .Post.ID }}{{ end }}" href="{{ if .Post.URL.IsValid }}{{ .Post.URL }}{{ else }}/{{ .State.Host }}/post/{{ .Post.ID }}{{ end }}"
{{ if .State.LinksInNewWindow }} target="_blank" {{ end }}> {{ if .State.LinksInNewWindow }} target="_blank" {{ end }}>