Assuming that under your homepage you have a 'Blog' page, holding the
articles:

<div id="content">
  <r:find path="/blog">
    <r:children:each limit="5" order="desc" by="published_at">
      <div class="block">
        <h2><r:link /></h2>
        <p class="date"><r:date format="%B" /><strong><r:date
format="%d" /></span></strong></p>
        <p><r:content /></p>
      </div>
    </r:children:each>
  </r:find>
</div>

On Oct 11, 8:15 pm, Bentley78 <[email protected]> wrote:
> Good Afternoon all,
>
> I have a static template and I have been trying to create a blog
> from.  I have the following in the body of the document:
> <content>
>      <div class="block">
>         <h2>Title</h2>
>                 <p class="date">Jan <strong>05<span>th</span></strong></p>
>                 <p>Words here</p>
>      </div>
> </div>
>
> So I followed the guide on the wiki and have this:
> <div id="content">
>     <div class="block">
>        <h2><r:title /></h2>
>             <p class="date"><r:date format="%B" /><strong><r:date
> format="%d" /></span></strong></p>
>             <p><r:content /></p>
>    </div>
> </div>
>
> Okay, so it picks up the entries in the "Articles" section but it puts
> them all into one "Block" instead of creating a separate entry per
> block.  So essentially I want each entry to create it's own div and
> want this in the front page.  So what I'm looking at producing is
> this:
> <content>
>      <div class="block">
>         <h2>Title</h2>
>                 <p class="date">Jan <strong>05<span>th</span></strong></p>
>                 <p>Words here</p>
>      </div>
> </div>
>
>   <div class="block">
>         <h2>Title 1 </h2>
>                 <p class="date">Jan <strong>06<span>th</span></strong></p>
>                 <p>More words here</p>
>      </div>
> </div>
>
> I notice it creates a block from the "Home Page"  I just want the
> "articles on the front page and nothing else.
>
> I hope that makes sense.  I've tried creating snippets and moving
> stuff do different pages in the content section but I can't seem to
> get it down.  Any help would ne appreciated.  Thanks again.

Reply via email to