Merge pull request #73 from welpo/docs/lighthouse-score

📝 docs: mention (and achieve) perfect Lighthouse score
main
Óscar 2 years ago committed by GitHub
commit 39ebf170a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,9 +8,14 @@ See a live preview [here](https://welpo.github.io/tabi).
![tabi](screenshot.png) ![tabi](screenshot.png)
Tabi has a perfect score on Google's Lighthouse audit:
![lighthouse](lighthouse_score.png)
## Features ## Features
- [X] Dark and light themes. Defaults to the OS setting, with a switcher in the navigation bar. - [X] Dark and light themes. Defaults to the OS setting, with a switcher in the navigation bar.
- [X] Perfect Lighthouse score (Performance, Accessibility, Best Practices and SEO).
- [X] [KaTeX](https://katex.org/) support. - [X] [KaTeX](https://katex.org/) support.
- [X] All JavaScript (theme switcher and KaTeX) can be fully disabled. - [X] All JavaScript (theme switcher and KaTeX) can be fully disabled.
- [X] Projects page. - [X] Projects page.

@ -10,4 +10,4 @@ section_path = "blog/_index.md"
max_posts = 4 max_posts = 4
+++ +++
Tabi is a fast, lightweight, and modern [Zola](https://getzola.org) theme. It aims to be a personal page and home to blog posts. It features responsive design, dark and light modes, custom shortcodes, and much more. Tabi is a fast, lightweight, and modern [Zola](https://getzola.org) theme. It aims to be a personal page and home to blog posts. It features a perfect Lighthouse score, responsive design, dark and light themes, custom shortcodes, and much more.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 10 KiB

@ -3,15 +3,20 @@
<div class="cards"> <div class="cards">
{%- for page in pages %} {%- for page in pages %}
<div class="card"> <div class="card">
<a rel="noopener noreferrer" target="_blank" href={{ page.extra.link_to }}> {% if page.extra.link_to %}
<a rel="noopener noreferrer" target="_blank" href={{ page.extra.link_to }}>
{% endif %}
{% if page.extra.local_image %} {% if page.extra.local_image %}
<img class="card-image" alt={{ page.extra.local_image }} src="{{ get_url(path=page.extra.local_image) }}"> {% set meta = get_image_metadata(path=page.extra.local_image) %}
<img class="card-image" alt={{ page.extra.local_image }} src="{{ get_url(path=page.extra.local_image) }}" {% if meta.width %}width="{{ meta.width }}" {% endif %} {% if meta.height %}height="{{ meta.height }}" {% endif %}>
{% elif page.extra.remote_image %} {% elif page.extra.remote_image %}
<img class="card-image" alt={{ page.extra.remote_image }} src="{{ page.extra.remote_image }}"> <img class="card-image" alt={{ page.extra.remote_image }} src="{{ page.extra.remote_image }}">
{% else %} {% else %}
<div class="card-image-placeholder"></div> <div class="card-image-placeholder"></div>
{% endif %} {% endif %}
</a> {% if page.extra.link_to %}
</a>
{% endif %}
<div class="card-info"> <div class="card-info">
<h1 class="card-title"> <h1 class="card-title">

Loading…
Cancel
Save