tweak homepage

This commit is contained in:
Raghavendra Kamath
2018-02-19 09:48:37 +05:30
parent adcc889734
commit 6c4b738635
7 changed files with 127 additions and 91 deletions

View File

@@ -17,7 +17,7 @@
{%- block head -%}
{% block meta_block %}{% endblock %}
<link href="/assets/foundation/css/erpnext-org-theme.css" rel="stylesheet">
{% if 'docs' in path %}
{% if 'docs' in path or doctype == 'Blog Post' %}
<link type="text/css" rel="stylesheet" href="/assets/frappe/css/hljs.css">
<link type="text/css" rel="stylesheet" href="/assets/frappe/css/font-awesome.css">
<link type="text/css" rel="stylesheet" href="/assets/frappe/css/octicons/octicons.css">

View File

@@ -9,7 +9,7 @@
{% include "templates/includes/web_sidebar.html" %}
</div>
{% endif %}
<div class="{% if show_sidebar %}page-content with-sidebar{% else %}page-content without-sidebar{% endif %}">
<div class="{% if show_sidebar %}page-content with-sidebar{% elif doctype == 'Blog Post' %} blog-page {% else %}page-content without-sidebar{% endif %}">
<div class="page-content-wrapper">
<div class="row page-head">
<div class='col-sm-12'>
@@ -21,9 +21,11 @@
</div>
{% endif %}
</div>
<div class="col-sm-8 col-xs-6">
{% block header %}{% endblock %}
</div>
{% if doctype != 'Blog Post' %}
<div class="col-sm-8 col-xs-6">
{% block header %}{% endblock %}
</div>
{% endif %}
<div class="col-sm-4 col-xs-6">
{% if show_search %}
<div class="page-search-block">