Skip to content

Commit 90b5c64

Browse files
committed
htmlify: Always explicitly link to the gh repo in the footer
Closes #85.
1 parent 5a2cebc commit 90b5c64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Pod/Htmlify.pm6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ sub footer-html($pod-path) is export {
1919
my $footer = slurp 'template/footer.html';
2020
$footer.subst-mutate(/DATETIME/, ~DateTime.now);
2121
my $pod-url;
22+
my $gh-link = q[<a href='https://github.com/perl6/doc'>perl6/doc on GitHub</a>];
2223
if $pod-path eq "unknown" {
23-
$pod-url = "the sources at <a href='https://github.com/perl6/doc'>perl6/doc on GitHub</a>";
24+
$pod-url = "the sources at $gh-link";
2425
}
2526
else {
26-
$pod-url = "<a href='https://github.com/perl6/doc/raw/master/lib/$pod-path'>$pod-path\</a\>";
27+
$pod-url = "<a href='https://github.com/perl6/doc/raw/master/lib/$pod-path'>$pod-path\</a\> from $gh-link";
2728
}
2829
$footer.subst-mutate(/SOURCEURL/, $pod-url);
2930

0 commit comments

Comments
 (0)