You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pn...@apache.org on 2011/03/17 08:38:46 UTC
[Lucene.Net] svn commit: r1082419 - in /incubator/lucene.net/site/trunk: lib/view.pm
templates/subpage.html
Author: pnasser
Date: Thu Mar 17 07:38:46 2011
New Revision: 1082419
URL: http://svn.apache.org/viewvc?rev=1082419&view=rev
Log:
Split out the tagline
Modified:
incubator/lucene.net/site/trunk/lib/view.pm
incubator/lucene.net/site/trunk/templates/subpage.html
Modified: incubator/lucene.net/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/lucene.net/site/trunk/lib/view.pm?rev=1082419&r1=1082418&r2=1082419&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/lib/view.pm (original)
+++ incubator/lucene.net/site/trunk/lib/view.pm Thu Mar 17 07:38:46 2011
@@ -46,6 +46,7 @@ sub basic {
read_text_file($filepath, \%args);
$args{path} =~ s/\.mdtext$/\.html/;
$args{breadcrumbs} = _breadcrumbs($args{path});
+ $args{tagline} = _tagline($args{path});
my $template_path = "templates/$args{template}";
my $rendered = Dotiac::DTL->new($template_path)->render(\%args);
return ($rendered, 'html', \%args);
@@ -95,6 +96,18 @@ sub sitemap {
}
+sub _tagline {
+ my $file = pop(split m!/!, shift);
+
+ switch ($file) {
+ case "code.mdtext" { return "<h1>Grab the Code</h1><h2>Binaries, Source, Archives, whatever you need...</h2>" }
+ case "conversation.mdtext" { return "<h1>Join the Conversation</h1><h2>Tell us how we are doing and help guide our future</h2>" }
+ case "roadmap.mdtext" { return "<h1>Roadmap</h1><h2>See where we are going</h2>" }
+ case "faq.mdtext" { return "<h1>Frequently Asked Questions</h1><h2>Everything you wanted to know but were afraid to ask</h2>" }
+ else { return "<h1>Lucene.Net</h1><h2></h2>" }
+ }
+}
+
sub _breadcrumbs {
my @path = split m!/!, shift;
pop @path;
Modified: incubator/lucene.net/site/trunk/templates/subpage.html
URL: http://svn.apache.org/viewvc/incubator/lucene.net/site/trunk/templates/subpage.html?rev=1082419&r1=1082418&r2=1082419&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/templates/subpage.html (original)
+++ incubator/lucene.net/site/trunk/templates/subpage.html Thu Mar 17 07:38:46 2011
@@ -41,11 +41,7 @@
<div id="introduction">
<div>
-
- <h1>Grab the Code</h1>
- <h2>Binaries, Source, Archives, whatever you need...</h2>
-
-
+ {{ tagline|safe }}
<div class="clearer"></div>
</div>
</div>