Skip to content

Commit 715a346

Browse files
committed
Use file description to house checksum
Fixes #281
1 parent ee6fc5e commit 715a346

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ For example:
9292

9393
To create a file download snippet:
9494

95-
<txp::media_file category="" filename="" sha256="" />
95+
<txp::media_file category="" filename="" />
9696

97-
`category` and `filename` are interchangeable (use one or the other, where appropriate) - if both are provided then `category` is used in preference and `filename` is ignored. `sha256` (SHA256 checksum hash) is optional, but should be provided if possible. If not used, remove this attribute from your shortcode.
97+
`category` and `filename` are interchangeable (use one or the other, where appropriate) - if both are provided then `category` is used in preference and `filename` is ignored.
9898

9999
For example:
100100

src/templates/forms/file/files.txp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
<p><a class="button button-primary" href="<txp:file_download_link />" itemprop="contentUrl"><span class="ui-icon ui-extra-icon-download"></span> <span itemprop="name"><txp:file_download_name /></span></a></p>
44
<footer class="footnote">
55
<txp:evaluate test>
6-
<div itemprop="description"><txp:file_download_description /></div>
6+
<div itemprop="description">SHA256 checksum <code><txp:file_download_description /></code></div>
77
</txp:evaluate>
88
File size
99
<span itemprop="contentSize"><txp:file_download_size format="k" decimals="0" /></span>
1010
<span class="separator" role="separator">|</span>
1111
Created
1212
<time datetime="<txp:file_download_created format="iso8601" />" itemprop="dateCreated"><txp:file_download_created format="%d %b %Y" /></time>
13-
<txp:if_yield name="sha256">
14-
<span class="separator" role="separator">|</span>
15-
SHA256 checksum
16-
<code><txp:yield name="sha256" /></code>
17-
</txp:if_yield>
1813
</footer>
1914
</section>

0 commit comments

Comments
 (0)