Skip to content

Commit

Permalink
The ="true" is not needed after data-proofer-ignore #htmltest
Browse files Browse the repository at this point in the history
Also add non-breaking space after the $secure_icon.
  • Loading branch information
kaushalmodi committed Sep 4, 2018
1 parent 52e1ccb commit bf2594a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/layouts/_default/examples.html
Expand Up @@ -76,9 +76,9 @@ <h1>{{ .Title }}</h1>
{{ $secure_icon := "" }}
{{ $user_site_is_nonsecure := findRE "^http://" $val.site }}
{{ if $user_site_is_nonsecure }}
{{ $data_proofer_ignore_tag = ` data-proofer-ignore="true"` }}
{{ $data_proofer_ignore_tag = " data-proofer-ignore" }}
{{ else }}
{{ $secure_icon = "🔐 " }}
{{ $secure_icon = "🔐&nbsp;" | safeHTML }}
{{ end }}
<td>{{ printf `%s<a href="%s"%s>%s</a>` $secure_icon $val.site $data_proofer_ignore_tag ($val.site | replaceRE "^https?://" "" | replaceRE "/$" "") | safeHTML }}</td>
<td>{{ printf `<a href="%s">%s</a>` $org_dir_link ($org_dir | default (or $val.org_src_desc "<em>repo root</em>") | replaceRE "[^<]*/" "") | safeHTML }}</td>
Expand Down

0 comments on commit bf2594a

Please sign in to comment.