🎨 feat(seo): update SEO metadata for project support and profile pages

 feat(seo): set site name, favicon, and fallback descriptions in SEO config

🛠️ fix(election): correct indentation and formatting in election view files
This commit is contained in:
fsociety
2024-10-25 12:10:49 +02:00
parent 1e6a419433
commit 89e50269c5
4 changed files with 21 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ return [
/**
* Use this setting to specify the site name that will be used in OpenGraph tags.
*/
'site_name' => null,
'site_name' => 'Einundzwanzig Verein',
/**
* Use this setting to specify the path to the sitemap of your website. This exact path will outputted, so
@@ -59,7 +59,7 @@ return [
*
* You can use the following filetypes: ico, png, gif, jpeg, svg.
*/
'favicon' => null,
'favicon' => 'favicon.ico',
'title' => [
/**
@@ -75,7 +75,7 @@ return [
* Use this setting to provide a suffix that will be added after the title on each page.
* If you don't want a suffix, you should specify an empty string.
*/
'suffix' => '',
'suffix' => ' - Einundzwanzig Verein',
/**
* Use this setting to provide a custom title for the homepage. We will not use the suffix on the homepage,
@@ -91,7 +91,7 @@ return [
* where we don't have a description set via an associated ->seo model or via
* the ->getDynamicSEOData() method.
*/
'fallback' => null,
'fallback' => 'Toximalistisches Infotainment für bullishe Bitcoiner.',
],
'image' => [
@@ -101,7 +101,7 @@ return [
* This should be a path to an image. The url to the path is generated using the `secure_url()` function
* (`secure_url($yourProvidedPath)`), so make sure the image is accessible from the public folder.
*/
'fallback' => null,
'fallback' => 'einundzwanzig-alpha.jpg',
],
'author' => [
@@ -117,6 +117,6 @@ return [
* Use this setting to enter your username and include that with the Twitter Card tags.
* Enter the username like 'yourUserName', so without the '@'.
*/
'@username' => null,
'@username' => '_einundzwanzig_',
],
];

View File

@@ -30,7 +30,7 @@ state([
'plebs' => [],
'search' => '',
'signThisEvent' => '',
'isNotClosed' => true
'isNotClosed' => true,
]);
mount(function () {
@@ -86,7 +86,7 @@ updated([
->orderBy('association_status', 'desc')
->get()
->toArray();
}
},
]);
$loadEvents = function () {
@@ -158,7 +158,9 @@ $signEvent = function ($event) {
?>
<x-layouts.app title="{{ __('Wahl') }}">
<x-layouts.app
:seo="new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Wahlen ' . $election->year, description: 'Wahlen des Vereins im Jahr ' . $election->year)"
>
@volt
<div x-cloak x-if="isAllowed" class="relative flex h-full" x-data="nostrApp(@this)"
wire:poll.600000ms="checkElection">

View File

@@ -211,7 +211,9 @@ $loadEvents = function () {
?>
<x-layouts.app title="{{ __('Wahl') }}">
<x-layouts.app
:seo="new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Mitgliedschaft', description: 'Einundzwanzig ist, was du draus machst.')"
>
@volt
<div class="px-4 sm:px-6 lg:px-8 py-8 w-full max-w-9xl mx-auto">

View File

@@ -69,7 +69,9 @@ $delete = function ($id) {
?>
<x-layouts.app title="Projekt Unterstützungen">
<x-layouts.app
:seo="new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Projekt Unterstützungen', description: 'Einundzwanzig Projektunterstützungen')"
>
@volt
<div class="px-4 sm:px-6 lg:px-8 py-8 w-full max-w-9xl mx-auto" x-data="nostrDefault(@this)" x-cloak
x-if="isAllowed">