File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,6 @@ figure {
107107}
108108
109109.social-links {
110- list-style : none ;
111- padding-inline-start : 0 ; // TODO: only style lists in content
112110 display : grid ;
113111 grid-template-columns : repeat (2 , auto );
114112 gap : 0.2em 1.5em ;
@@ -117,3 +115,7 @@ figure {
117115 grid-template-columns : auto ;
118116 }
119117}
118+
119+ .link-with-icon {
120+ svg { margin-right : .5ch ; }
121+ }
Original file line number Diff line number Diff line change 1- < footer class ="site-footer ">
1+ < footer class ="site-footer " role =" contentinfo " >
22 < div class ="wrapper ">
33 {% if config.description %}
44 < p > {{ config.description }}</ p >
Original file line number Diff line number Diff line change 1515 </ p >
1616 < p >
1717 Join us on
18- < a href ="https://github.com/{{ social.github | urlencode }}/wg "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='minima- social-icons .svg#github ') }} "> </ use > </ svg > GitHub</ a >
18+ < a href ="https://github.com/{{ social.github | urlencode }}/wg " class =" link-with-icon " > < svg class ="svg-icon " aria-hidden =" true " > < use xlink:href ="{{ get_url(path='social/github .svg#icon ') }} "> </ use > </ svg > < span > GitHub</ span > </ a >
1919 or
20- < a href ="https://discord.gg/{{ social.discord | urlencode }} "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='minima- social-icons .svg#discord ') }} "> </ use > </ svg > Discord</ a > ,
20+ < a href ="https://discord.gg/{{ social.discord | urlencode }} " class =" link-with-icon " > < svg class ="svg-icon " aria-hidden =" true " > < use xlink:href ="{{ get_url(path='social/discord .svg#icon ') }} "> </ use > </ svg > < span > Discord</ span > </ a > ,
2121 and help shape the future of game development in Rust!
2222 </ p >
2323 </ div >
Original file line number Diff line number Diff line change 11{% set social = config.extra.social_links -%}
22
3- < ul class ="social-links ">
4- {% if social.github %}< li > < a href ="https://github.com/{{ social.github | urlencode }} " title =" {{ social.github }} "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='social/github.svg#icon') }} "> </ use > </ svg > GitHub ( rust-gamedev) </ a > </ li > {% endif %}
5- {% if social.twitter %}< li > < a href ="https://twitter.com/{{ social.twitter | urlencode }} " title =" {{ social.twitter }} "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='social/twitter.svg#icon') }} "> </ use > </ svg > Twitter ( rust_gamedev) </ a > </ li > {% endif %}
6- {% if social.discord %}< li > < a href ="https://discord.gg/{{ social.discord | urlencode }} " title =" Discord "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='social/discord.svg#icon') }} "> </ use > </ svg > Discord ( #wg-gamedev) </ a > </ li > {% endif %}
7- {% if social.rss %}< li > < a href ="{{ get_url(path='rss.xml') }} " title =" {{ social.rss }} "> < svg class ="svg-icon "> < use xlink:href ="{{ get_url(path='social/rss.svg#icon') }} "> </ use > </ svg > RSS feed </ a > </ li > {% endif %}
3+ < ul class ="social-links _semantic ">
4+ {% if social.github %}< li > < a href ="https://github.com/{{ social.github | urlencode }} " class =" link-with-icon "> < svg class ="svg-icon " title =" GitHub " aria-label =" GitHub " role =" img " > < use xlink:href ="{{ get_url(path='social/github.svg#icon') }} " aria-hidden =" true " > </ use > </ svg > < span > rust-gamedev</ span > </ a > </ li > {% endif %}
5+ {% if social.twitter %}< li > < a href ="https://twitter.com/{{ social.twitter | urlencode }} " class =" link-with-icon "> < svg class ="svg-icon " title =" Twitter " aria-label =" Twitter " role =" img " > < use xlink:href ="{{ get_url(path='social/twitter.svg#icon') }} " aria-hidden =" true " > </ use > </ svg > < span > rust_gamedev</ span > </ a > </ li > {% endif %}
6+ {% if social.discord %}< li > < a href ="https://discord.gg/{{ social.discord | urlencode }} " class =" link-with-icon "> < svg class ="svg-icon " title =" Discord " aria-label =" Discord " role =" img " > < use xlink:href ="{{ get_url(path='social/discord.svg#icon') }} " aria-hidden =" true " > </ use > </ svg > #wg-gamedev</ span > </ a > </ li > {% endif %}
7+ {% if social.rss %}< li > < a href ="{{ get_url(path='rss.xml') }} " class =" link-with-icon "> < svg class ="svg-icon " title =" RSS " aria-label =" RSS " role =" img " > < use xlink:href ="{{ get_url(path='social/rss.svg#icon') }} " aria-hidden =" true " > </ use > </ svg > < span > gamedev.rs </ span > </ a > </ li > {% endif %}
88</ ul >
You can’t perform that action at this time.
0 commit comments