#2 Structure of list of posts (blog)Ordered the posts by creation date. For this, I added a field to the nodes storage and api. Show the creation date and author. Styled the post and added a more link to the detail page

This commit is contained in:
Dario Bösch
2015-05-21 12:03:09 +02:00
parent 0e0cd131a5
commit 6a782e412d
6 changed files with 97 additions and 5 deletions

View File

@@ -4,13 +4,13 @@ ul.cms-nodes {
border: solid 1px #ccc;
}
li.cms_type_page, li.cms_type_blog {
.cms-nodes li.cms_type_page, .cms-nodes li.cms_type_blog {
border-top: dotted 1px #ccc;
}
li.cms_type_page a::before {
content: "[page] ";
}
li.cms_type_blog a::before {
.cms-nodes li.cms_type_blog a::before {
content: "[blog] ";
}
ul.cms-nodes li:first-child {
@@ -20,4 +20,32 @@ ul.cms-nodes li:first-child {
.summary{
margin-top:20px;
font-weight:bold;
}
.cms-blog-nodes{
padding:0;
margin:0;
}
.cms-blog-nodes li{
list-style: none;
display: block;
margin-top:20px;
padding-bottom:20px;
border-bottom:1px dotted black;
}
.cms-blog-nodes li > a{
color:black;
font-size:18px;
text-decoration: none;
display:block;
margin:6px 0;
}
.cms-blog-nodes li > a:hover{
color:#999;
}
.blog_list_summary a{
margin-top:20px;
display:block;
}