aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/edwin/layouts/_default/single.html
blob: 329c543341221563ebf629e0165d2fe098b37b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{{ define "main" }}


<h2 class="text-gray-700 text-2xl font-bold mb-2">{{ .Title | markdownify }}</h2>

<p class="mb-1 text-gray-700">{{ partial "post-date" . }}</p>

<p class=" text-gray-700 mb-4">{{ partial "post-tags" . }}</p>


<article class="journal-post">
    {{ .Content | replaceRE "<p>" "<p class=\"leading-normal text-gray-900 text-xl mb-4\">" | safeHTML }}

    {{ if .IsTranslated }}
      <h4>{{ i18n "translations" }}</h4>
      <ul>
        {{ range .Translations }}
        <li>
          <a href="{{ .RelPermalink }}">{{ .Lang }}: {{ .Title }}</a>
        </li>
        {{ end }}
      </ul>
    {{ end }}

    {{ partial "related" . }}
</article>

<noscript>
  <style>
    .comments { display: none; }
  </style>
</noscript>

<h4 class="text-3xl mt-2 mb-4 text-red-500 font-bold comments">Comments</h4>
<script type="text/javascript" src="/comments"></script>


{{ end }}