diff --git a/examples/demo/modules/blog/cms_blog_module.e b/examples/demo/modules/blog/cms_blog_module.e
index d247566..f2e795d 100644
--- a/examples/demo/modules/blog/cms_blog_module.e
+++ b/examples/demo/modules/blog/cms_blog_module.e
@@ -119,7 +119,7 @@ configure_web (a_api: CMS_API; a_node_api: CMS_BLOG_API; a_router: WSF_ROUTER)
a_router.map_with_request_methods (l_uri_mapping, a_router.methods_get)
-- We can add a page number after /blogs/ to get older posts
- a_router.handle_with_request_methods ("/blogs/{page}", l_blog_handler, a_router.methods_get)
+ a_router.handle_with_request_methods ("/blogs/page/{page}", l_blog_handler, a_router.methods_get)
end
diff --git a/examples/demo/modules/blog/handler/blog_handler.e b/examples/demo/modules/blog/handler/blog_handler.e
index 4498368..f23f0c0 100644
--- a/examples/demo/modules/blog/handler/blog_handler.e
+++ b/examples/demo/modules/blog/handler/blog_handler.e
@@ -102,7 +102,7 @@ feature -- HTTP Methods
if attached node_api.blogs_order_created_desc_limited (entries_per_page, (page_number-1) * entries_per_page) as lst then
-- List all posts of the blog
- s.append ("
%N")
+ s.append ("
%N")
across
lst as ic
loop
@@ -120,11 +120,13 @@ feature -- HTTP Methods
-- Output the author of the post
if attached n.author as l_author then
s.append ("by ")
- s.append (l_author.name)
+ s.append ("" + l_author.name + "")
end
-- Output the title of the post as a link (to the detail page)
+ s.append ("")
s.append (l_page.link (lnk.title, lnk.location, Void))
+ s.append ("")
-- Output the summary of the post and a more link to the detail page
if attached n.summary as l_summary then
@@ -151,7 +153,7 @@ feature -- HTTP Methods
-- If exist older posts show link to next page
if page_number < pages then
tmp := page_number + 1
- s.append (" << Older Posts ")
+ s.append (" << Older Posts ")
end
-- Delmiter
@@ -162,7 +164,7 @@ feature -- HTTP Methods
-- If exist newer posts show link to previous page
if page_number > 1 then
tmp := page_number -1
- s.append (" Newer Posts >> ")
+ s.append (" Newer Posts >> ")
end
s.append ("")
diff --git a/examples/demo/site/themes/bootstrap/assets/css/blog.css b/examples/demo/site/themes/bootstrap/assets/css/blog.css
new file mode 100644
index 0000000..736608d
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/assets/css/blog.css
@@ -0,0 +1,25 @@
+ul.cms_blog_nodes {
+ padding: 0;
+ margin: 0;
+}
+ul.cms_blog_nodes li.cms_type_blog {
+ list-style: none;
+ display: block;
+ margin-top: 20px;
+ padding-bottom: 20px;
+ border-bottom: 1px dotted black;
+}
+ul.cms_blog_nodes li.cms_type_blog .blog_title a {
+ color: black;
+ font-size: 18px;
+ text-decoration: none;
+ display: block;
+ margin: 6px 0;
+}
+ul.cms_blog_nodes li.cms_type_blog .blog_title a:hover {
+ color: #999;
+}
+ul.cms_blog_nodes li.cms_type_blog .blog_list_summary a {
+ margin-top: 20px;
+ display: block;
+}
diff --git a/examples/demo/site/themes/bootstrap/assets/css/node.css b/examples/demo/site/themes/bootstrap/assets/css/node.css
index cc105b5..f4277ee 100644
--- a/examples/demo/site/themes/bootstrap/assets/css/node.css
+++ b/examples/demo/site/themes/bootstrap/assets/css/node.css
@@ -3,49 +3,15 @@ ul.cms-nodes {
padding: 3px 3px 3px 3px;
border: solid 1px #ccc;
}
-
-.cms-nodes li.cms_type_page, .cms-nodes li.cms_type_blog {
+ul.cms-nodes li {
border-top: dotted 1px #ccc;
}
-li.cms_type_page a::before {
- content: "[page] ";
-}
-.cms-nodes li.cms_type_blog a::before {
- content: "[blog] ";
-}
ul.cms-nodes li:first-child {
border-top: none;
}
-
-.summary{
- margin-top:20px;
- font-weight:bold;
+ul.cms-nodes li.cms_type_page a::before {
+ content: "[page] ";
}
-.cms-blog-nodes{
- padding:0;
- margin:0;
+ul.cms-nodes li.cms_type_blog a::before {
+ content: "[blog] ";
}
-.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;
-}
\ No newline at end of file
diff --git a/examples/demo/site/themes/bootstrap/assets/scss/blog.scss b/examples/demo/site/themes/bootstrap/assets/scss/blog.scss
new file mode 100644
index 0000000..be90622
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/assets/scss/blog.scss
@@ -0,0 +1,30 @@
+ul.cms_blog_nodes{
+
+ padding:0;
+ margin:0;
+
+ li.cms_type_blog{
+ list-style: none;
+ display: block;
+ margin-top:20px;
+ padding-bottom:20px;
+ border-bottom:1px dotted black;
+
+ .blog_title a{
+ color:black;
+ font-size:18px;
+ text-decoration: none;
+ display:block;
+ margin:6px 0;
+
+ &:hover{
+ color:#999;
+ }
+ }
+
+ .blog_list_summary a{
+ margin-top:20px;
+ display:block;
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/demo/site/themes/bootstrap/assets/scss/node.scss b/examples/demo/site/themes/bootstrap/assets/scss/node.scss
index cd7408f..5cf9324 100644
--- a/examples/demo/site/themes/bootstrap/assets/scss/node.scss
+++ b/examples/demo/site/themes/bootstrap/assets/scss/node.scss
@@ -1,14 +1,24 @@
ul.cms-nodes {
+
list-style-type: none;
padding: 3px 3px 3px 3px;
border: solid 1px #ccc;
-}
-li.cms_type_page {
- a::before {
+
+ li{
+ border-top: dotted 1px #ccc;
+ &:first-child {
+ border-top: none;
+ }
+ }
+
+ li.cms_type_page a::before {
content: "[page] ";
}
- border-top: dotted 1px #ccc;
- &:first-child {
- border-top: none;
+
+ li.cms_type_blog a::before {
+ content: "[blog] ";
}
+
+
}
+
diff --git a/examples/demo/site/themes/bootstrap/page.tpl b/examples/demo/site/themes/bootstrap/page.tpl
index 9bf0155..1785e28 100644
--- a/examples/demo/site/themes/bootstrap/page.tpl
+++ b/examples/demo/site/themes/bootstrap/page.tpl
@@ -6,6 +6,10 @@
+
+
+
+