From f21c4d280d71b81c473f07862c22f92c55750cb2 Mon Sep 17 00:00:00 2001 From: Simone Bortolin Date: Fri, 12 Aug 2022 23:59:07 +0200 Subject: update fix code --- _config.yml | 16 ++++++++-------- _includes/icons/custom.html | 12 ++++++++++++ _layouts/default.html | 13 ++++++++++--- 3 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 _includes/icons/custom.html diff --git a/_config.yml b/_config.yml index b92e11d..787d99a 100644 --- a/_config.yml +++ b/_config.yml @@ -37,14 +37,14 @@ url: "https://hack-gpon.github.io/" nav_sort: case_sensitive aux_links: - - "Github": - color: 'blue' - logo: 'https://cdn-icons-png.flaticon.com/512/1051/1051377.png' - link: '//github.com/hack-gpon/hack-gpon.github.io' - - "Telegram": - color: 'blue' - logo: 'https://iconape.com/wp-content/png_logo_vector/telegram-new-2019-black-x-logo.png' - link: '//t.me/HackGPON' + - title: "Github" + color: 'blue' + icon: 'svg-github' + link: '//github.com/hack-gpon/hack-gpon.github.io' + - title: "Telegram" + color: 'blue' + icon: 'svg-telegram' + link: '//t.me/HackGPON' #aux_links: # "Hack GPON on GitHub": diff --git a/_includes/icons/custom.html b/_includes/icons/custom.html new file mode 100644 index 0000000..4bcbf6a --- /dev/null +++ b/_includes/icons/custom.html @@ -0,0 +1,12 @@ + + Telegram + + + + + + GitHub + + + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 718ea9e..b3078cf 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -89,9 +89,16 @@ layout: table_wrappers {% if site.aux_links %} {% for link in site.aux_links %}
  • - - {{ link.first }} - {{ link }} + + {{ link.title }} + {% if link.logo %} + + {% endif %} + {% if link.icon %} + + + + {% endif %}
  • {% endfor %} -- cgit v1.2.3