From 62ebd35ae10696ae2cf8fca48212a4805f4551bc Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 8 Nov 2020 11:37:21 +0000 Subject: [PATCH] feat(theme): add post's source --- themes/chameleon/languages/en-GB.yml | 1 + themes/chameleon/layout/_partial/article.ejs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/themes/chameleon/languages/en-GB.yml b/themes/chameleon/languages/en-GB.yml index fcb94bd..d445130 100644 --- a/themes/chameleon/languages/en-GB.yml +++ b/themes/chameleon/languages/en-GB.yml @@ -19,3 +19,4 @@ category: Category tag: Tag date_published: Published Date date_updated: Last Updated +source: Source diff --git a/themes/chameleon/layout/_partial/article.ejs b/themes/chameleon/layout/_partial/article.ejs index a531b2a..f447a0a 100644 --- a/themes/chameleon/layout/_partial/article.ejs +++ b/themes/chameleon/layout/_partial/article.ejs @@ -39,6 +39,10 @@ <%- partial('post/tag') %> <% } %> +
  • + <%= __('source') %>: + <%- link('https://gitlab.com/curben/blog/-/blob/master/source/' + post.source, post.source.replace('_posts/', '')) %> +