whee it seems to be working
This commit is contained in:
parent
83997b6ace
commit
d8a0c06cb2
4
blogalba
4
blogalba
|
@ -132,7 +132,7 @@ sub generate_feed {
|
|||
$feed->add_item (
|
||||
title => $_->{title},
|
||||
link => $_->{permaurl},
|
||||
description => $_->{excerpt},
|
||||
description => ($blog->{config}->{rss_excerpt}? $_->{excerpt} : $_->{body}),
|
||||
dc => { creator => $blog->{author}, },
|
||||
) for @posts[0 .. ($#posts > ($blog->{config}->{rss_posts}-1)? ($blog->{config}->{rss_posts}-1) : $#posts)];
|
||||
$feed->save("$basedir/public/rss.rdf");
|
||||
|
@ -159,7 +159,7 @@ sub do_cache {
|
|||
|
||||
my @nav;
|
||||
push @nav, {navname => $_->{title}, navurl => "$blog->{url}$_->{filename}",} for @pages;
|
||||
push @nav, {navname => $_, navurl => $blog->{links}->{$_},} for sort {$b cmp $a } keys $blog->{links};
|
||||
push @nav, {navname => $_, navurl => $blog->{links}->{$_},} for sort { $b cmp $a } keys $blog->{links};
|
||||
%defparams = (
|
||||
INDEX => 0, NAV => [@nav], url => $blog->{url}, recent => [@posts[0 .. ($#posts > ($blog->{config}->{rss_posts}-1)? ($blog->{config}->{rss_posts}-1) : $#posts)]],
|
||||
gentime => timefmt($lastcache, '%H:%M %e/%-m/%y %Z'), host => $HOST,
|
||||
|
|
1
config
1
config
|
@ -9,6 +9,7 @@ posturlprepend: wrote/
|
|||
config:
|
||||
indexable: 1
|
||||
per_page: 6
|
||||
rss_excerpt: 1
|
||||
rss_posts: 8
|
||||
date_format: "%H:%M on %A, %d/%m/%y"
|
||||
links:
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<title><TMPL_VAR NAME="pagetitle"></title>
|
||||
<TMPL_VAR NAME="robots">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
<link rel="alternate" type="application/rss+xml" title="<TMPL_VAR NAME="title"> (RSS 2.0)" href="<TMPL_VAR NAME="url">/rss.rdf" />
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.2/custom/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="/main.css" />
|
||||
</head>
|
||||
|
|
Loading…
Reference in New Issue