diff --git a/frappe/model/db_query.py b/frappe/model/db_query.py
index bc28222c17..91661e2279 100644
--- a/frappe/model/db_query.py
+++ b/frappe/model/db_query.py
@@ -272,6 +272,7 @@ class DatabaseQuery(object):
df = df[0] if df else None
if df and df.fieldtype=="Date":
+ print df.fieldname, f.value
value = getdate(f.value).strftime("%Y-%m-%d")
fallback = "'0000-00-00'"
diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css
index b9c4b79177..d5338b0376 100644
--- a/frappe/public/css/website.css
+++ b/frappe/public/css/website.css
@@ -555,11 +555,13 @@ fieldset {
.web-sidebar .sidebar-item a {
color: #8D99A6;
}
-.web-sidebar .sidebar-item a:hover {
- border-color: inherit;
-}
.web-sidebar .sidebar-item a.active {
color: #36414C !important;
+ font-weight: 500 !important;
+}
+.web-sidebar .sidebar-items {
+ margin-top: 30px;
+ margin-bottom: 30px;
}
.page-footer {
padding: 15px 0px;
@@ -581,7 +583,7 @@ fieldset {
}
.web-list-item {
padding: 15px 0px;
- border-bottom: 1px solid #EBEFF2;
+ border-top: 1px solid #EBEFF2;
}
.web-list-item h1,
.web-list-item h2,
@@ -598,7 +600,25 @@ fieldset {
text-decoration: none;
}
.web-list-item:last-child {
- border-bottom: none;
+ border-bottom: 1px solid #EBEFF2;
+}
+.blog-info {
+ text-align: center;
+ margin-top: 30px;
+}
+.blog-text,
+.post-description {
+ padding-top: 40px;
+ padding-bottom: 40px;
+ font-size: 16px;
+ line-height: 28px;
+}
+.blog-text p,
+.post-description p {
+ margin-bottom: 40px;
+}
+.blogger-name {
+ font-size: 24px;
}
.blog-footer {
padding: 5px 15px;
@@ -614,24 +634,87 @@ fieldset {
.blog-category {
text-transform: uppercase;
letter-spacing: 0.5px;
- font-size: 12px;
+ font-size: 10px;
text-align: center;
- margin-bottom: 20px;
+ margin-bottom: 30px;
+}
+.author {
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ font-size: 10px;
+ border-bottom: 1px solid #EBEFF2;
+ padding-bottom: 20px;
}
.blogger {
padding-top: 30px;
padding-bottom: 15px;
- border-top: 1px solid #EBEFF2;
+}
+.blog-dot:before {
+ padding-right: 8px;
+ padding-left: 8px;
+ content: "\2022";
+}
+.blog-list-item {
+ margin-top: 25px;
+ margin-bottom: 25px;
+ border: none;
+}
+.post-by {
+ padding-bottom: 50px;
+ font-size: 10px;
+ letter-spacing: 0.5px;
+ border-bottom: 1px solid #EBEFF2;
+}
+.blog-list-item .blog-text,
+.blog-list-item .read-more-btn,
+.blog-list-item .recent-post {
+ display: none;
+}
+.blog-list-item .post-by {
+ padding-bottom: 25px;
+}
+.blog-list-item .post-description {
+ padding-top: 25px;
+}
+.blog-list-item:first-child .row .blog-header {
+ font-size: 34px;
+}
+.blog-list-item:first-child .row .post-by {
+ font-weight: 500;
+}
+.blog-list-item:first-child .row .post-description {
+ font-weight: 500;
+}
+.blog-list-item:first-child .row .blog-text {
+ display: block;
+ padding-top: 0px;
+ padding-bottom: 20px;
+}
+.blog-list-item:first-child .row .read-more-btn {
+ display: inline;
+ padding-top: 0px;
+ border-bottom: 1px dotted #d1d8dd;
+ font-size: 12px;
+}
+.blog-list-item:first-child .row .post-description {
+ padding-bottom: 25px;
+}
+.blog-list-item:first-child .row .recent-post {
+ display: block;
+ padding-top: 50px;
+ padding-bottom: 20px;
+ margin-bottom: 20px;
+ border-bottom: 1px solid #EBEFF2;
}
.blog-comments,
.help-article-comments {
- padding: 0px 15px 15px 85px;
+ padding: 0px 15px 15px 0px;
}
-.comment-view {
+.blog-comments {
background-color: #fafbfc;
position: relative;
}
-.comment-view:before {
+.blog-comments:before {
content: "";
background-color: #fafbfc;
position: absolute;
@@ -864,6 +947,11 @@ body {
.page-hero h1 {
font-size: 32px;
}
+.page-head h1 {
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ font-size: 24px;
+}
.btn-next-wrapper {
margin-top: 60px;
}
@@ -892,27 +980,6 @@ a:link,
a:active {
text-decoration: none;
}
-.blog-header {
- font-size: 36px;
- margin-left: -1px;
-}
-.blog-dot:before {
- padding-right: 8px;
- padding-left: 8px;
- content: "\2022";
-}
-.blog-list-item {
- margin-top: 25px;
- margin-bottom: 25px;
- border: none;
-}
-.post-by {
- margin-top: -5px;
- margin-bottom: 4px;
- text-transform: uppercase;
- font-size: 12px;
- letter-spacing: 0.5px;
-}
li .footer-child-item {
margin-bottom: 4px !important;
}
@@ -938,6 +1005,7 @@ li .social-child-item {
font-size: 20px;
padding-top: 30px;
padding-bottom: 20px;
+ border-bottom: 1px solid #d1d8dd;
}
.item-search {
border-bottom: 1px solid #d1d8dd;
@@ -960,3 +1028,21 @@ li .social-child-item {
padding-bottom: 2000px;
margin-bottom: -2000px;
}
+.shopping-cart {
+ margin-top: 12px;
+ margin-bottom: 8px;
+ padding-right: 15px;
+ border-right: 1px solid #d1d8dd;
+}
+.badge-wrapper {
+ min-height: 17px;
+ min-width: 17px;
+ display: inline-block;
+ border: 1px solid #d1d8dd;
+ border-radius: 3px;
+ color: #7575ff;
+ text-align: center;
+}
+.dropdown .logged-in {
+ border-left: 1px solid #d1d8dd;
+}
diff --git a/frappe/public/less/website.less b/frappe/public/less/website.less
index 532f560fb0..1993d35aea 100644
--- a/frappe/public/less/website.less
+++ b/frappe/public/less/website.less
@@ -22,6 +22,7 @@ h1, h2, h3, h4, h5, h6 {
font-weight: 300;
}
+
.navbar-brand {
max-width: none;
}
@@ -233,12 +234,14 @@ fieldset {
color: @text-muted;
}
- .sidebar-item a:hover {
- border-color: inherit;
- }
-
.sidebar-item a.active {
color: @text-color !important;
+ font-weight:500 !important;
+ }
+
+ .sidebar-items {
+ margin-top:30px;
+ margin-bottom:30px;
}
}
@@ -268,7 +271,7 @@ fieldset {
.web-list-item {
padding: 15px 0px;
- border-bottom: 1px solid @light-border-color;
+ border-top: 1px solid @light-border-color;
h1, h2, h3 {
margin-top: 10px;
@@ -287,7 +290,26 @@ fieldset {
// }
.web-list-item:last-child {
- border-bottom: none;
+ border-bottom: 1px solid @light-border-color;
+}
+
+.blog-info {
+ text-align:center;
+ margin-top: 30px;
+}
+
+.blog-text, .post-description {
+ padding-top: 40px;
+ padding-bottom: 40px;
+ font-size: 16px;
+ line-height: 28px;
+ p {
+ margin-bottom: 40px;
+ }
+}
+
+.blogger-name {
+ font-size:24px;
}
.blog-footer {
@@ -307,28 +329,99 @@ fieldset {
.blog-category {
text-transform: uppercase;
letter-spacing: 0.5px;
- font-size: 12px;
+ font-size: 10px;
text-align: center;
- margin-bottom: 20px;
+ margin-bottom: 30px;
+}
+
+.author {
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ font-size: 10px;
+ border-bottom: 1px solid @light-border-color;
+ padding-bottom:20px;
}
.blogger {
padding-top: 30px;
padding-bottom: 15px;
- border-top: 1px solid @light-border-color;
+}
+
+.blog-dot:before{
+ padding-right:8px;
+ padding-left:8px;
+ content:"\2022";
+}
+
+.blog-list-item {
+ margin-top:25px;
+ margin-bottom:25px;
+ border:none;
+}
+
+.post-by {
+ padding-bottom: 50px;
+ font-size: 10px;
+ letter-spacing: 0.5px;
+ border-bottom: 1px solid @light-border-color;
+}
+
+.blog-list-item {
+ .blog-text,.read-more-btn,.recent-post {
+ display: none;
+ }
+ .post-by {
+ padding-bottom: 25px;
+ }
+ .post-description{
+ padding-top: 25px;
+ }
+}
+
+.blog-list-item:first-child .row {
+ .blog-header {
+ font-size: 34px;
+ }
+ .post-by {
+ font-weight: 500;
+ }
+ .post-description {
+ font-weight: 500;
+ }
+ .blog-text {
+ display: block;
+ padding-top: 0px;
+ padding-bottom: 20px;
+ }
+ .read-more-btn {
+ display: inline;
+ padding-top: 0px;
+ border-bottom: 1px dotted @border-color;
+ font-size: 12px;
+ }
+ .post-description {
+ padding-bottom: 25px;
+ }
+ .recent-post {
+ display: block;
+ padding-top: 50px;
+ padding-bottom: 20px;
+ margin-bottom: 20px;
+ border-bottom: 1px solid @light-border-color;
+ }
}
.blog-comments,
.help-article-comments {
- padding: 0px 15px 15px 85px;
+ padding: 0px 15px 15px 0px;
}
-.comment-view {
+.blog-comments {
background-color: #fafbfc;
position: relative;
}
-.comment-view:before {
+.blog-comments:before {
content:"";
background-color:#fafbfc;
position: absolute;
@@ -456,6 +549,12 @@ a.active {
}
}
+.page-head h1 {
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ font-size: 24px;
+}
+
.btn-next-wrapper {
margin-top: 60px;
}
@@ -487,31 +586,6 @@ a:hover, a:visited, a:link, a:active
text-decoration: none;
}
-.blog-header {
- font-size: 36px;
- margin-left: -1px;
-}
-
-.blog-dot:before{
- padding-right:8px;
- padding-left:8px;
- content:"\2022";
-}
-
-.blog-list-item {
- margin-top:25px;
- margin-bottom:25px;
- border:none;
-}
-
-.post-by {
- margin-top: -5px;
- margin-bottom: 4px;
- text-transform: uppercase;
- font-size: 12px;
- letter-spacing: 0.5px;
-}
-
li .footer-child-item {
margin-bottom:4px !important;
}
@@ -542,6 +616,7 @@ li .social-child-item {
font-size:20px;
padding-top:30px;
padding-bottom:20px;
+ border-bottom: 1px solid @border-color;
}
.item-search {
@@ -562,3 +637,22 @@ li .social-child-item {
.vert-line>div{
padding-bottom:2000px; margin-bottom:-2000px;}
+.shopping-cart {
+ margin-top:12px;
+ margin-bottom:8px;
+ padding-right:15px;
+ border-right: 1px solid @border-color;
+}
+.badge-wrapper {
+ min-height: 17px;
+ min-width: 17px;
+ display: inline-block;
+ border: 1px solid @border-color;
+ border-radius: 3px;
+ color: #7575ff;
+ text-align:center;
+}
+
+.dropdown .logged-in {
+ border-left: 1px solid @border-color;
+}
\ No newline at end of file
diff --git a/frappe/templates/generators/blog_post.html b/frappe/templates/generators/blog_post.html
index 58fe2f84e1..2e0f2b6a8a 100644
--- a/frappe/templates/generators/blog_post.html
+++ b/frappe/templates/generators/blog_post.html
@@ -1,15 +1,23 @@
{% extends "templates/web.html" %}
-{% block header %}{{ _("Blog") }}{% endblock %}
-
+{% block breadcrumbs %}
+
+{% endblock %}
{% block page_content %}
-
+
+
{{blog_category}}
-
+
- BY {{ blogger_info and blogger_info.full_name or full_name }} {{ frappe.format_date(published_on) }} {{ comment_text }}
+ By
{{ blogger_info and blogger_info.full_name or full_name }}
{{ frappe.format_date(published_on) }}
{{ comment_text }}
{{ content }}
@@ -17,7 +25,7 @@
{% if blogger_info %}
-
Author
+
Author
{% include "templates/includes/blog/blogger.html" %}
{% endif %}
diff --git a/frappe/templates/includes/blog/blogger.html b/frappe/templates/includes/blog/blogger.html
index ca45578464..812c584316 100644
--- a/frappe/templates/includes/blog/blogger.html
+++ b/frappe/templates/includes/blog/blogger.html
@@ -6,7 +6,7 @@
diff --git a/frappe/templates/includes/comments/comments.html b/frappe/templates/includes/comments/comments.html
index bd61990dec..1a5d88319f 100644
--- a/frappe/templates/includes/comments/comments.html
+++ b/frappe/templates/includes/comments/comments.html
@@ -25,22 +25,21 @@
{{ blog_title or _("Blog") }}
{% endblock %} {% block hero %}{% endblock %} {% block page_content %} diff --git a/frappe/templates/includes/blog/blog_row.html b/frappe/templates/includes/blog/blog_row.html index 4c4477495e..66e9cd72e0 100644 --- a/frappe/templates/includes/blog/blog_row.html +++ b/frappe/templates/includes/blog/blog_row.html @@ -1,12 +1,19 @@ {%- set post = doc -%}{{ post.title }}
-- BY {{ post.full_name }} {{ frappe.format_date(post.published_on) }} {{ post.blog_category }} {{ post.comment_text }}
-{{ post.content }}
-+ {{ post.blog_category }} By {{ post.full_name }} {{ frappe.format_date(post.published_on) }} {{ post.comment_text }}
+{{ post.intro }}
+