Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
402
Merge Requests
63
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
174bc89c
Commit
174bc89c
authored
4 hours ago
by
Mark Harding
Browse files
Options
Download
(fix): homepage SEO and default image
parent
14293472
No related merge requests found
Pipeline
#116525274
canceled with stages
in 22 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/app/common/services/meta.service.ts
View file @
174bc89c
...
...
@@ -118,7 +118,10 @@ export class MetaService {
.
setDescription
(
data
.
description
||
DEFAULT_META_DESCRIPTION
)
.
setOgType
(
'
website
'
)
.
setOgUrl
(
data
.
ogUrl
||
this
.
location
.
path
())
.
setOgImage
(
data
.
ogImage
||
null
,
{
width
:
0
,
height
:
0
})
.
setOgImage
(
data
.
ogImage
||
'
/assets/logos/placeholder.jpg
'
,
{
width
:
765
,
height
:
458
,
})
.
setRobots
(
data
.
robots
||
'
all
'
);
}
...
...
This diff is collapsed.
src/app/modules/homepage-v2/homepage-v2.component.ts
View file @
174bc89c
...
...
@@ -8,6 +8,7 @@ import { RegisterForm } from '../forms/register/register';
import
{
FeaturesService
}
from
'
../../services/features.service
'
;
import
{
ConfigsService
}
from
'
../../common/services/configs.service
'
;
import
{
OnboardingV2Service
}
from
'
../onboarding-v2/service/onboarding.service
'
;
import
{
MetaService
}
from
'
../../common/services/meta.service
'
;
@
Component
({
selector
:
'
m-homepage__v2
'
,
...
...
@@ -27,7 +28,8 @@ export class HomepageV2Component {
private
loginReferrer
:
LoginReferrerService
,
private
featuresService
:
FeaturesService
,
configs
:
ConfigsService
,
private
onboardingService
:
OnboardingV2Service
private
onboardingService
:
OnboardingV2Service
,
private
metaService
:
MetaService
)
{
this
.
cdnAssetsUrl
=
configs
.
get
(
'
cdn_assets_url
'
);
this
.
siteUrl
=
configs
.
get
(
'
site_url
'
);
...
...
@@ -38,6 +40,10 @@ export class HomepageV2Component {
this
.
router
.
navigate
([
'
/newsfeed
'
]);
return
;
}
this
.
metaService
.
setTitle
(
'
Minds
'
,
false
).
setOgUrl
(
this
.
siteUrl
)
.
setDescription
(
`Take back control of your social media
A place to have open conversations and bring people together.`
);
}
registered
()
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment