From 45edf0c21afd54ecbce5aa6dc45fe28fd25a8bd3 Mon Sep 17 00:00:00 2001 From: trendschau Date: Wed, 7 May 2025 22:54:17 +0200 Subject: [PATCH] Fix external link for homepage in publisher --- content/index.md | 4 +++- system/typemill/author/js/vue-publisher.js | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/content/index.md b/content/index.md index 76e13f0..67bd7e1 100644 --- a/content/index.md +++ b/content/index.md @@ -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)! + diff --git a/system/typemill/author/js/vue-publisher.js b/system/typemill/author/js/vue-publisher.js index f4353d5..789524f 100644 --- a/system/typemill/author/js/vue-publisher.js +++ b/system/typemill/author/js/vue-publisher.js @@ -81,7 +81,7 @@ const publisher = Vue.createApp({ @@ -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()