3
{{- define "inline_styles" -}}
4
{{articleStyles .Article .AcceptAvif .AcceptWebp}}
7
{{- define "html_prefix"}}og: https://ogp.me/ns# article: https://ogp.me/ns/article#{{end -}}
9
{{- define "body_class"}}post-template{{end -}}
12
<div class="post-view-menu-bars js-open-main-menu">
13
<span class="glyphicon glyphicon-menu-hamburger"></span>
15
<div class="post-view">
16
{{template "sidebar" .Article}}
17
<main class="post-view-content scene-element fade-in-right" role="main">
18
<div class="post-view-right-container">
19
<article class="post-view-article post">
20
{{if .HasSuccessFlash}}
21
<div class="row success-flash">
22
<div class="success-flash-content">
27
<section class="post-content row">
28
<div class="small-12 columns">
29
<div class="post-header-content">
30
<section class="post-meta clearfix">
31
<div class="post-created-at">{{if or is_dev .IsAdmin}}[ID: {{.Article.ID}}] {{end -}}
32
{{time_tag .Article.CreatedAt}}</div>
33
<div class="post-views-cnt">
34
<span class="glyphicon glyphicon-eye-open"></span> {{.Article.Views}}
37
<h1 class="post-title">
38
<a href="{{path "category-first" "slug" .Article.CategorySlug}}">
39
{{- .Article.CategoryName -}}
40
</a> → {{ .Article.Title -}}
42
<div class="post-title-separator"></div>
44
<div class="post-article-content">
52
<div class="small-12 columns">
53
<div class="post-tags">
54
{{- range .Article.Tags }}
55
<a href="{{path "tag-first" "slug" .Slug}}">
64
{{template "author-info"}}
66
{{/* > "prev-next-post" */}}
67
<div class="cf"></div>
68
<section class="comments">
70
<div class="small-12 columns" id="comments-wrapper">
71
<h3 class="comments-header">Комментарии</h3>
72
<noscript>Please enable JavaScript to send the comments.</noscript>
73
<div id="comments_thread">
74
{{render_esi "fragment-comments"
75
"article_id" .Article.IdString
76
"disabled_flag" .Article.DisabledCommentsFlag
77
"last_time" .CommentKey}}
78
<div id="topic-reply">
79
{{cnt_comments .Article.CommentsCount}}
80
{{if not .Article.DisabledComments -}}
81
<span>Написать что-нибудь</span>
85
{{if not .Article.DisabledComments -}}
86
{{template "comment-form" .}}
92
{{template "powered-by"}}