🔧 Chore: replace theme logo icon

This commit is contained in:
Cell
2022-02-15 22:42:14 +08:00
parent 5f6b08d383
commit 231cfc31cf
13 changed files with 29 additions and 29 deletions
-8
View File
@@ -59,12 +59,4 @@ body {
img {
@include object-fit(contain);
}
i.logo-icon{
width: 2em;
.fa-ban {
color: $global-logo-icon-color;
}
}
+4
View File
@@ -17,6 +17,10 @@ footer {
margin-right: .25rem;
}
.fixit-icon {
top: .25em;
}
.animate-icon {
color: #dc143c;
animation: icon-animate 1.33s ease-in-out infinite;
+9
View File
@@ -15,3 +15,12 @@ img.emoji {
margin: 0 .05em 0 .1em;
vertical-align: -.1em;
}
.fixit-icon{
display: inline-block;
height: 1.5em;
width: 1.5em;
line-height: 1.5em;
position: relative;
vertical-align: text-bottom;
}
File diff suppressed because one or more lines are too long
-3
View File
@@ -9,9 +9,6 @@ $global-font-size: 16px;
$global-font-weight: 400;
$global-line-height: 1.5rem;
// Color of the theme logo
$global-logo-icon-color: Tomato !default;
// Color of the background
$global-background-color: #fff !default;
$global-background-color-dark: #292a2d !default;
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -456,11 +456,11 @@ enableEmoji = true
[languages.zh-cn.params.watermark]
enable = true
# 水印内容 (允许 HTML 格式)
content = '<i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i> FixIt 主题'
content = '<img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt 主题'
# 水印透明度
opacity = 0.02
# 单水印高度 单位:px
height = 23
height = 21
[params]
# FixIt theme version
@@ -499,13 +499,13 @@ enableEmoji = true
[params.header.title]
# URL of the LOGO
# LOGO 的 URL
logo = ""
logo = "/svg/fixit.svg"
# title name
# 标题名称
name = "FixIt"
# you can add extra information before the name (HTML format is supported), such as icons
# 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标
pre = '<i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i>'
pre = ""
# you can add extra information after the name (HTML format is supported), such as icons
# 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标
post = ""
@@ -854,7 +854,7 @@ enableEmoji = true
enable = true
# watermark's text (HTML format is supported)
# 水印内容 (允许 HTML 格式)
content = '<i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i> FixIt Theme'
content = '<img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt Theme'
# watermark's transparency
# 水印透明度
opacity = 0.02
@@ -866,7 +866,7 @@ enableEmoji = true
width = 150
# watermark's height. unit: px
# 单水印高度 单位:px
height = 23
height = 21
# row spacing of watermarks. unit: px
# 水印行间距 单位:px
rowSpacing = 60
+1 -1
View File
@@ -18,7 +18,7 @@ math:
[![GitHub forks](https://img.shields.io/github/forks/Lruihao/FixIt?style=social)](https://github.com/Lruihao/FixIt/fork)
{{< /style >}}
> [<i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i> FixIt](https://github.com/Lruihao/FixIt) is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/) developed by [Lruihao](https://lruihao.cn).
> [<img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt](https://github.com/Lruihao/FixIt) is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/) developed by [Lruihao](https://lruihao.cn).
>
> It is based on the original [LoveIt Theme](https://github.com/dillonzq/LoveIt), [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
+1 -1
View File
@@ -18,7 +18,7 @@ math:
[![GitHub forks](https://img.shields.io/github/forks/Lruihao/FixIt?style=social)](https://github.com/Lruihao/FixIt/fork)
{{< /style >}}
> [<i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i> FixIt](https://github.com/Lruihao/FixIt) 是一个由 [Lruihao](https://lruihao.cn) 开发的**简洁**、**优雅**且**高效**的 [Hugo](https://gohugo.io/) 博客主题。
> [<img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt](https://github.com/Lruihao/FixIt) 是一个由 [Lruihao](https://lruihao.cn) 开发的**简洁**、**优雅**且**高效**的 [Hugo](https://gohugo.io/) 博客主题。
>
> 它的原型基于 [LoveIt 主题](https://github.com/dillonzq/LoveIt)[LeaveIt 主题](https://github.com/liuzc/LeaveIt) 和 [KeepIt 主题](https://github.com/Fastbyte01/KeepIt)。
+1 -1
View File
@@ -12,7 +12,7 @@
{{- if ne .Site.Params.footer.hugo false -}}
<div class="footer-line powered">
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="external nofollow noopener noreffer" title="Hugo %v">Hugo</a>` hugo.Version -}}
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/Lruihao/FixIt" target="_blank" rel="external nofollow noopener noreffer" title="FixIt %v"><i class="fa-stack fa-xs logo-icon"><i class="fas fa-ban fa-stack-2x"></i><i class="fas fa-bug fa-stack-1x"></i></i> FixIt</a>` -}}
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/Lruihao/FixIt" target="_blank" rel="external nofollow noopener noreffer" title="FixIt %v"><img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt</a>` -}}
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
</div>
{{- end -}}
+1 -1
View File
@@ -693,7 +693,7 @@ class Theme {
initWatermark() {
this.config.watermark.enable && new Watermark({
content: this.config.watermark.content || '<i class="fa-stack fa-xs logo-icon"><i class="fas fa-bug fa-stack-1x"></i><i class="fas fa-ban fa-stack-2x"></i></i> FixIt Theme',
content: this.config.watermark.content || '<img class="fixit-icon" src="/svg/fixit.svg" alt="FixIt logo" /> FixIt Theme',
appendTo:this.config.watermark.appendTo || '.wrapper>.main',
opacity: this.config.watermark.opacity,
width: this.config.watermark.width,
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" version="1.1"><defs><style>.fixit-ban{opacity:.9;}</style></defs><path d="M159.12 338.69l24.8-16.54a78.87 78.87 0 0 1-6.77-22.72l-30.88 4.41a16 16 0 0 1-4.54-31.68l34.27-4.9v-.76l98.94 98.95a76.89 76.89 0 0 1-71.68-17.73l-26.39 17.59c-.15.11-.31.21-.47.31a16 16 0 0 1-17.28-26.93zm224.72-48.42a16 16 0 0 0-13.57-18.11l-34.27-4.9V244.9l34.27-4.9a16 16 0 1 0-4.54-31.68l-30.54 4.36a79.31 79.31 0 0 0-6.85-22.85l24.54-16.36a16 16 0 1 0-17.29-26.93l-.46.31-26 17.34a79.9 79.9 0 0 0-102.64-3l139.83 139.88 19.41 2.77a16 16 0 0 0 18.11-13.57z" fill="#00d26a" class="fixit-bug"/><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 432c-101.46 0-184-82.54-184-184a182.84 182.84 0 0 1 33.38-105.37l256 256A182.86 182.86 0 0 1 256 440zm150.62-78.63l-256-256A182.84 182.84 0 0 1 256 72c101.46 0 184 82.54 184 184a182.84 182.84 0 0 1-33.38 105.37z" fill="#ff6347" class="fixit-ban"/></svg>

After

Width:  |  Height:  |  Size: 968 B