浏览代码

Minor update

Track3 3 年之前
父节点
当前提交
150c7fd563
共有 3 个文件被更改,包括 4 次插入8 次删除
  1. 2 2
      config.toml
  2. 1 3
      layouts/_default/single.html
  3. 1 3
      layouts/posts/single.html

+ 2 - 2
config.toml

@@ -59,8 +59,8 @@ googleAnalytics = "UA-125057333-1"
     weight = 20
 
   [[menu.main]]
-    name = "Friends"
-    url = "/friends/"
+    name = "Links"
+    url = "/links/"
     weight = 30
 
   [[menu.main]]

+ 1 - 3
layouts/_default/single.html

@@ -1,7 +1,5 @@
 {{ define "head" }}
-	{{ if .Params.featuredImg -}}
-	<style>:root{ --bg-img: url({{.Params.featuredImg | absURL}});}</style>
-	{{- else if .Params.images -}}
+	{{ if .Params.images -}}
 		{{- range first 1 .Params.images -}}
 		<style>:root{ --bg-img: url({{. | absURL}});}</style>
 		{{- end -}}

+ 1 - 3
layouts/posts/single.html

@@ -1,7 +1,5 @@
 {{ define "head" }}
-	{{ if .Params.featuredImg -}}
-	<style>:root{ --bg-img: url({{.Params.featuredImg | absURL}});}</style>
-	{{- else if .Params.images -}}
+	{{ if .Params.images -}}
 		{{- range first 1 .Params.images -}}
 		<style>:root{ --bg-img: url({{. | absURL}});}</style>
 		{{- end -}}