getpelican / pelican-themes

Themes for Pelican
https://getpelican.com/
2.12k stars 1.09k forks source link

pelican-bootstrap3: cc-license.html lack of a parameter and a wrong parameter name #676

Open izheye opened 4 years ago

izheye commented 4 years ago

The macro cc_license_mark has two problems:

  1. lack of a parameter of show_icon
  2. wrong parameter name of br_after_icon

so, firstly, add a parameter named _showicon at the head:

{% macro cc_license_mark(cc_name,
                         derivatives, commercial,
                         show_icon=false,
                         br_after_icon=false,
                         attr_markup=false,
                         attr_props={}) %}

secondly, correct the parameter name to _br_aftericon at line 58 at the macro body: {% if br_after_icon %}<br/>{% endif %}