Commit a223b7af authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

forgot to remove old methods...>_<

parent da6c4b35
......@@ -39,10 +39,9 @@ export class SeoSErvice {
description = post.content.excerpt;
if (description.length > 140 ) {
description = `${description.substr(0,description.substr(0,136).lastIndexOf(' '))}...`;
console.log('ici.');
}
}
var description: string = post.content.meta_description ?
post.content.meta_description : `${post.content.excerpt.slice(0,136)}...`;
const meta = [
{ name: 'description', content: description },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment