Skip to content

Commit 4e95c83

Browse files
authored
Merge pull request #236 from perladvent/oalders/new-article
Clarify what an article topic is in article generator
2 parents ed53a4e + 53fd06a commit 4e95c83

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

script/new_article

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ script/new_article - start a new Advent calendar article
1212

1313
% perl script/new_article
1414
Article title > Another article
15-
Article topic > Some stuff about something
15+
Article topic > Module::Covered::In::Article
1616
Author (Your Name) > brian d foy <[email protected]>
1717
Saved the starter article in 2022/incoming/another-article.pod
1818

@@ -48,7 +48,7 @@ sub cook_template {
4848

4949
sub get_metadata {
5050
my $title = prompt( 'Article title' ) // 'Some title';
51-
my $topic = prompt( 'Article topic' ) // 'Some topic';
51+
my $topic = prompt( 'Article topic (Module::Covered::In::Article)' ) // 'Some topic';
5252
my $author = prompt( 'Author (Your Name <[email protected]>)' ) // '';
5353
( $title, $topic, $author );
5454
}
@@ -76,13 +76,11 @@ Topic: %%TOPIC%%
7676

7777
=encoding utf8
7878

79-
=head1 %%TITLE%%
80-
8179
=head2 Making links
8280

83-
Your article here goes here. Make links with
84-
L<anchor text|http://example.com>. For module links, merely specify the
85-
module, like L<Pod::Simple>.
81+
Your article here goes here. The title will automatically be added by the site
82+
builder. Make links with L<anchor text|http://example.com>. For module links,
83+
merely specify the module, like L<Pod::Simple>.
8684

8785
=head2 Inline code
8886

0 commit comments

Comments
 (0)