修改模板;支持渐变色category标签
This commit is contained in:
parent
9acfbe2065
commit
470b4c75ea
@ -4,7 +4,7 @@ description: "奇技淫巧"
|
||||
slug: "奇技淫巧"
|
||||
image: "https://emberauthor.oss-cn-beijing.aliyuncs.com/images/bed/202502111954851.jpeg"
|
||||
style:
|
||||
background: "#E6579A"
|
||||
background: "linear-gradient(to right,rgb(18, 11, 157) 0%,rgb(18, 68, 206) 35%,rgb(0, 106, 255) 100%)"
|
||||
color: "#fff"
|
||||
|
||||
---
|
@ -4,7 +4,7 @@ description: "关于实习的点滴……"
|
||||
slug: "实习"
|
||||
image: "https://emberauthor.oss-cn-beijing.aliyuncs.com/images/category_bg/实习小记.jpeg"
|
||||
style:
|
||||
background: "#FF4500"
|
||||
background: "linear-gradient(90deg, rgba(242,93,0,1) 0%, rgba(235,91,8,1) 35%, rgba(255,29,0,1) 100%)"
|
||||
color: "#fff"
|
||||
|
||||
---
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"Target":"/scss/style.min.b2b93b6e6afa51ad499025fe23b64016988cc4354b430ce91139f7bc0d393951.css","MediaType":"text/css","Data":{"Integrity":"sha256-srk7bmr6Ua1JkCX+I7ZAFpiMxDVLQwzpETn3vA05OVE="}}
|
||||
{"Target":"/scss/style.min.40e8155bfa2ddbd9e7a0338c33847e7ec9ee952ac6ee30bee252df13a7ac714d.css","MediaType":"text/css","Data":{"Integrity":"sha256-QOgVW/ot29nnoDOMM4R+fsnulSrG7jC+4lLfE6escU0="}}
|
@ -2,7 +2,7 @@
|
||||
{{ if .Params.categories }}
|
||||
<header class="article-category">
|
||||
{{ range (.GetTerms "categories") }}
|
||||
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
|
||||
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background: {{ .background | safeCSS }}; color: {{ .color }};"{{ end }}>
|
||||
{{ .LinkTitle }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user