Skip to content

Commit 7f10dc3

Browse files
Lighthouse enhancements (alshedivat#445)
1 parent b45b247 commit 7f10dc3

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ footer_text: >
1414
Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>.
1515
Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
1616
17+
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
1718
icon: 🔥 # the emoji used as the favicon
1819
url: https://alshedivat.github.io # the base hostname & protocol for your site
1920
baseurl: /al-folio # the subpath of your site, e.g. /blog/

_includes/head.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@
4141
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>">
4242
{% endif %}
4343
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
44-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">
44+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
4545

4646
{% if site.enable_darkmode %}
4747
<!-- Dark Mode -->
4848
<script src="{{ '/assets/js/theme.js' | relative_url }}"></script>
4949
<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script>
5050
{% endif %}
51-

_includes/social.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if site.email %}<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a>{% endif %}
1+
{% if site.email %}<a href="mailto:{{ site.email | encode_email }}" title="email"><i class="fas fa-envelope"></i></a>{% endif %}
22
{% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
33
{% if site.scholar_userid %}<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>{% endif %}
44
{% if site.publons_id %}<a href="https://publons.com/a/{{ site.publons_id }}/" title="Publons"><i class="ai ai-publons"></i></a>{% endif %}

_layouts/about.html

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h1 class="post-title">
1818
{% responsive_image_block %}
1919
path: {{ page.profile.image | prepend: 'assets/img/' }}
2020
class: "img-fluid z-depth-1 rounded"
21+
alt: {{ page.profile.image }}
2122
{% endresponsive_image_block %}
2223
{% endif %}
2324
{% if page.profile.address %}

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="{{ site.lang }}">
33

44
<head>
55
{% if page.redirect %}<meta http-equiv="refresh" content="3; url={{ site.baseurl | prepend: site.url }}/" />{% endif %}

0 commit comments

Comments
 (0)