remove useDescriptionAsTitle

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

@ -28,9 +28,6 @@ hasCJKLanguage = true
enableGithubIssuesTips = false enableGithubIssuesTips = false
# Use description as title in single page, posts page and tags page.
useDescriptionAsTitle = false
# Enable googleAnalytics # Enable googleAnalytics
enableGoogleAnalytics = false enableGoogleAnalytics = false

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

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

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

@ -540,7 +540,7 @@ Post List
#footer { #footer {
/*box-shadow: inset 0 1px 0 #eee;*/ /*box-shadow: inset 0 1px 0 #eee;*/
padding: 40px 0 0 0; /*padding: 40px 0 0 0;*/
margin-top: 100px; margin-top: 100px;
} }

Loading…
Cancel
Save