Browse Source

Update homepage & fix header link color

Track3 1 year ago
parent
commit
8698dd7438
2 changed files with 5 additions and 3 deletions
  1. 3 1
      assets/scss/style.scss
  2. 2 2
      layouts/index.html

+ 3 - 1
assets/scss/style.scss

@@ -93,7 +93,6 @@ h1 {
   span {
     margin-right: .5em;
     color: var(--c-txt-alt);
-    font-style: italic;
   }
 
   a {
@@ -171,6 +170,9 @@ a {
     font-style: italic;
     text-decoration: none;
     color: var(--c-txt-alt);
+    &:hover {
+      color: $accent;
+    }
   }
 }
 

+ 2 - 2
layouts/index.html

@@ -8,11 +8,11 @@
 		{{- end }}
 	</main>
 	<section class="wrapper">
-		<h2>Recent Posts / 最新文章</h2>
+		<h2>Latest / 最近 <a href="/writing" class="tdln">…</a></h2>
 		<ul class="recent-posts-list lsc">
 			{{ range first 3 (where site.RegularPages "Type" "in" "writing") -}}
 			<li>
-				<span>{{ .Date.Local.Format "2006-01-02" }} </span>
+				<span>{{ .Date.Local.Format "2006-01-02" }}</span>
 				<a href="{{.RelPermalink}}">{{.Title}}</a>
 			</li>
 			{{ end }}