Merge pull request #73 from welpo/docs/lighthouse-score
📝 docs: mention (and achieve) perfect Lighthouse score
This commit is contained in:
commit
39ebf170a5
@ -8,9 +8,14 @@ See a live preview [here](https://welpo.github.io/tabi).
|
||||
|
||||

|
||||
|
||||
Tabi has a perfect score on Google's Lighthouse audit:
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
- [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] All JavaScript (theme switcher and KaTeX) can be fully disabled.
|
||||
- [X] Projects page.
|
||||
|
@ -10,4 +10,4 @@ section_path = "blog/_index.md"
|
||||
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.
|
||||
|
BIN
lighthouse_score.png
Normal file
BIN
lighthouse_score.png
Normal file
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">
|
||||
{%- for page in pages %}
|
||||
<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 %}
|
||||
<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 %}
|
||||
<img class="card-image" alt={{ page.extra.remote_image }} src="{{ page.extra.remote_image }}">
|
||||
{% else %}
|
||||
<div class="card-image-placeholder"></div>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if page.extra.link_to %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<div class="card-info">
|
||||
<h1 class="card-title">
|
||||
|
Loading…
x
Reference in New Issue
Block a user