mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 20:06:52 +00:00
Make blog posts look less cluttered (#33887)
This commit is contained in:
parent
a8822a2755
commit
ced5b58f76
@ -39,7 +39,7 @@ h1.title.indent {
|
||||
}
|
||||
|
||||
@media only screen and (min-width: $desk-wide-start) {
|
||||
.integration-page, .documentation-page, .blog-post {
|
||||
.integration-page, .documentation-page, .blog-index, .blog-category {
|
||||
.grid-wrapper>.grid.grid-center {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
@ -48,13 +48,13 @@ h1.title.indent {
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
.vertical-nav, .recent-categories, .recent-posts, .categories {
|
||||
.vertical-nav, .recent-categories, .blog-index .recent-posts, .categories {
|
||||
background: none;
|
||||
padding: 0 16px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.documentation-page, .blog-post {
|
||||
.documentation-page, .blog-index {
|
||||
#sidebar #toc-module {
|
||||
display: none;
|
||||
}
|
||||
@ -191,7 +191,7 @@ h1.title.indent {
|
||||
}
|
||||
|
||||
@media only screen and (min-width: $desk-wide-start) {
|
||||
.documentation-page #toc-bar, .integration-page #toc-bar, .blog-post #toc-bar {
|
||||
.documentation-page #toc-bar, .integration-page #toc-bar, .blog-index #toc-bar {
|
||||
display: inline-block;
|
||||
}
|
||||
#integration-sidebar #toc-module {
|
||||
|
@ -35,13 +35,12 @@
|
||||
{% else %}
|
||||
{% if page.blog_index %}
|
||||
{% include asides/recent_categories.html %}
|
||||
{% include asides/recent_posts.html posts='5' %}
|
||||
{% else %}
|
||||
{% if doc == 'categories' %}
|
||||
{% include asides/categories.html %}
|
||||
{% elsif root == 'blog' %}
|
||||
{% include asides/recent_posts.html posts='10' %}
|
||||
{% include post/sharing.html %}
|
||||
{% include asides/recent_posts.html posts='5' %}
|
||||
{% else %}
|
||||
{% include post/sharing.html %}
|
||||
{% endif %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% assign doc = url_parts[2] %}
|
||||
|
||||
{% include site/head.html %}
|
||||
<body {% if page.body_id %} id="{{ page.body_id }}"{% elsif page.layout == "landingpage" %} id="landingpage"{% endif %} class="{% if root == 'docs' or root == 'dashboards' or root == 'voice_control' or root == 'installation' or root == 'getting-started' or root == 'common-tasks' %}documentation-page{% endif %}{% if root == 'integrations' %}integration-page{% endif %}{% if root == 'blog' %}blog-post{% endif %}">
|
||||
<body {% if page.body_id %} id="{{ page.body_id }}"{% elsif page.layout == "landingpage" %} id="landingpage"{% endif %} class="{% if root == 'docs' or root == 'dashboards' or root == 'voice_control' or root == 'installation' or root == 'getting-started' or root == 'common-tasks' %}documentation-page{% endif %} {% if root == 'integrations' %}integration-page{% endif %} {% if page.blog_index %}blog-index{% endif %} {% if root == 'blog' %}blog-post {% if doc == 'categories' %}blog-category{% endif %}{% endif %}">
|
||||
<header class='site-header {% if page.dark_header %}dark{% endif %}'>
|
||||
{% include site/header.html %}
|
||||
</header>
|
||||
|
Loading…
x
Reference in New Issue
Block a user