Welcome to mirror list, hosted at ThFree Co, Russian Federation.

article_header.html « partials « layouts - github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c2dd6bf45c7ef726e7200dd233691137ef0a043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<header class="article-info clearfix">
  <h1 itemprop="name">
      <a href="{{ .Permalink }}" title="{{ .Title }}" itemprop="url">{{ .Title }}</a>
  </h1>
  <p class="article-author">By
    {{ if and (isset .Params "author") (isset .Params "author_homepage") }}
      <a href="{{ .Params.author_homepage }}" title="{{ .Params.author }}">{{ .Params.author }}</a>
    {{ else }}
      <a href="{{ .Site.Params.AuthorHomepage }}" title="{{ .Site.Author.Name }}">{{ .Site.Author.Name | default "you" }}</a>
    {{ end }}
  </p>
  <p class="article-time">
    <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format (.Site.Params.DateFormat | default "2006-01-02") }}</time>
  </p>
</header>