change page title from Mobilizon to niederlausitz.vonunten.org
This commit is contained in:
parent
320804f982
commit
e6560f4dd0
|
@ -70,7 +70,7 @@ import { Route } from "vue-router";
|
||||||
},
|
},
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -174,7 +174,7 @@ import RouteName from "@/router/name";
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
title: this.$t("Error") as string,
|
title: this.$t("Error") as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -109,7 +109,7 @@ import RouteName from "../../router/name";
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$t("My groups") as string,
|
title: this.$t("My groups") as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -215,7 +215,7 @@ export type ActivityFilter = ActivityType | ActivityAuthorFilter | null;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
group: this.group?.name,
|
group: this.group?.name,
|
||||||
}) as string,
|
}) as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -357,7 +357,7 @@ const EVENT_PAGE_LIMIT = 99;
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
title: this.instanceName,
|
title: this.instanceName,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -323,7 +323,7 @@ import { ApolloCache, FetchResult } from "@apollo/client/core";
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$t("Report") as string,
|
title: this.$t("Report") as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -189,7 +189,7 @@ import PostMixin from "../../mixins/post";
|
||||||
? (this.$t("Edit post") as string)
|
? (this.$t("Edit post") as string)
|
||||||
: (this.$t("Add a new post") as string),
|
: (this.$t("Add a new post") as string),
|
||||||
// all titles will be injected into this template
|
// all titles will be injected into this template
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -284,7 +284,9 @@ import PostMixin from "../../mixins/post";
|
||||||
// all titles will be injected into this template
|
// all titles will be injected into this template
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
titleTemplate: this.post ? "%s | Mobilizon" : "Mobilizon",
|
titleTemplate: this.post
|
||||||
|
? "%s | niederlausitz.vonunten.org"
|
||||||
|
: "niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -312,7 +312,7 @@ const GEOHASH_DEPTH = 9; // put enough accuracy, radius will be used anyway
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$t("Explore events") as string,
|
title: this.$t("Explore events") as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -167,7 +167,7 @@ import AuthProviders from "../../components/User/AuthProviders.vue";
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$t("Login on Mobilizon!") as string,
|
title: this.$t("Login on Mobilizon!") as string,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
meta: [{ name: "robots", content: "noindex" }],
|
meta: [{ name: "robots", content: "noindex" }],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
@ -212,7 +212,7 @@ type credentials = { email: string; password: string; locale: string };
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
title: this.title,
|
title: this.title,
|
||||||
titleTemplate: "%s | Mobilizon",
|
titleTemplate: "%s | niederlausitz.vonunten.org",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
|
|
|
@ -15,7 +15,7 @@ defimpl Mobilizon.Service.Metadata, for: Mobilizon.Events.Event do
|
||||||
formatted_description = description(event, locale)
|
formatted_description = description(event, locale)
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
Tag.content_tag(:title, event.title <> " - Mobilizon"),
|
Tag.content_tag(:title, event.title <> " - niederlausitz.vonunten.org"),
|
||||||
Tag.tag(:meta, name: "description", content: process_description(event.description, locale)),
|
Tag.tag(:meta, name: "description", content: process_description(event.description, locale)),
|
||||||
Tag.tag(:meta, property: "og:title", content: event.title),
|
Tag.tag(:meta, property: "og:title", content: event.title),
|
||||||
Tag.tag(:meta, property: "og:url", content: event.url),
|
Tag.tag(:meta, property: "og:url", content: event.url),
|
||||||
|
|
|
@ -51,7 +51,7 @@ defmodule Mobilizon.Service.MetadataTest do
|
||||||
|
|
||||||
tags_output = event |> Metadata.build_tags() |> Metadata.Utils.stringify_tags()
|
tags_output = event |> Metadata.build_tags() |> Metadata.Utils.stringify_tags()
|
||||||
{:ok, document} = Floki.parse_fragment(tags_output)
|
{:ok, document} = Floki.parse_fragment(tags_output)
|
||||||
assert "#{event.title} - Mobilizon" == document |> Floki.find("title") |> Floki.text()
|
assert "#{event.title} - niederlausitz.vonunten.org" == document |> Floki.find("title") |> Floki.text()
|
||||||
|
|
||||||
assert @truncated_description ==
|
assert @truncated_description ==
|
||||||
document
|
document
|
||||||
|
|
Loading…
Reference in a new issue