diff --git a/_config.yml b/_config.yml index a26994121..eebeae028 100755 --- a/_config.yml +++ b/_config.yml @@ -151,7 +151,11 @@ auto_excerpt: # Use Lato font use_font_lato: true - +# Wechat Subscriber +#wechat_subscriber: + #enabled: true + #qcode: /path/to/your/wechatqcode ex. /uploads/wechat-qcode.jpg + #description: ex. subscribe to my blog by scanning my public wechat account # --------------------------------------------------------------- # Third Party Services Settings diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index 7d4a663e3..c09bd9a9d 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -177,6 +177,12 @@ {{ post.content }} {% endif %} + +
+ {% if ! is_index %} + {% include 'wechat-subscriber.swig' %} + {% endif %} +
{% if ! is_index %} diff --git a/layout/_macro/wechat-subscriber.swig b/layout/_macro/wechat-subscriber.swig new file mode 100644 index 000000000..a0d3a170d --- /dev/null +++ b/layout/_macro/wechat-subscriber.swig @@ -0,0 +1,6 @@ +{% if theme.wechat_subscriber.enabled %} +
+ {{ theme.author }} wechat +
{{ theme.wechat_subscriber.description }}
+
+{% endif %} \ No newline at end of file