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
410
Merge Requests
65
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
382066b7
Commit
382066b7
authored
29 minutes ago
by
Mark Harding
Browse files
Options
Download
(chore): use full title for og:title
parent
7863956e
master
No related merge requests found
Pipeline
#119525812
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/app/common/services/meta.service.ts
View file @
382066b7
...
...
@@ -14,6 +14,7 @@ export class MetaService {
private
counter
:
number
;
private
sep
=
'
|
'
;
private
title
:
string
=
''
;
private
ogTitle
:
string
=
''
;
constructor
(
private
titleService
:
Title
,
...
...
@@ -34,6 +35,9 @@ export class MetaService {
value
=
this
.
stripHtml
(
value
);
// Full title for og:title
this
.
ogTitle
=
value
||
defaultTitle
;
if
(
value
.
length
>
60
)
{
value
=
value
.
substr
(
0
,
57
)
+
'
...
'
;
}
...
...
@@ -186,7 +190,7 @@ export class MetaService {
}
this
.
metaService
.
updateTag
({
name
:
'
og:title
'
,
content
:
this
.
t
itle
,
content
:
this
.
ogT
itle
,
});
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment