home page h tags

This commit is contained in:
merdan 2021-12-17 17:54:14 +05:00
parent 2272f41f31
commit d5854a1539
6 changed files with 18 additions and 18 deletions

View File

@ -34,9 +34,9 @@ code = "top-menu"
<img src="{{'assets/images/logo.svg'|theme}}" alt="orient logo">
</a>
<div class="header__search">
<div class="header__slogan">
<h1 class="header__slogan">
{{'site.slogan'|_}}
</div>
</h1>
<div class="header__search-input">
<form action="{{ 'search' | page }}" method="get">
<input type="searh" name="q" placeholder="{{'page.search'|_}}">
@ -151,4 +151,4 @@ code = "top-menu"
</div>
</section>
<!-- header end
================================================-->
================================================-->

View File

@ -1,11 +1,11 @@
[viewBag]
==
{% set posts = category.take_posts(3) %}
<div class="main__body-column">
<div class="main__body-column">
<div class="main__body-header">
<div class="main__body-header-title">
<h2 class="main__body-header-title">
{{category.name}}
</div>
</h2>
<a href="{{'category'|page({slug:category.slug})}}" class="main__body-header-link">
{{'page.more'|_}}
</a>
@ -37,4 +37,4 @@
{% partial 'index/category_post_item' post = post %}
{% endfor %}
</div>
</div>
</div>

View File

@ -1,11 +1,11 @@
[viewBag]
==
{% set posts = category.take_posts(3) %}
<div class="main__body-column">
<div class="main__body-column">
<div class="main__body-header">
<div class="main__body-header-title">
<h2 class="main__body-header-title">
{{category.name}}
</div>
</h2>
<a href="{{'category'|page({slug:category.slug})}}" class="main__body-header-link">
{{'page.more'|_}}
</a>
@ -37,4 +37,4 @@
{% partial 'index/category_post_item' post = post %}
{% endfor %}
</div>
</div>
</div>

View File

@ -4,9 +4,9 @@
<section class="event">
<div class="event__inner">
<div class="event__header">
<div class="event__header-title">
<h2 class="event__header-title">
{{category.name}}
</div>
</h2>
<a href="{{'category'|page({slug:category.slug})}}" class="event__header-link">
{{'page.more'|_}}
</a>
@ -29,4 +29,4 @@
</div>
</div>
</div>
</section>
</section>

View File

@ -16,7 +16,7 @@ postPage = "post"
{% for post in posts %}
<div class="right_top-content">
<div class="right_top-content-top">
<h4 class="right_top-content-sphere">{{ post.categories.first.name }}</h4>
<h3 class="right_top-content-sphere">{{ post.categories.first.name }}</h3>
<div class="right-top-content-date">
<span class="date">{{ post.published_at| date('d.m.Y')}}</span>
<span class="time">{{post.published_at|date('H:i')}}</span>
@ -30,4 +30,4 @@ postPage = "post"
<div class="hr-line"></div>
</div>
{% endfor %}
</div>
</div>

View File

@ -14,7 +14,7 @@ postPage = "post"
{% for post in posts %}
<div class="right_top-content">
<div class="right_top-content-top">
<h4 class="right_top-content-sphere">{{ post.categories.first.name }}</h4>
<h3 class="right_top-content-sphere">{{ post.categories.first.name }}</h3>
<div class="right-top-content-date">
<span class="date">{{ post.published_at| date('d.m.Y')}}</span>
<span class="time">{{post.published_at|date('H:i')}}</span>
@ -28,4 +28,4 @@ postPage = "post"
<div class="hr-line"></div>
</div>
{% endfor %}
</div>
</div>