summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2016-10-26 21:42:18 -0700
committerRuss Allbery <rra@cpan.org>2016-10-26 21:42:18 -0700
commit34a4c221a5d57a6a6f9f6b8ebff0cfd64b0cabda (patch)
treeea2d4bcef0531c90973edc13bbd487aedad314b1 /share
parent850bc74e1a3d015ffa9693fc63e5811691527b19 (diff)
Support a separate version name in thread
In my thread macros, each package has a designator that's used to look up the current release version. Allow this designator to be separate from the tarball name or the package name, and require the distribution.version metadata be set to simplify the templates and code.
Diffstat (limited to 'share')
-rw-r--r--share/templates/thread.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/templates/thread.tmpl b/share/templates/thread.tmpl
index 6eeef55..cf9a940 100644
--- a/share/templates/thread.tmpl
+++ b/share/templates/thread.tmpl
@@ -30,8 +30,8 @@
\div(sidebar)[
\h2[Download]
- \download[[% name %]][[% distribution.tarname %]]
- [[% distribution.section %]/[% distribution.tarname %]-\version[[% distribution.tarname %]]]
+ \download[[% name %]][[% distribution.version %]]
+ [[% distribution.section %]/[% distribution.tarname %]-\version[[% distribution.version %]]]
[% IF packaging.debian %]
\link[https://packages.debian.org/source/sid/[% packaging.debian %]]
[Debian packages] \break[% END %]
@@ -91,8 +91,8 @@ pages from a fresh Git checkout.[% END %]
The distribution:
\table[][
- \program[[% name %]][[% distribution.tarname %]]
- [[% distribution.section %]/[% distribution.tarname %]-\version[[% distribution.tarname %]]]
+ \program[[% name %]][[% distribution.version %]]
+ [[% distribution.section %]/[% distribution.tarname %]-\version[[% distribution.version %]]]
]
An \link[https://archives.eyrie.org/software/ARCHIVE/[% distribution.tarname %]/]