On 21 January 2013 21:30, Jeroen van der Wal <[email protected]> wrote:
>
> Does somebody has some bright ideas how to integrate an (RSS) feed in a
> static site? Otherwise we have to add news to the site manually.
>
>
It certainly can be done; the tomee/openejb site does this, see their
trunk/content/index.html:
<div class="span-two-thirds">
<h3>Latest News</h3>
{% for e in blog.list %}
<h4><a href="{{ e.url }}">{{ e.title }}</a></h4>
{{ e.content|safe|truncatewords_html:50 }}
<hr>
{% endfor %}
</div>
(and incidentally, the section below does their twitter feed integration).
The "blog" variable seems to come from lib/path.pm:
our @patterns = (
[qr!^/index\.html$!, news_page =>
{
blog => ASF::Value::Blogs->new(blog => "openejb", limit=> 3),
},
],
HTH
Dan
> Cheers,
>
> Jeroen
>
> [1] http://blogs.apache.org/isis/
>
> On Sun, Jan 20, 2013 at 9:27 AM, Dan Haywood
> <[email protected]>wrote:
>
> > Oh, and in addition to dzone, reddit, digg and slashdot, a couple of
> other
> > places we thought of to cross-post content (perhaps to a dedicated
> > community/group/page) are:
> > * google+
> > * facebook
> > * linkedin.
> >
> >
> > On 20 January 2013 08:21, Dan Haywood <[email protected]>
> > wrote:
> >
> > > Jeroen and I were talking about the website (this in part on the back
> of
> > > Shane Curcuru's feedback - Shane being the ASF trademarks guy who has
> > > checked our branding).
> > >
> > > Anyway, the thoughts we came up with are:
> > >
> > > * with live feeds to the ASF blogs and twitter (as per the tomee site
> > [1])
> > > * a carousel [2]
> > >
> > > Jeroen has offered to do this.
> > >
> > > Jeroen has also claimed the @ApacheIsis handle in twitter, so will
> > > publicise the account details via the private list. The thought we had
> > was
> > > that any publishing should send stuff to a standard set of channels,
> > > including this twitter handle and perhaps some aggregators such as
> dzone,
> > > reddit, digg and slashdot. (Jeroen also told me about ifttt.com, as a
> > > possible way of automating this stuff, which I'm going to check out).
> > >
> > > Another thing we perhaps could do is to add in google analytics. To
> > > create the first cut of our website I actually copied the tomee one,
> and
> > I
> > > inadvertantly left their google analytics details in there. I know
> this
> > > because they told me! But that also means that it should be pretty
> easy
> > to
> > > add back in if we set up our own account.
> > >
> > > Anyway, any further thoughts on this topic welcome.
> > >
> > > Cheers
> > > Dan
> > >
> > > [1] http://tomee.apache.org/
> > > [2] http://twitter.github.com/bootstrap/examples/carousel.html
> > >
> > >
> > >
> > >
> > >
> >
>