Skip to content

Commit

Permalink
fix: disable translation of cids
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 1, 2021
1 parent 5c6147f commit 5d9b6d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dir-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{{ end }}
</strong>
{{ if .Hash }}
<div class="ipfs-hash">
<div class="ipfs-hash" translate="no">
{{ .Hash }}
</div>
{{ end }}
Expand Down Expand Up @@ -82,7 +82,7 @@
</td>
<td class="no-linebreak">
{{ if .Hash }}
<a class="ipfs-hash" href={{ if $root.DNSLink }}"https://cid.ipfs.io/#{{ .Hash | urlEscape}}" target="_blank" rel="noreferrer noopener"{{ else }}"{{ $root.GatewayURL }}/ipfs/{{ .Hash | urlEscape}}?filename={{ .Name | urlEscape }}"{{ end }}>
<a class="ipfs-hash" translate="no" href={{ if $root.DNSLink }}"https://cid.ipfs.io/#{{ .Hash | urlEscape}}" target="_blank" rel="noreferrer noopener"{{ else }}"{{ $root.GatewayURL }}/ipfs/{{ .Hash | urlEscape}}?filename={{ .Name | urlEscape }}"{{ end }}>
{{ .ShortHash }}
</a>
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions src/dir-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{{ end }}
</strong>
{{ if .Hash }}
<div class="ipfs-hash">
<div class="ipfs-hash" translate="no">
{{ .Hash }}
</div>
{{ end }}
Expand Down Expand Up @@ -81,7 +81,7 @@
</td>
<td class="no-linebreak">
{{ if .Hash }}
<a class="ipfs-hash" href={{ if $root.DNSLink }}"https://cid.ipfs.io/#{{ .Hash | urlEscape}}" target="_blank" rel="noreferrer noopener"{{ else }}"{{ $root.GatewayURL }}/ipfs/{{ .Hash | urlEscape}}?filename={{ .Name | urlEscape }}"{{ end }}>
<a class="ipfs-hash" translate="no" href={{ if $root.DNSLink }}"https://cid.ipfs.io/#{{ .Hash | urlEscape}}" target="_blank" rel="noreferrer noopener"{{ else }}"{{ $root.GatewayURL }}/ipfs/{{ .Hash | urlEscape}}?filename={{ .Name | urlEscape }}"{{ end }}>
{{ .ShortHash }}
</a>
{{ end }}
Expand Down

0 comments on commit 5d9b6d5

Please sign in to comment.