diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-26 17:34:17 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-26 17:34:17 +0200 |
| commit | 9b5b232284141fd02e4c8c6b049d0ec4b3d6083c (patch) | |
| tree | 4cd6225d6cd6202d7c4070e30a765c9e07ff5330 | |
| parent | 4556a4ec7753a8cf85e0568e245dc3e7328bc708 (diff) | |
| download | blog-9b5b232284141fd02e4c8c6b049d0ec4b3d6083c.tar.gz blog-9b5b232284141fd02e4c8c6b049d0ec4b3d6083c.zip | |
change date format and page titles
| -rw-r--r-- | layouts/_default/list.html | 4 | ||||
| -rw-r--r-- | layouts/_default/single.html | 4 | ||||
| -rw-r--r-- | layouts/index.html | 3 | ||||
| -rw-r--r-- | layouts/partials/header.html | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b7cef4a..90cf0ae 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,8 +4,8 @@ <h1 class="list-title">{{ .Title }}</h1> {{ range .Data.Pages }} <article itemscope itemtype="http://schema.org/Blog"> - <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</a></h2> - <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span> + <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> + <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></span> </article> {{ end }} </main> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6aadea7..431e193 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,11 +3,11 @@ <main role="main"> <article itemscope itemtype="http://schema.org/BlogPosting"> <h1 class="entry-title" itemprop="headline">{{ .Title }}</h1> - <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span> + <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></span> <section itemprop="entry-text"> {{ .Content }} </section> </article> </main> -{{ partial "footer.html" . }}
\ No newline at end of file +{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 1935813..a3594e6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,11 @@ {{ partial "header.html" . }} <main role="main"> + <h1 class="list-title">Tech</h1> {{ range (where .Data.Pages ".Section" "==" "tech") }} <article itemscope itemtype="http://schema.org/Blog"> <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> - <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span> + <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></span> </article> {{ end }} </main> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1881eff..1cd31d2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,7 +16,7 @@ <div class="header-logo"> <a href="/"><img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}"></a> </div> - {{ if eq $isHomePage true }}<h1 class="site-title">{{ .Site.Title }}</h1>{{ end }} + <h1 class="site-title">{{ .Site.Title }}</h1> </header> <div class="container"> <div class="row"> |
