2023-01-02 16:51:03 -05:00

91 lines
3.3 KiB
HTML

{{- define "main" }}
<article class="post-single">
<header class="post-header">
{{ partial "breadcrumbs.html" . }}
<h1 class="post-title">
{{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
{{- partial "post_meta.html" . -}}
<<<<<<< HEAD
{{- if .IsTranslated -}}&nbsp;|&nbsp;
<ul class="i18n_list">
{{- i18n "translations" | default "Translations"}}:
{{- range .Translations }}
<li>
<a href="{{ .RelPermalink }}">
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify | humanize -}}
{{- else }}
{{- .Lang | humanize -}}
{{- end -}}
</a>
</li>
{{- end }}
</ul>
{{- end }}
=======
{{- partial "translation_list.html" . -}}
{{- partial "edit_post.html" . -}}
{{- partial "post_canonical.html" . -}}
>>>>>>> d3d90be8a4ea04433d95d02a1dc07b0014c5b8b8
</div>
{{- end }}
</header>
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{- if (.Param "ShowToc") }}
{{- partial "toc.html" . }}
{{- end }}
{{- if .Content }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
</div>
{{- end }}
<footer class="post-footer">
<<<<<<< HEAD
<ul class="post-tags">
<li>
<a id="error-here" type="button" onclick="ga('send', {hitType: 'event',eventCategory: 'Report',eventAction: 'report',eventLabel: document.title,eventName: 'report'});document.getElementById('check').setAttribute('fill', 'white');document.getElementById('thank-you-text').innerHTML = 'Спасибо!';">
<svg id="check" style="vertical-align: middle; margin-right: 10px;" fill="none" stroke="currentColor" stroke-width="16" stroke-linecap="round"
stroke-linejoin="round" enable-background="new 0 0 24 24" height="24" viewBox="0 0 515.556 515.556" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m0 274.226 176.549 176.886 339.007-338.672-48.67-47.997-290.337 290-128.553-128.552z"/></svg>
<span id="thank-you-text">Тут ошибочка...</span>
</a>
</li>
</ul>
{{- if .Params.tags }}
=======
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
>>>>>>> d3d90be8a4ea04433d95d02a1dc07b0014c5b8b8
<ul class="post-tags">
{{- range ($.GetTerms $tags) }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- if (.Param "ShowPostNavLinks") }}
{{- partial "post_nav_links.html" . }}
{{- end }}
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
{{- partial "share_icons.html" . -}}
{{- end }}
</footer>
{{- if (.Param "comments") }}
{{- partial "comments.html" . }}
{{- end }}
</article>
{{- end }}{{/* end main */}}