feat(theme): add post's source

This commit is contained in:
MDLeom 2020-11-08 11:37:21 +00:00
parent a6a13ffac8
commit 62ebd35ae1
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 5 additions and 0 deletions

View File

@ -19,3 +19,4 @@ category: Category
tag: Tag
date_published: Published Date
date_updated: Last Updated
source: Source

View File

@ -39,6 +39,10 @@
<%- partial('post/tag') %>
</li>
<% } %>
<li>
<span class="label"><%= __('source') %>:</span>
<%- link('https://gitlab.com/curben/blog/-/blob/master/source/' + post.source, post.source.replace('_posts/', '')) %>
</li>
<hr/>
</ul>
</footer>