1
Fork 0

Use link title where necessary

This commit is contained in:
Jake Howard 2017-04-24 09:11:36 +01:00
parent 733bfb46f7
commit 94836013da
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
{{ if .Params.image }}
<span class="image featured"><img src="{{ .Params.image }}" alt="{{ .Title }} featured image" /></span>
{{ end }}
<h3>{{ title .Title }}</h3>
<h3>{{ title .LinkTitle }}</h3>
<p>{{ .Summary }}</p>
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>

View file

@ -4,11 +4,11 @@
<ul>
{{ range where .Site.Pages.ByTitle "Kind" "section" }}
<li>
<a href="{{ .Permalink }}">{{ title .Title }}</a>
<a href="{{ .Permalink }}">{{ title .LinkTitle }}</a>
{{ if .Pages }}
<ul>
{{ range first 4 .Pages.ByDate }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
<li><a href="{{ .Permalink }}"><i>See more {{ lower .Title }}</i></a></li>
</ul>
@ -18,7 +18,7 @@
{{ range where .Site.Pages.ByTitle "Kind" "page" }}
{{ if eq .Section "" }}
<li><a href="{{ .Permalink }}">{{ title .Title }}</a></li>
<li><a href="{{ .Permalink }}">{{ title .LinkTitle }}</a></li>
{{ end }}
{{ end }}
</ul>