use .Param for author field
This commit is contained in:
parent
9726b8d806
commit
40f42481d9
@ -26,7 +26,7 @@
|
|||||||
{{ .Date.Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }} ::
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with $.Param "author" }}
|
||||||
<span class="post-author">{{ . }}</span>
|
<span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{{ .Date.Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }} ::
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with $.Param "author" }}
|
||||||
<span class="post-author">{{ . }}</span>
|
<span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with $.Param "author" }}
|
||||||
<span class="post-author">{{ . }}</span>
|
<span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
{{ if (isset $.Site.Params.Twitter "site") }}
|
{{ if (isset $.Site.Params.Twitter "site") }}
|
||||||
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ $.Param "author" }}{{ end }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- OG data -->
|
<!-- OG data -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user