hexo-theme-laughing icon indicating copy to clipboard operation
hexo-theme-laughing copied to clipboard

Can not view open_graph on twitter

Open 82p opened this issue 7 years ago • 0 comments

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)

82p avatar Feb 16 '18 05:02 82p