Browse Source

Minor fixes

Track3 3 years ago
parent
commit
4b5466d31d

+ 0 - 0
assets/scss/partials/header.scss → assets/scss/partials/_header.scss


+ 2 - 3
assets/scss/style.scss

@@ -38,7 +38,7 @@ textarea {
   background-color: var(--c-bg);
   line-height: 1.6em;
   font-family: $fonts;
-  letter-spacing: .06em;
+  letter-spacing: 1px;
   transition: background-color .5s, color .5s;
 }
 
@@ -68,7 +68,6 @@ code {
   border-radius: 3px;
   padding: 0 3px;
   margin: 0 4px;
-  letter-spacing: normal;
 }
 
 blockquote {
@@ -80,7 +79,7 @@ blockquote {
     position: absolute;
     opacity: 0.3;
     font-size: 80px;
-    transform: translate(-16px,5px);
+    transform: translate(-64px,5px);
   }
 
   p {

+ 2 - 0
config.toml

@@ -31,6 +31,8 @@ googleAnalytics = "UA-125057333-1"
   dateformNum     = "2006-01-02"
   dateformNumTime = "2006-01-02 15:04"
 
+  description = "Track3的个人博客"
+  keywords = "Track3,blog,博客,个人网站,中文独立博客"
   accentColor = "#54BAB9"
   images = ["apple-touch-icon.png"]
   # bgImg = "/img/bg.jpg"

+ 2 - 2
layouts/404.html

@@ -13,8 +13,8 @@
 		<h1>404</h1>
 		<p>Oops, page not found…</p>
 		<p class="btn-404">
-			<a href="{{.Site.BaseURL}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> Home</a>
-			<a href="{{ "posts" | absURL }}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-archive"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg> Archives</a>
+			<a href="{{.Site.BaseURL}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>&nbsp;Home</a>
+			<a href="{{ "posts" | absURL }}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-archive"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg>&nbsp;Archives</a>
 		</p>
 	</div>
 {{ end }}

+ 4 - 1
layouts/_default/baseof.html

@@ -8,6 +8,10 @@
 	<meta name="color-scheme" content="dark light">
 	<meta name="theme-color" content="{{$.Site.Params.accentColor}}">
 	<meta name="msapplication-TileColor" content="{{$.Site.Params.accentColor}}">
+	<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
+	{{ if .IsHome -}}
+	<meta name="keywords" content="{{ with .Site.Params.keywords }}{{ . }}{{ end }}">
+	{{ end }}
 	{{- template "_internal/schema.html" . }}
 	{{- template "_internal/opengraph.html" . }}
 	{{- template "_internal/twitter_cards.html" . }}
@@ -18,7 +22,6 @@
 	<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#54bab9">
 	<link rel="shortcut icon" href="/favicon.ico">
 	<title>{{.Title}}</title>
-	<link rel="dns-prefetch" href="//cdn1.lncld.net">
 	<link rel="dns-prefetch" href="//cdn.jsdelivr.net">
 	{{ range .AlternativeOutputFormats -}}
 	{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}

+ 1 - 1
layouts/_default/list.html

@@ -5,7 +5,7 @@
 {{ define "main" }}
 	<main id="site-main" class="wrapper">
 		<div class="title-area">
-			<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" alt="Logo"></a>
+			<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" width="180" height="180" alt="Logo"></a>
 			<h1 id="page-title" class="title-area-l">{{ .Title }}</h1>
 		</div>
 		{{- if .Content }}

+ 1 - 1
layouts/_default/single.html

@@ -15,7 +15,7 @@
 {{ define "main" }}
 	<main id="site-main" class="wrapper">
 		<div class="title-area">
-			<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" alt="Logo"></a>
+			<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" width="180" height="180" alt="Logo"></a>
 			<h1 id="page-title" class="title-area-l">{{ .Title }}</h1>
 		</div>
 		<div class="content">

+ 1 - 1
layouts/posts/single.html

@@ -17,7 +17,7 @@
 		<article>
 			<header class="post-header">
 				<div class="title-area">
-					<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" alt="Logo"></a>
+					<a id="home-btn" title="{{.Site.Title}}" href="{{.Site.BaseURL}}"><img src="/apple-touch-icon.png" width="180" height="180" alt="Logo"></a>
 					<div class="title-area-l">
 						<div id="post-header-date">{{ .Date.Format .Site.Params.dateform }}</div>
 						<h1 id="page-title">{{ .Title }}</h1>