image embed with og protocol updated
This commit is contained in:
parent
45d1abccfe
commit
36c8713f46
@ -101,5 +101,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ import {Button} from 'primeng/button';
|
||||
import {DialogModule} from 'primeng/dialog';
|
||||
import {AuthService} from '../../auth.service';
|
||||
import {Role} from '../../models/role';
|
||||
import {Meta} from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-post',
|
||||
@ -46,7 +47,7 @@ export class PostComponent {
|
||||
private postService: PostService,
|
||||
private commentService: CommentService,
|
||||
private messageService: MessageService,
|
||||
private authService: AuthService,) {
|
||||
private authService: AuthService) {
|
||||
this.route.paramMap.subscribe(params => {
|
||||
if (!(this.authService.isSessionExpired()) && this.authService.isAuthenticated()) {
|
||||
const authenticatedAuthor = this.authService.getAuthenticatedAuthor();
|
||||
@ -81,6 +82,14 @@ export class PostComponent {
|
||||
});
|
||||
}
|
||||
|
||||
cutDesc(desc: string): string {
|
||||
let output: string = '';
|
||||
for (let i = 0; i < 256; i++) {
|
||||
output += desc[i];
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
addNewCommentToList(comment: Comment) {
|
||||
this.comments.push(comment);
|
||||
console.log(this.comments)
|
||||
|
@ -5,6 +5,9 @@
|
||||
<meta charset="utf-8">
|
||||
<title>A BON ENTENDEUR</title>
|
||||
<base href="/">
|
||||
<meta property="og:title" content="À bon entendeur">
|
||||
<meta property="og:description" content="Un blog où je partage mon avis sur différentes oeuvres...">
|
||||
<meta property="og:image" content="https://abonentendeur.guams.fr/assets/icon.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="icon.png">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
||||
|
Loading…
Reference in New Issue
Block a user