Update server configuration and translations for improved deployment and user experience
- Enhanced server startup message to include dynamic protocol and domain based on the environment (production or development). - Updated translation references from GitHub to Gitea across multiple languages for consistency. - Refactored layout and metadata in Astro components to utilize SITE configuration for URLs, ensuring accurate site links. - Cleaned up unused code in the layout file and removed commented-out sections for better readability.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import '~/assets/styles/tailwind.css';
|
||||
|
||||
import { I18N } from 'astrowind:config';
|
||||
import { I18N, SITE } from 'astrowind:config';
|
||||
|
||||
import CommonMeta from '~/components/common/CommonMeta.astro';
|
||||
import Favicons from '~/components/Favicons.astro';
|
||||
@@ -52,10 +52,10 @@ const { language, textDirection } = I18N;
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
name: '365DevNet',
|
||||
url: Astro.url.origin,
|
||||
url: SITE.site,
|
||||
potentialAction: {
|
||||
'@type': 'SearchAction',
|
||||
target: `${Astro.url.origin}/search?q={search_term_string}`,
|
||||
target: `${SITE.site}/search?q={search_term_string}`,
|
||||
'query-input': 'required name=search_term_string',
|
||||
},
|
||||
}}
|
||||
@@ -84,8 +84,8 @@ const { language, textDirection } = I18N;
|
||||
<LanguagePersistence />
|
||||
<CookieBanner />
|
||||
<BackToTop />
|
||||
<!-- Start of Rocket.Chat Livechat Script -->
|
||||
<!--
|
||||
|
||||
|
||||
<script type="text/javascript" defer>
|
||||
(function(w, d, s, u) {
|
||||
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
|
||||
@@ -94,8 +94,7 @@ const { language, textDirection } = I18N;
|
||||
h.parentNode.insertBefore(j, h);
|
||||
})(window, document, 'script', 'https://chat.365devnet.eu/livechat');
|
||||
</script>
|
||||
-->
|
||||
<!-- End of Rocket.Chat Livechat Script -->
|
||||
|
||||
<ImageModal />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user