[Chore]: SEO Part 2

Electric Boogaloo (hopefully not)
This commit is contained in:
ClaraCrazy 2025-12-30 11:55:58 +01:00
parent 12069300d0
commit cc4e3ddfbd
No known key found for this signature in database
GPG key ID: EBBC896ACB497011
6 changed files with 17 additions and 22 deletions

View file

@ -3,9 +3,9 @@
{% block header %} {% block header %}
<div class="action-links"> <div class="action-links">
{% if showUnlockButton %} {% if showUnlockButton %}
<a href="#" id="unlockBtn">Unlock</a> <a href="#" id="unlockBtn" aria-label="Unlock inbox">Unlock</a>
{% endif %} {% endif %}
<a href="/">Logout</a> <a href="/" aria-label="Return to home">Logout</a>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -4,18 +4,18 @@
<div class="action-links"> <div class="action-links">
{% if lockEnabled %} {% if lockEnabled %}
{% if isLocked and hasAccess %} {% if isLocked and hasAccess %}
<a href="#" id="removeLockBtn">Remove Lock</a> <a href="#" id="removeLockBtn" aria-label="Remove password lock">Remove Lock</a>
{% elseif isLocked %} {% elseif isLocked %}
<a href="#" id="unlockBtn">Unlock</a> <a href="#" id="unlockBtn" aria-label="Unlock inbox">Unlock</a>
{% else %} {% else %}
<a href="#" id="lockBtn">Protect Inbox</a> <a href="#" id="lockBtn" aria-label="Protect inbox with password">Protect Inbox</a>
{% endif %} {% endif %}
{% endif %} {% endif %}
<a href="/inbox/{{ address }}/delete-all">Wipe Inbox</a> <a href="/inbox/{{ address }}/delete-all" aria-label="Delete all emails">Wipe Inbox</a>
{% if lockEnabled and hasAccess %} {% if lockEnabled and hasAccess %}
<a href="/lock/logout">Logout</a> <a href="/lock/logout" aria-label="Logout">Logout</a>
{% else %} {% else %}
<a href="/logout">Logout</a> <a href="/logout" aria-label="Logout">Logout</a>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -78,8 +78,8 @@
<body{% if bodyClass %} class="{{ bodyClass }}"{% endif %}> <body{% if bodyClass %} class="{{ bodyClass }}"{% endif %}>
<main> <main>
<div class="header"> <div class="header">
<a href="/"> <a href="/" aria-label="48hr.email home">
<img src="/images/logo.png" class="logo" style="max-width: 75px"> <img src="/images/logo.png" class="logo" alt="48hr.email logo" style="max-width: 75px">
</a> </a>
{% block header %}{% endblock %} {% block header %}{% endblock %}
</div> </div>

View file

@ -2,13 +2,13 @@
{% block header %} {% block header %}
<div class="action-links"> <div class="action-links">
<a href="/inbox/{{ address }}">← Return to inbox</a> <a href="/inbox/{{ address }}" aria-label="Return to inbox">← Return to inbox</a>
<a href="/inbox/{{ address }}/{{ uid }}/delete">Delete Email</a> <a href="/inbox/{{ address }}/{{ uid }}/delete" aria-label="Delete this email">Delete Email</a>
<a href="/inbox/{{ address }}/{{ uid }}/raw" target="_blank">View Raw</a> <a href="/inbox/{{ address }}/{{ uid }}/raw" target="_blank" aria-label="View raw email">View Raw</a>
{% if lockEnabled and isLocked and hasAccess %} {% if lockEnabled and isLocked and hasAccess %}
<a href="/lock/logout">Logout</a> <a href="/lock/logout" aria-label="Logout">Logout</a>
{% else %} {% else %}
<a href="/logout">Logout</a> <a href="/logout" aria-label="Logout">Logout</a>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -89,12 +89,7 @@ Twig.extendFilter('sanitizeHtml', sanitizeHtmlTwigFilter)
app.use((req, res, next) => { app.use((req, res, next) => {
const isImapReady = req.app.get('isImapReady') const isImapReady = req.app.get('isImapReady')
if (!isImapReady && !req.path.startsWith('/images') && !req.path.startsWith('/javascripts') && !req.path.startsWith('/stylesheets') && !req.path.startsWith('/dependencies')) { if (!isImapReady && !req.path.startsWith('/images') && !req.path.startsWith('/javascripts') && !req.path.startsWith('/stylesheets') && !req.path.startsWith('/dependencies')) {
return res.render('loading', { return res.render('loading')
branding: config.http.branding,
purgeTime: purgeTime,
count: "NaN Emails"
})
} }
next() next()
}) })

View file

@ -1,6 +1,6 @@
{ {
"name": "48hr.email", "name": "48hr.email",
"version": "1.7.2", "version": "1.7.3",
"private": false, "private": false,
"description": "48hr.email is your favorite open-source tempmail client.", "description": "48hr.email is your favorite open-source tempmail client.",
"keywords": [ "keywords": [