hexo-theme-laughing
hexo-theme-laughing copied to clipboard
Can not view open_graph on twitter
Hi I use this theme in my blog.
This theme can not display open_gragh. Finally I found open_graph of twitter needs description meta data. I tried fix this issue, but It's just rush job.
- var title = page.title ? page.title + ' - ' + config.title : config.title + (config.subtitle ? (' - ' + config.subtitle) : '')
if path === "index.html"
//- open_graph command not work well in index.html and I add params
| !{open_graph({twitter_id:twitter_id,image:theme.page_background,description:title})}
meta(name="description",content=title)
else
| !{open_graph({twitter_id:twitter_id})}
meta(name="description",content=config.description)