summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-07-23 21:51:56 +0300
committerPaul Buetow <paul@buetow.org>2023-07-23 21:51:56 +0300
commit625d9ac44074a31140fb88d40153e216f8c8bd67 (patch)
tree6d61dd03807d67fe55eb0877aab16a7aa2dd57ef
parent065a9d2010dba0462cf068a003f3e07f8c63908c (diff)
typo
-rw-r--r--README.md8
-rwxr-xr-xgemtexter2
-rw-r--r--gemtexter-paul.buetow.org.conf2
-rw-r--r--lib/html.source.sh20
4 files changed, 16 insertions, 16 deletions
diff --git a/README.md b/README.md
index f00e8d4..31fb3a6 100644
--- a/README.md
+++ b/README.md
@@ -204,22 +204,22 @@ You will find the `./extras/html/header.html.part` and `./extras/html/footer.htm
### HTML Mastodon verification
-https://joinmastodon.org/verification explains how it works on Mastadon. So we have to hyperlink to the Mastadon profile to be verified and also include a `rel='me'` into the tag. In order to do that add this to the `gemtexter.conf` (replace the URI to your Mastadon profile accordingly):
+https://joinmastodon.org/verification explains how it works on Mastodon. So we have to hyperlink to the Mastodon profile to be verified and also include a `rel='me'` into the tag. In order to do that add this to the `gemtexter.conf` (replace the URI to your Mastodon profile accordingly):
```
-declare -xr MASTADON_URI='https://fosstodon.org/@snonux'
+declare -xr MASTODON_URI='https://fosstodon.org/@snonux'
```
and add the following into your `index.gmi`:
```
-=> https://fosstodon.org/@snonux Me at Mastaton
+=> https://fosstodon.org/@snonux Me at Mastodon
```
The resulting line in the HTML output will be something as follows:
```
-<a href="https://fosstodon.org/@snonux" rel='me'>Me at mastadon</a>
+<a href="https://fosstodon.org/@snonux" rel='me'>Me at Mastodon</a>
```
### Special Markdown configuration for GitHub pages
diff --git a/gemtexter b/gemtexter
index 1ee879e..47cbc0e 100755
--- a/gemtexter
+++ b/gemtexter
@@ -29,7 +29,7 @@ test -z "$LOG_VERBOSE" && LOG_VERBOSE=''
test -z "$PRE_GENERATE_HOOK" && PRE_GENERATE_HOOK=''
test -z "$POST_PUBLISH_HOOK" && POST_PUBLISH_HOOK=''
test -z "$HTML_VARIANT" && HTML_VARIANT=''
-test -z "$MASTADON_URI" && MASTADON_URI=''
+test -z "$MASTODON_URI" && MASTODON_URI=''
set -euf -o pipefail
diff --git a/gemtexter-paul.buetow.org.conf b/gemtexter-paul.buetow.org.conf
index d1c4f86..447c52f 100644
--- a/gemtexter-paul.buetow.org.conf
+++ b/gemtexter-paul.buetow.org.conf
@@ -3,7 +3,7 @@ declare -xr DOMAIN=paul.buetow.org
declare -xr SUBTITLE="Paul Buetow's contact information"
declare -xr AUTHOR='Paul Buetow'
declare -xr EMAIL='contact@mx.buetow.org'
-declare -xr MASTADON_URI='https://fosstodon.org/@snonux'
+declare -xr MASTODON_URI='https://fosstodon.org/@snonux'
declare -xr IMAGE_PATTERN='\.(jpg|png|gif)$'
declare -xr ATOM_MAX_ENTRIES=42
declare -xr CONTENT_BASE_DIR=../paul.buetow.org-content
diff --git a/lib/html.source.sh b/lib/html.source.sh
index 371866a..6c5fd36 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -71,12 +71,12 @@ html::make_link () {
descr="$link"
fi
- local mastadon_verify=''
- if [[ "$link" = "$MASTADON_URI" ]]; then
- mastadon_verify=" rel='me'"
+ local mastodon_verify=''
+ if [[ "$link" = "$MASTODON_URI" ]]; then
+ mastodon_verify=" rel='me'"
fi
- echo "<a class='textlink' href='$(html::encode "$link")'$mastadon_verify>$descr</a><br />"
+ echo "<a class='textlink' href='$(html::encode "$link")'$mastodon_verify>$descr</a><br />"
}
html::process_inline () {
@@ -197,7 +197,7 @@ $line"
# Test default HTML variant.
html::test::default () {
- MASTADON_URI=''
+ MASTODON_URI=''
local line='Hello world! This is a paragraph.'
assert::equals "$(html::make_paragraph "$line")" '<p>Hello world! This is a paragraph.</p>'
@@ -234,12 +234,12 @@ html::test::default () {
assert::equals "$(generate::make_link html "$line")" \
"<a class='textlink' href='http://example.org'>Description of the link</a><br />"
- # Test Mastadon verification.
- MASTADON_URI='https://fosstodon.org/@snonux'
- line='=> https://fosstodon.org/@snonux Me at Mastadon'
+ # Test Mastodon verification.
+ MASTODON_URI='https://fosstodon.org/@snonux'
+ line='=> https://fosstodon.org/@snonux Me at Mastodon'
assert::equals "$(generate::make_link html "$line")" \
- "<a class='textlink' href='https://fosstodon.org/@snonux' rel='me'>Me at Mastadon</a><br />"
- MASTADON_URI=''
+ "<a class='textlink' href='https://fosstodon.org/@snonux' rel='me'>Me at Mastodon</a><br />"
+ MASTODON_URI=''
line='=> http://example.org/image.png'
assert::equals "$(generate::make_link html "$line")" \