Skip to content

Commit

Permalink
add jumbotron with the blog description
Browse files Browse the repository at this point in the history
  • Loading branch information
sverbois committed Oct 6, 2013
1 parent b78d2ec commit 4aa7487
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demos/blog/blog/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def blog_columns(folder, subobject, request, default_columnspec):
)
class Blog(Root):
title = 'Substance D Blog'
description = ''
description = 'Description of this blog'

def __sdi_addable__(self, context, introspectable):
return introspectable.get('content_type') == 'Blog Entry'
Expand Down
6 changes: 3 additions & 3 deletions demos/blog/blog/views/templates/frontpage.pt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
margin-bottom: 20px;
padding-top: 20px;
}
.blog-entry:first-child {
border-top: none;
}
.blog-entry-date {
font-size: 120%;
font-weight: bold;
Expand All @@ -22,6 +19,9 @@
</metal:slot>

<metal:slot metal:fill-slot="content">
<div class="jumbotron">
<p>${request.root.description}</p>
</div>
<div tal:repeat="blogentry blogentries" class="blog-entry">
<div class="blog-entry-date">
${blogentry['pubdate'].strftime('%Y-%m-%d')}
Expand Down

0 comments on commit 4aa7487

Please sign in to comment.