实现版权声明内容自定义。

通过 Front-matter 实现针对特定文章的版权声明内容自定义。  
例如:  
copyright_content: 本文章遵守 CC BY-SA 4.0 协议。
This commit is contained in:
边宇琨 2020-09-10 02:22:51 +08:00 committed by GitHub
parent b9284527ec
commit 736a5d3876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,11 @@
<li> <li>
<i class="ri-copyright-line"></i> <i class="ri-copyright-line"></i>
<strong><%= __('post.copyright_title') %> </strong> <strong><%= __('post.copyright_title') %> </strong>
<% if (post.copyright_content) { %>
<%= post.copyright_content %>
<% } else { %>
<%= __('post.copyright_content') %> <%= __('post.copyright_content') %>
<% } %>
</li> </li>
</ul> </ul>
</div> </div>