Skip to content

Commit

Permalink
Merge pull request ipfs#56 from ipfs/fix/disable-i18n-for-cids
Browse files Browse the repository at this point in the history
* fix: disable translation of cids
* fix: explicit language of the document
  • Loading branch information
lidel authored Oct 1, 2021
2 parents 4ca119c + 8deaff5 commit 67e75cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dir-index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{ $root := . }}
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
Expand Down 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
6 changes: 3 additions & 3 deletions src/dir-index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{ $root := . }}
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
Expand Down 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 67e75cd

Please sign in to comment.