Skip to content

Commit 6258df3

Browse files
committed
Add default content for the index page.
1 parent 310199c commit 6258df3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

share/site_src/index.html.tt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
<h1>Distribution name: [% distribution.name %]</h1>
2-
<p>Current release: <a href="https://metacpan.org/release/[% distribution.name %]">[% release.name %]</a></p>
1+
<h1>[% distribution.name %]</h1>
2+
<p>[% release.abstract %]</p>
3+
<p>Current version: [% release.version %]</p>
4+
5+
[% INCLUDE intro.tt %]

share/tt_lib/intro.tt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div style="border: red 2px solid; padding: 0.5em">
2+
<p>This is the default content for a web site that is generated by
3+
<a href="https://davorg.dev/app-cpanmodulesite">App::CPANModuleSite</a>.</p>
4+
5+
<p>If this is your site and you want to change this into more interesting
6+
content, create a file called <tt>tt_lib/intro.tt</tt> in your module's
7+
repository and regenerate this site (by running <tt>mksite</tt>).</p>
8+
</div>

0 commit comments

Comments
 (0)