remove useDescriptionAsTitle

feature/cover-image
nodejh 8 years ago
parent 7bf1ce511a
commit 2ad2e71916

@ -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

@ -12,14 +12,11 @@
<div class="post-item">
<div class="post-time">{{ .Date.Format "Jan 2" }}</div>
<a href="{{ .Permalink }}" class="post-link">
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }}
{{ else }}
{{ .Title }}
{{ end }}
{{ .Title }}
</a>
</div>
{{ end }} </ul>
{{ end }}
</ul>
</div>
{{ end }}
{{ partial "footer.html" . }}

@ -6,11 +6,7 @@
<article class="post">
<header>
<h1>
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }}
{{ else }}
{{ .Title }}
{{ end }}
{{ .Title }}
</h1>
<h2 class="headline">
{{ .Date.Format "Jan 2, 2006 15:04" }}

@ -5,12 +5,7 @@
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
<a href='{{ .Permalink }}'>
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }} <h2>{{ .Title | markdownify }}</h2>
{{ else }}
{{ .Title }} <h2>{{ .Description | markdownify }}</h2>
{{ end }}
{{ .Title }} <h2>{{ .Description | markdownify }}</h2>
</a>
</li>
{{ end }}

@ -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;
}

Loading…
Cancel
Save