File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5050 text="Build queue",
5151 icon=crate::icons::IconGears,
5252 ) -%}
53- {%- call macros::menu_link (
53+ {%- call macros::menu_link_with_icon_solid (
5454 href="https://foundation.rust-lang.org/policies/privacy-policy/#docs.rs",
5555 text="Privacy policy",
56- target="_blank"
56+ icon=crate::icons::IconShieldHalved,
57+ target="_blank",
5758 ) -%}
5859 </ ul >
5960 </ li >
Original file line number Diff line number Diff line change 55 * `target` An optional target
66 * `extra_classes` Optional extra css classes
77#}
8- {% macro menu_link(href, text, target) -%}
8+ {% macro menu_link(href, text, target, icon="" ) -%}
99 < li class ="pure-menu-item "> {#- -#}
1010 < a class ="pure-menu-link " href ="{{ href }} "{% if !target.is_empty() %} target ="{{ target }} " {%- endif %} > {{ text }}</ a > {#- -#}
1111 </ li >
1212{%- endmacro menu_link %}
1313
14- {% macro menu_link_with_icon_solid(href, text, icon) -%}
14+ {% macro menu_link_with_icon_solid(href, text, icon, target="" ) -%}
1515 < li class ="pure-menu-item "> {#- -#}
16- < a class ="pure-menu-link " href ="{{ href }} ">
16+ < a class ="pure-menu-link " href ="{{ href }} "{% if !target.is_empty() %} target =" {{ target }} " {%- endif %} >
1717 {{- icon.render_solid(false, false, "") }} {{ text -}}
1818 </ a > {#- -#}
1919 </ li >
You can’t perform that action at this time.
0 commit comments