summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/assets/blog/2025-02-24.md4
-rw-r--r--src/assets/blog/2025-03-11.md4
-rw-r--r--src/web/_model/blog.php2
-rw-r--r--src/web/_views/footer.php4
-rw-r--r--src/web/_views/header.php2
-rw-r--r--src/web/lang/common.php7
-rw-r--r--src/web/lib/image.php6
7 files changed, 19 insertions, 10 deletions
diff --git a/src/assets/blog/2025-02-24.md b/src/assets/blog/2025-02-24.md
index 6d2bf93..88bf891 100644
--- a/src/assets/blog/2025-02-24.md
+++ b/src/assets/blog/2025-02-24.md
@@ -257,8 +257,8 @@ to use that. There is alot about guix that I love, but I ran into too many
problems. I am able to have my declarative system with nix without the hassle
of guix.
-You can see my guix configuration [here](https://g.freya.cat/freya/dotfiles-guix)
-and my nix configuration [here](https://g.freya.cat/freya/dotfiles-nix). If you
+For reference here are the links to my [guix configurationhere](https://g.freya.cat/freya/dotfiles-guix)
+and my [nix configuration](https://g.freya.cat/freya/dotfiles-nix). If you
are trying to learn or switch to either system, you can use them as a good
resource. You can also view the guix repository I created called [sakura](https://g.freya.cat/freya/sakura)
when I had to package things. If you need a recommendation to use either GUIX
diff --git a/src/assets/blog/2025-03-11.md b/src/assets/blog/2025-03-11.md
index 39f554d..412314f 100644
--- a/src/assets/blog/2025-03-11.md
+++ b/src/assets/blog/2025-03-11.md
@@ -72,7 +72,7 @@ In an itemized list this guide will:
Flauncher is a launcher (default user interface) for Google TVs. It is simple
and just shows the installed apps on the tv, no ads, nothing else. I am using a
fork of flauncher that includes some fixes and improvements, but you can also
-just use the original [here](https://gitlab.com/flauncher/flauncher).
+[just use the original](https://gitlab.com/flauncher/flauncher).
2. Removing all preinstalled applications
@@ -191,7 +191,7 @@ adb shell pm enable --user 0 com.mediatek.wwtv.tvcenter
```
If that doesnt work try looking at the path `/system_ext/priv-app/LiveTV` as
-that is where I found the apk. I also have a mirror for it [here](/public/blog/LiveTV.apk).
+that is where I found the apk. [I also have a mirror for it](/public/blog/LiveTV.apk).
#### 2. Removing preloaded applications
diff --git a/src/web/_model/blog.php b/src/web/_model/blog.php
index 6446564..cabbc9f 100644
--- a/src/web/_model/blog.php
+++ b/src/web/_model/blog.php
@@ -42,7 +42,7 @@ class Blog_model extends Model {
$base = $this->get_url('');
$replace = "<a href=\"{$base}\\1\">";
- $replace .= ie('<center>') . "<img class=\"center\" src=\"{$base}\\1\" title=\"\\2\" alt=\"\\2\">" . ie('</center>');
+ $replace .= ie('<center>') . "<img class=\"center\" src=\"{$base}\\1\" alt=\"\\2\">" . ie('</center>');
$replace .= "</a>";
$md = preg_replace($pattern, $replace, $md);
diff --git a/src/web/_views/footer.php b/src/web/_views/footer.php
index 067bb2a..e73fbf6 100644
--- a/src/web/_views/footer.php
+++ b/src/web/_views/footer.php
@@ -23,10 +23,10 @@
<?=image('buttons/vim', 'alt_button_vim', animated: TRUE, width: '88', height: '30')?>
<?=image('buttons/gnu-linux', 'alt_button_gnu_linux', width: '88', height: '30')?>
<a href="https://www.eff.org/join">
- <?=image('buttons/eff', 'alt_button_eff', width: '96', height: '30')?>
+ <?=image('buttons/eff', 'alt_button_eff', 'title_button_eff', width: '96', height: '30')?>
</a>
<a href="https://citrons.xyz/a/memetic-apioform-page.html">
- <?=image('buttons/apiopage', 'alt_button_apiopage', width: '81', height: '30')?>
+ <?=image('buttons/apiopage', 'alt_button_apiopage', 'title_button_apiopage', width: '81', height: '30')?>
</a>
</div>
<br>
diff --git a/src/web/_views/header.php b/src/web/_views/header.php
index f6b4740..5eb528a 100644
--- a/src/web/_views/header.php
+++ b/src/web/_views/header.php
@@ -7,7 +7,7 @@
<?=ie('<center>')?>
<div class="center">
<div id="header" role="banner" aria-label="banner">
- <?=image('img/headerLogo', 'alt_website_logo', size: '200')?>
+ <?=image('img/headerLogo', 'alt_website_logo', 'title_website_logo', size: '200')?>
<div class="content">
<h1 class="logo-text">
<?=lang('first_name')?>
diff --git a/src/web/lang/common.php b/src/web/lang/common.php
index aef1ede..4116465 100644
--- a/src/web/lang/common.php
+++ b/src/web/lang/common.php
@@ -22,10 +22,15 @@ $lang['action_blog_tip'] = 'View my blog';
$lang['alt_button_eyes'] = 'Best viewed with eyes';
$lang['alt_button_vim'] = 'Edited with VIM';
$lang['alt_button_gnu_linux'] = 'Made with GNU/Linux';
-$lang['alt_button_eff'] = 'Support the Electronic Frontier Foundation!';
+$lang['alt_button_eff'] = 'Electronic Frontier Foundation logo';
$lang['alt_button_apiopage'] = 'Memetic apiopage';
$lang['alt_website_logo'] = 'Website Logo';
+# common title text
+$lang['title_button_eff'] = 'Support the Electronic Frontier Foundation!';
+$lang['title_button_apiopage'] = 'Click for more memetic apiopage\'s';
+$lang['title_website_logo'] = 'Freya';
+
# misc
$lang['john_title'] = 'Johnvertisement';
$lang['bucket_title'] = 'Bucket Webring';
diff --git a/src/web/lib/image.php b/src/web/lib/image.php
index 7b6ec0e..a36b985 100644
--- a/src/web/lib/image.php
+++ b/src/web/lib/image.php
@@ -41,6 +41,7 @@ function __make_source(
function image(
$name,
$alt,
+ $title = NULL,
$formats = array('webp', 'png'),
$animated = FALSE,
$attrs = array(),
@@ -75,7 +76,10 @@ function image(
if ($alt) {
$alt = lang($alt);
$attrs['alt'] = $alt;
- $attrs['title'] = $alt;
+ }
+ if ($title) {
+ $title = lang($title);
+ $attrs['title'] = $title;
}
if ($width) {
$attrs['width'] = $width;