diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1b04af7..54f1389 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -28,9 +28,6 @@ hasCJKLanguage = true enableGithubIssuesTips = false - # Use description as title in single page, posts page and tags page. - useDescriptionAsTitle = false - # Enable googleAnalytics enableGoogleAnalytics = false diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 860a629..1dbd8c2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,14 +12,11 @@
{{ .Date.Format "Jan 2" }}
- {{ if .Site.Params.useDescriptionAsTitle }} - {{ .Description }} - {{ else }} - {{ .Title }} - {{ end }} + {{ .Title }}
- {{ end }} + {{ end }} + {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c39cec5..4d65570 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,11 +6,7 @@

- {{ if .Site.Params.useDescriptionAsTitle }} - {{ .Description }} - {{ else }} - {{ .Title }} - {{ end }} + {{ .Title }}

{{ .Date.Format "Jan 2, 2006 15:04" }} diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index d519a50..967a926 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -5,12 +5,7 @@
  • - {{ if .Site.Params.useDescriptionAsTitle }} - {{ .Description }}

    {{ .Title | markdownify }}

    - {{ else }} - {{ .Title }}

    {{ .Description | markdownify }}

    - {{ end }} - + {{ .Title }}

    {{ .Description | markdownify }}

  • {{ end }} diff --git a/static/css/style.css b/static/css/style.css index 9267889..6f72759 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -540,7 +540,7 @@ Post List #footer { /*box-shadow: inset 0 1px 0 #eee;*/ - padding: 40px 0 0 0; + /*padding: 40px 0 0 0;*/ margin-top: 100px; }