Commit 02d87c18 authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by Christopher Guindon
Browse files

Removed extra 'with' calls, fixed accessibility on resources page


Signed-off-by: Martin Lowe's avatarMartin Lowe <martin.lowe@eclipse-foundation.org>
parent 7a344393
......@@ -15,7 +15,7 @@
{{ if and (eq .Parent.Title "Videos") (.Params.link)}}
<a class="eclipsefdn-video" href="{{.Params.link}}"></a>
{{ else }}
<a class="resources-summary-img" href="{{- with .Params.link | default .RelPermalink }} {{.}} {{- end }}">
<a class="resources-summary-img" href="{{- .Params.link | default .RelPermalink }}">
{{ if .Params.image }}
<img src="{{.Params.image}}" alt="{{ .Title | safeHTML }}">
{{ else }}
......@@ -26,15 +26,15 @@
</a>
{{ end }}
<h4 class="resources-summary-heading"><a href="{{- with .Params.link | default .RelPermalink }} {{.}} {{- end }}">{{ .Title | safeHTML }}</a></h4>
<h4 class="resources-summary-heading"><a href="{{- .Params.link | default .RelPermalink }}">{{ .Title | safeHTML }}</a></h4>
<p class="resources-summary-date">{{ .Date.Format "Monday, Jan 2, 2006" }}</p>
<p class="resources-summary-text">{{ .Summary | truncate 50 }}</p>
{{ if or (eq .Parent.Title "Case Studies") (eq .Parent.Title "White Papers")}}
<p class="resources-summary-links">
{{if .Params.link}}
<a href="{{.Params.link}}"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> <span>PDF Link</span></a>
<a href="{{.Params.link}}"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> <span class="sr-only">PDF Link</span></a>
{{ end }}
<a href="{{.RelPermalink}}"><i class="fa fa-file-text-o" aria-hidden="true"></i> <span>HTML Link</span></a>
<a href="{{.RelPermalink}}"><i class="fa fa-file-text-o" aria-hidden="true"></i> <span class="sr-only">HTML Link</span></a>
</p>
{{ end }}
</div>
\ No newline at end of file
......@@ -5,7 +5,7 @@
{{ range (.Paginator 15).Pages }}
<div class="news-item">
<h4 class="news-heading">
<a href="{{- with .Params.link | default .RelPermalink }} {{.}} {{- end }}" class="media media-link">
<a href="{{- .Params.link | default .RelPermalink }}" class="media media-link">
{{ .Title }}
</a>
</h4>
......
......@@ -7,7 +7,7 @@
{{ if isset .Params "date" }}
<div class="news-item">
<h4 class="news-heading">
<a href="{{- with .Params.link | default .RelPermalink }} {{.}} {{- end }}" class="media media-link">
<a href="{{- .Params.link | default .RelPermalink }}" class="media media-link">
{{ .Title }}
</a>
</h4>
......@@ -27,7 +27,7 @@
{{ if $t.After now }}
<div class="timeline-item">
<p class="margin-bottom-0">
<a href="{{- with .Params.link | default .RelPermalink }} {{.}} {{- end }}">{{ .Title }}</a>
<a href="{{- .Params.link | default .RelPermalink }}">{{ .Title }}</a>
</p>
<!-- <p class="margin-bottom-0">{{ .Params.location }}</p> -->
<p class="timeline-date">{{ .Params.event_date }}</p>
......
......@@ -17,11 +17,6 @@
.resources-summary {
overflow:hidden;
margin-bottom:30px;
.resources-summary-links {
a span {
display:none;
}
}
.resources-summary-img {
display:block;
height:120px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment