From ac6bc652312cf7dec354f3c0b0163ec1757fb3be Mon Sep 17 00:00:00 2001 From: JCabak Date: Fri, 23 Apr 2021 22:42:04 +0200 Subject: [PATCH 1/2] Accessibility and SEO improvements --- exampleSite/config.toml | 4 ++++ layouts/partials/default.html | 7 ++++--- layouts/partials/footer.html | 2 +- layouts/partials/head.html | 3 ++- static/plugins/themify-icons/themify-icons.css | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 36ebabb..b36d169 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -40,18 +40,22 @@ contact_form_action = "#" # contact form works with : https://formspree.io ############################## social links ############################## [[params.social]] icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons +name = "Facebook" link = "#" [[params.social]] icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons +name = "Twitter" link = "#" [[params.social]] icon = "ti-github" # themify icon pack : https://themify.me/themify-icons +name = "Github" link = "#" [[params.social]] icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons +name = "Linkedin" link = "#" ################################ English Language ###################### diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 001555f..3387d8d 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -4,9 +4,10 @@
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 03c7968..5f3d3ed 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,7 +8,7 @@
    {{ range .Site.Params.social }} -
  • +
  • {{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 64ae644..f20ac5e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,8 +1,9 @@ {{ .Title }} - + {{ hugo.Generator }} + {{ "" | safeHTML }} diff --git a/static/plugins/themify-icons/themify-icons.css b/static/plugins/themify-icons/themify-icons.css index db133b8..9f2ea36 100644 --- a/static/plugins/themify-icons/themify-icons.css +++ b/static/plugins/themify-icons/themify-icons.css @@ -7,6 +7,7 @@ url('fonts/themify.svg?-fvbane#themify') format('svg'); font-weight: normal; font-style: normal; + font-display: swap; } [class^="ti-"], From df803ed9debd0040c7ef3118cce6240f726ac42b Mon Sep 17 00:00:00 2001 From: JCabak Date: Fri, 23 Apr 2021 22:43:36 +0200 Subject: [PATCH 2/2] Accessibility and SEO improvements --- layouts/partials/default.html | 1 - layouts/partials/head.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 3387d8d..b60b3cb 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -6,7 +6,6 @@