Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
leovan committed Feb 26, 2023
1 parent d31c87b commit 0d48728
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>{{ if ne .Title .Site.Title }}{{ with .Title }}{{.}}{{ end }}{{ end }} - {{ .Site.Title }} 上的近期内容</description>
<description>{{ if ne .Title .Site.Title }}{{ with .Title }}{{.}}{{ end }}{{ end }} - {{ .Site.Title }} 上的近期内容</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/header_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

{{ partial "google_analytics.html" . }}

{{ if and (not .Params.disable_mathjax) (or (eq .Kind "404") (and (not .IsHome) .Content)) }}
{{ if and (and (and (not .Params.disable_mathjax) (ne .Kind "404")) (not .IsHome)) .Content }}
{{ partial "header_mathjax.html" . }}
{{ end }}

{{ if and (not .Params.disable_prismjs) (or (eq .Kind "404") (and (not .IsHome) .Content)) }}
{{ if and (and (and (not .Params.disable_prismjs) (ne .Kind "404")) (not .IsHome)) .Content }}
{{ partial "header_prismjs.html" . }}
{{ end }}

{{ if and (not .Params.disable_adsense) (or (eq .Kind "404") (and (not .IsHome) .Content)) }}
{{ if and (not .Params.disable_adsense) (ne .Kind "404") }}
{{ partial "google_adsense.html" . }}
{{ end }}

Expand Down
14 changes: 10 additions & 4 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* variables */
:root {
--gap: 24px;
--content-gap: 20px;
--content-gap: 24px;
--nav-width: 720px;
--main-width: 720px;
--header-height: 60px;
Expand Down Expand Up @@ -594,20 +594,22 @@ body:not(.dark) #sun {
margin: 8px 0;
color: var(--secondary);
font-size: 0.8em;
height: 3.2em;
line-height: 1.6em;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
height: 3.2em;
text-overflow: ellipsis;
word-break: break-all;
word-break: break-word;
}

.post-entry-footer {
color: var(--secondary);
font-size: 0.8em;
overflow: hidden;
height: 2em;
line-height: 2em;
}

.post-entry-link {
Expand Down Expand Up @@ -639,7 +641,7 @@ body:not(.dark) #sun {
box-shadow: 0 1px 0 var(--primary);
}

.post-entry-tag{
.post-entry-tag {
padding: 4px 8px 4px 8px;
color: var(--secondary);
font-size: 14px;
Expand Down Expand Up @@ -1107,6 +1109,10 @@ div.code-toolbar > .toolbar {
display: none;
}

.post-entry-right {
padding: var(--content-gap) var(--gap);
}

/* footer */
.footer {
padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
Expand Down

0 comments on commit 0d48728

Please sign in to comment.