Unverified Commit 67e75cdb authored by Marcin Rataj's avatar Marcin Rataj Committed by GitHub

Merge pull request #56 from ipfs/fix/disable-i18n-for-cids

* fix: disable translation of cids
* fix: explicit language of the document
parents 4ca119ce 8deaff50
<!DOCTYPE html> <!DOCTYPE html>
{{ $root := . }} {{ $root := . }}
<html> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS"> <meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
{{ end }} {{ end }}
</strong> </strong>
{{ if .Hash }} {{ if .Hash }}
<div class="ipfs-hash"> <div class="ipfs-hash" translate="no">
{{ .Hash }} {{ .Hash }}
</div> </div>
{{ end }} {{ end }}
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</td> </td>
<td class="no-linebreak"> <td class="no-linebreak">
{{ if .Hash }} {{ 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 }} {{ .ShortHash }}
</a> </a>
{{ end }} {{ end }}
......
<!DOCTYPE html> <!DOCTYPE html>
{{ $root := . }} {{ $root := . }}
<html> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS"> <meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
{{ end }} {{ end }}
</strong> </strong>
{{ if .Hash }} {{ if .Hash }}
<div class="ipfs-hash"> <div class="ipfs-hash" translate="no">
{{ .Hash }} {{ .Hash }}
</div> </div>
{{ end }} {{ end }}
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</td> </td>
<td class="no-linebreak"> <td class="no-linebreak">
{{ if .Hash }} {{ 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 }} {{ .ShortHash }}
</a> </a>
{{ end }} {{ end }}
......
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