fix(css): fix some css bugs

This commit is contained in:
Dillon
2020-01-31 18:46:28 +08:00
parent 7e6236361f
commit 344f0a9f41
36 changed files with 705 additions and 429 deletions

View File

@@ -1,37 +1,49 @@
<feed xmlns="http://www.w3.org/2005/Atom">
{{ if .IsHome }}
<title>{{ .Title }}</title>
{{ else }}
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ end }}
{{- with .Title }}{{ . }} | {{ end }}{{ .Site.Title -}}
<link href="{{ .Permalink }}index.xml" rel="self"/>
<link href="{{ .Permalink }}"/>
{{ if not .Date.IsZero }}
<updated>{{ .Date.Format "02-01-2006T15:04:05-07:00" | safeHTML }}</updated>
{{ end }}
<id>{{ .Permalink }}</id>
{{- if not .Date.IsZero -}}
<updated>
{{- .Date.Format "02-01-2006T15:04:05-07:00" | safeHTML -}}
</updated>
{{- end -}}
<id>
{{- .Permalink -}}
</id>
<author>
{{ with .Site.Author.name }}
{{- with .Site.Author.name -}}
<name>{{ . }}</name>
{{ end }}
{{ with $.Site.Author.email }}
{{- end -}}
{{- with .Site.Author.email -}}
<email>{{ . }}</email>
{{ end }}
{{- end -}}
</author>
<generator>Hugo -- gohugo.io</generator>
{{ range first 15 (where .Data.Pages "Type" "in" .Site.Params.mainSections) }}
{{- range first 15 (where .Data.Pages "Type" "in" .Site.Params.mainSections) -}}
<entry>
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
<title type="html">
{{- printf "<![CDATA[%s]]>" .Title | safeHTML -}}
</title>
<link href="{{ .Permalink }}"/>
<id>{{ .Permalink }}</id>
{{ with .Site.Author.name }}
<id>
{{- .Permalink -}}
</id>
{{- with .Site.Author.name -}}
<author>
<name>{{ . }}</name>
<name>
{{- . -}}
</name>
</author>
{{ end }}
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
{{- end -}}
<published>
{{- .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}
</published>
<updated>
{{- .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}
</updated>
<content type="html">
{{- printf "<![CDATA[%s]]>" .Content | safeHTML -}}
</content>
</entry>
{{ end }}
</feed>
{{- end -}}
</feed>