Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
funkwhale.audio
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
funkwhale.audio
Commits
e3420ea2
Verified
Commit
e3420ea2
authored
3 years ago
by
Georg Krause
Browse files
Options
Downloads
Patches
Plain Diff
Remove vue-head and use static metadata and dynamic title
parent
c350c8e4
No related branches found
No related tags found
1 merge request
!34
Vue3 transition
Pipeline
#15472
passed with stages
in 2 minutes and 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/index.html
+3
-1
3 additions, 1 deletion
public/index.html
src/PageMixin.vue
+1
-47
1 addition, 47 deletions
src/PageMixin.vue
src/main.js
+1
-6
1 addition, 6 deletions
src/main.js
with
5 additions
and
54 deletions
public/index.html
+
3
−
1
View file @
e3420ea2
...
...
@@ -5,13 +5,15 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.png"
>
<title>
Funkwhale -
Your free and decentralized audio platform
</title>
<title>
Your free and decentralized audio platform
- Funkwhale
</title>
<meta
name=
"twitter:card"
content=
"summary"
/>
<meta
name=
"description"
content=
"A social platform to enjoy and share music"
>
<meta
property=
"og:type"
content=
"website"
/>
<meta
property=
"og:site_name"
content=
"Funkwhale.audio"
/>
<meta
property=
"og:title"
content=
"Funkwhale - Your free and decentralized audio platform"
/>
<meta
property=
"og:description"
content=
"A social platform to enjoy and share music"
/>
<meta
property=
"og:image"
content=
"<%= BASE_URL %>favicon.png"
/>
<link
rel=
"alternate"
type=
"application/atom+xml"
title=
"Blog - Atom Feed"
href=
"https://blog.funkwhale.audio/~/Announcements/atom.xml"
>
</head>
<body>
<noscript>
...
...
This diff is collapsed.
Click to expand it.
src/PageMixin.vue
+
1
−
47
View file @
e3420ea2
...
...
@@ -5,55 +5,9 @@ export default {
props
:
[
"
locale
"
],
created
()
{
this
.
autodetectLanguage
();
document
.
title
=
this
.
getInnerTitle
()
+
"
- Funkwhale
"
;
},
head
:
{
title
()
{
return
{
inner
:
this
.
getInnerTitle
()
};
},
meta
:
function
()
{
return
[
{
name
:
"
description
"
,
content
:
this
.
$pgettext
(
"
Content/Home/Header
"
,
"
A social platform to enjoy and share music
"
)
},
{
"
http-equiv
"
:
"
content-language
"
,
content
:
this
.
$language
.
current
.
replace
(
"
_
"
,
"
-
"
)
}
];
},
link
:
function
()
{
let
self
=
this
;
let
links
=
locales
.
locales
.
map
(
l
=>
{
let
params
=
{
...
self
.
$route
.
params
,
locale
:
l
.
code
};
let
resolved
=
self
.
$router
.
resolve
({
name
:
self
.
$route
.
name
,
params
});
return
{
rel
:
"
alternate
"
,
hreflang
:
l
.
code
.
replace
(
"
_
"
,
"
-
"
),
href
:
`
${
resolved
.
href
}
`
};
});
links
.
push
({
rel
:
"
alternate
"
,
type
:
"
application/atom+xml
"
,
title
:
"
Blog - Atom Feed
"
,
href
:
"
https://blog.funkwhale.audio/~/Announcements/atom.xml
"
});
return
links
;
}
},
methods
:
{
getInnerTitle
()
{
return
this
.
$pgettext
(
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
1
−
6
View file @
e3420ea2
import
{
createApp
}
from
"
vue
"
;
import
App
from
"
./App.vue
"
;
import
VueHead
from
"
vue-head
"
;
import
router
from
"
./router
"
;
import
locales
from
"
@/locales
"
;
import
{
createGettext
}
from
"
@jshmrtn/vue3-gettext
"
;
...
...
@@ -27,10 +26,6 @@ const gettext = createGettext({
const
mainApp
=
createApp
(
App
)
.
use
(
router
)
.
use
(
gettext
)
.
use
(
VueHead
,
{
separator
:
"
-
"
,
complement
:
"
Funkwhale
"
});
.
use
(
gettext
);
mainApp
.
mount
(
"
#app
"
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment