Skip to content

Commit

Permalink
show copyright for "post" and "posts" type
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJia committed Apr 25, 2019
1 parent 0602f8d commit 0460516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/copyright.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and (isset .Site.Params "cc") (in .Site.Params.cc.types .Type) }}
{{ if and (isset .Site.Params "cc") (in (slice "post" "posts") .Type) }}
<div class="post-archive">
<ul class="post-copyright">
<li><strong>原文作者:</strong><a rel="author" href="{{ .Site.BaseURL}}">{{ if isset .Site.Author "name" }}{{.Site.Author.name}}{{ else }}{{.Site.Title}}{{ end }}</a></li>
Expand Down

0 comments on commit 0460516

Please sign in to comment.