3
{{- define "inline_styles" -}}
7
{{- define "html_prefix"}}og: https://ogp.me/ns#{{end -}}
9
{{- define "body_class"}}home-template{{end -}}
12
<div class="main-content-wrapper">
13
{{template "sticky-header"}}
14
{{template "big-header" .}}
15
<main id="content" class="content home-template scene-element fade-in-right" role="main">
17
<div class="post-row">
18
<article class="js-post-block-grid post-block-grid">
19
{{if .HasSuccessFlash}}
20
<div class="row success-flash">
21
<div class="success-flash-content">
26
{{range .Paginator.Items}}
27
<div class="post post-block-grid-item list">
28
<div class="post-block-wrapper">
30
<figure class="effect-hera">
31
{{raw .PictureTag.Value}}
34
<a href="{{path "article" "slug" .Slug}}"
35
aria-label="{{ .Title }}">
36
<span class="glyphicon glyphicon-link"></span>
42
<div class="post-block-grid-content {{if .HasImage}}with-image{{else}}no-image{{end}}">
43
<header class="post-header">
44
{{time_tag .CreatedAt}}
45
<h2 class="post-title {{if .Hidden}}draft-title{{end}}">
46
<a href="{{path "category-first" "slug" .CategorySlug}}">
49
<a href="{{path "article" "slug" .Slug}}">
53
<div class="post-title-separator"></div>
55
<section class="post-preview">
60
<a href="{{path "article" "slug" .Slug}}"
61
class="post-read-more-btn">Читать далее
62
<span class="glyphicon glyphicon-chevron-right"></span>
66
<footer class="post-meta clearfix">
67
<div class="left">{{tags .Tags}}</div>
68
{{if gt .CommentsCount 0}}
70
<a class="to-comments"
71
href="{{path "article" "slug" .Slug}}#comments-wrapper">
72
{{cnt_comments .CommentsCount}}
85
<nav class="pagination small-12 columns" role="navigation">
86
{{if .Paginator.HasPrevious}}
87
<a class="newer-posts" href="{{.Paginator.PreviousPageURL}}">
88
<span class="glyphicon glyphicon-chevron-left"></span> Новые записи
91
{{if .Paginator.HasNext}}
92
<a class="older-posts" href="{{.Paginator.NextPageURL}}">
93
Старые записи <span class="glyphicon glyphicon-chevron-right"></span>
100
{{template "footer"}}