From dae0d5e7e49923ad9225fa9c04915d674df08698 Mon Sep 17 00:00:00 2001 From: Yujia Chen Date: Sat, 16 May 2020 19:06:39 +0800 Subject: [PATCH] Fix bugs in blog --- themes/project/layouts/archives/list.html | 6 +++--- themes/project/layouts/blog/list.html | 9 ++++----- themes/project/layouts/partials/widgets/archives.html | 2 +- themes/project/layouts/partials/widgets/tags.html | 2 +- themes/project/layouts/tag/list.html | 6 +++--- themes/project/static/css/table.css | 5 +++++ 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/themes/project/layouts/archives/list.html b/themes/project/layouts/archives/list.html index f96c644..af403cc 100644 --- a/themes/project/layouts/archives/list.html +++ b/themes/project/layouts/archives/list.html @@ -22,12 +22,12 @@
-
+
{{range .Data.Pages}} -

{{ .Title }}

+

{{ .Title }}

{{ if isset .Params "author" }} {{ .Params.author }} @@ -61,7 +61,7 @@
-

edit +

edit {{i18n "main_postablog_source"}}

{{partial "widgets/tags.html" . }} {{partial "widgets/archives.html" . }} diff --git a/themes/project/layouts/blog/list.html b/themes/project/layouts/blog/list.html index dadee35..8eb9232 100644 --- a/themes/project/layouts/blog/list.html +++ b/themes/project/layouts/blog/list.html @@ -22,14 +22,13 @@
-
+
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }} {{ range $paginator.Pages }}
-

{{ .Title }} -

+

{{ .Title }}

{{ if isset .Params "author" }} {{ .Params.author }} @@ -61,8 +60,8 @@
-
-

edit +
+

edit {{i18n "main_postablog_source"}}

{{partial "widgets/tags.html" . }} diff --git a/themes/project/layouts/partials/widgets/archives.html b/themes/project/layouts/partials/widgets/archives.html index 2347979..cf81cf3 100644 --- a/themes/project/layouts/partials/widgets/archives.html +++ b/themes/project/layouts/partials/widgets/archives.html @@ -10,7 +10,7 @@
    {{ range (where .Site.RegularPages "Section" "blog").GroupByDate "2006-01" }} -
  • {{ .Key }}({{ len .Pages }})
  • {{ end }} diff --git a/themes/project/layouts/partials/widgets/tags.html b/themes/project/layouts/partials/widgets/tags.html index 930e768..5fe8770 100644 --- a/themes/project/layouts/partials/widgets/tags.html +++ b/themes/project/layouts/partials/widgets/tags.html @@ -10,7 +10,7 @@
    diff --git a/themes/project/layouts/tag/list.html b/themes/project/layouts/tag/list.html index 4468960..9a2772d 100644 --- a/themes/project/layouts/tag/list.html +++ b/themes/project/layouts/tag/list.html @@ -22,12 +22,12 @@
    -
    +
    {{range .Data.Pages}} -

    {{ .Title }}

    +

    {{ .Title }}

    {{ if isset .Params "author" }} {{ .Params.author }} @@ -61,7 +61,7 @@
    -

    edit +

    edit {{i18n "main_postablog_source"}}

    {{partial "widgets/tags.html" . }} {{partial "widgets/archives.html" . }} diff --git a/themes/project/static/css/table.css b/themes/project/static/css/table.css index 13049b1..2ff249e 100644 --- a/themes/project/static/css/table.css +++ b/themes/project/static/css/table.css @@ -24,4 +24,9 @@ table th { thead th { border-width: 0 0 2px; color: #363636; +} + +.container .col-md-9 img{ + height: auto; + max-width: 100%; } \ No newline at end of file -- GitLab