1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-01 11:50:28 +02:00

Fix external link for homepage in publisher

This commit is contained in:
trendschau
2025-05-07 22:54:17 +02:00
parent 99d7bdde0f
commit 45edf0c21a
2 changed files with 15 additions and 2 deletions

View File

@@ -2,7 +2,9 @@
Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown. Create handbooks, documentation, manuals, reports, traditional websites, online novels, and more.
Stay in the loop and subscribe to the [Typemill newsletter](https://typemill.net/news)!
Log in to the author area at [/tm/login](/tm/login).
![](media/live/chatgpt-typemill-dummy-wide.webp){.center loading="lazy" width="820" height="470"}
Stay in the loop and subscribe to the [Typemill newsletter](https://typemill.net/news)!

View File

@@ -81,7 +81,7 @@ const publisher = Vue.createApp({
<span class="hidden lg:block">{{ $filters.translate('visual') }}</span>
</a>
<a
:href="item.urlAbs"
:href="absoluteUrl"
target="_blank"
class="lg:px-4 px-2 py-2 border border-stone-200 bg-stone-50 hover:bg-stone-700 hover:text-white transition ml-1"
>
@@ -247,6 +247,17 @@ const publisher = Vue.createApp({
{
return data.urlinfo.baseurl + '/tm/content/visual' + this.item.urlRelWoF;
},
absoluteUrl()
{
if(this.item.urlAbs)
{
return this.item.urlAbs;
}
else
{
return data.urlinfo.baseurl;
}
}
},
methods: {
clearPublisher()