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

View file

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