diff options
author | Yuanfei He <lhe868@gmail.com> | 2021-06-22 04:56:30 +0300 |
---|---|---|
committer | Yuanfei He <lhe868@gmail.com> | 2021-06-22 04:56:30 +0300 |
commit | 80b338d8f5a4923c632707afcd1c30a080899899 (patch) | |
tree | 621016e3c75854a7690bb63dd31ef77abcd93552 | |
parent | ffe1f0eb38796190f39af405c662fe89a50964fb (diff) |
:art: update theme
-rw-r--r-- | layouts/_default/baseof.html | 14 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 | ||||
-rw-r--r-- | static/css/style.css | 41 |
3 files changed, 38 insertions, 19 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f430727..feb362d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,8 +5,14 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="google-site-verification" content="{{ .Site.Params.googleSiteVerification }}" /> - <meta name="Description" content="{{ .Site.Params.description }}"> - <meta name="author" content="{{ .Site.Params.author}} <{{ .Site.Params.email}}>"> +{{ if .IsHome }} + <meta name="description" content="{{ .Site.Params.description }}"> +{{ end }} + {{ if not .IsHome }} + <meta name="description" content="{{ .Summary | plainify | safeHTML }}"> + {{ end }} + + <meta name="author" content="{{ .Site.Params.author}},{{ .Site.Params.email}}"> <meta name="keywords" content="{{ .Site.Params.keywords}}"> <title> {{ if .IsHome }} @@ -21,6 +27,10 @@ {{ if .Site.Params.securityPolicy }} <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> {{ end }} + +<link rel="preconnect" href="https://fonts.gstatic.com"> +<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500&display=swap" rel="stylesheet"> + <link rel="stylesheet" href="/css/bootstrap.min.css" media="all"> <link rel="stylesheet" href="/css/bootstrap-theme.min.css"> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index b1a5dbe..0a6fa5b 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -15,7 +15,7 @@ <ul class="nav navbar-nav"> {{ $siteURL:= "/" | absLangURL }} {{ range .Site.Menus.main }} - <li {{ if eq .URL $siteURL }} class="active" {{end}} ><a href="{{.URL}}">{{.Name}}</a></li> + <li {{ if eq .URL $siteURL }} class="active" {{end}} ><a href="{{.URL}}" rel="nofollow">{{.Name}}</a></li> {{ end }} <!-- <li {{ if eq $url $siteURL }} class="active" {{end}} ><a href="/">Home</a></li> diff --git a/static/css/style.css b/static/css/style.css index 11f0a7b..e7ca6a5 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -10,22 +10,23 @@ padding-top: 25px; padding-bottom: 0px; /* font-family: BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif,system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei" */ -font-family: Menlo,Monaco,Consolas,"Courier New",monospace + // font-family: sans-serif,Menlo,Monaco,Consolas,"Courier New",monospace; + font-family: 'Noto Serif SC', serif; } - pre { - display: block; - padding: 0px; - margin: 0 0 0px; - font-size: 13px; - line-height: 1.42857143; +pre { + display: block; + padding: 0px; + margin: 0 0 0px; + font-size: 13px; + line-height: 1.42857143; color: #333; - word-break: break-all; - word-wrap: break-word; - background-color: #f5f5f5; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; border: 0px solid #ccc; - border-radius: 0px; - } + border-radius: 0px; +} .articleBody { padding:10px 0 10px 0; @@ -211,6 +212,14 @@ td { font-size: 26px; } +.pull-left { + width: 30%; + text-align: left; +} +.pull-right { + width: 30%; + text-align: right; +} .pull-right a{ padding-left: 10px; color: #888; @@ -323,8 +332,8 @@ figure { } figure.floatright { - max-width: 35%; - width: auto\9*0.3; /* ie8 */ + max-width: 45%; + width: auto\9*0.3; /* ie8 */ height: auto; padding-left: 20px; float: right !important; @@ -332,8 +341,8 @@ figure.floatright { } figure.floatleft { - max-width: 35%; - width: auto\9*0.3; /* ie8 */ + max-width: 45%; + width: auto\9*0.3; /* ie8 */ height: auto; padding-right: 20px; float: left !important; |