build/email-subjects (#5281)
continuous-integration/drone/push Build is passing

Allow specifying a subject in our email element.

Eg the xhtml content
```xml
<email mailto="yes" subject="Ada and Zangemann">contact@fsfe.org</email>
```

Will now generate
```xml
<a href="mailto:contact@fsfe.org?subject=Ada and Zangemann">contact@fsfe.org</a>
```
Which when clicked will open an email client, and correctly populate the subject.

I also added the subject to all ada zangemann pages, and have documented it on the web features page.

Resolves #2742

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5281
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5281.
This commit is contained in:
2025-09-08 05:46:53 +00:00
committed by tobiasd
co-authored by Darragh Elliott
parent b523e45db4
commit 235d86bed9
7 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<html>
<version>1</version>
<version>2</version>
<head>
<title>Overview of website features</title>
@@ -190,6 +190,10 @@
opened with the mail as recipient (like <email
mailto="yes">donotmailme@fsfe.org</email>), make it <code>&lt;email
mailto="yes"&gt;donotmailme@fsfe.org&lt;/email&gt;</code>.
We can also specify a subject, that most email clients will automatically set as the email subject. EG
<email mailto="yes" subject="Web development">donotmailme@fsfe.org</email> and the code to produce it:
<code>&lt;email mailto="yes" subject="Web development"&gt;donotmailme@fsfe.org&lt;/email&gt;</code>
</p>