Code Monkey home page Code Monkey logo

Comments (6)

walkingice avatar walkingice commented on August 25, 2024 2

I am wondering how to set og:image for root index page?

from hexo-theme-icarus.

ppoffice avatar ppoffice commented on August 25, 2024 1

@sudoliyang Thanks for the notice.

from hexo-theme-icarus.

ppoffice avatar ppoffice commented on August 25, 2024

https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/_partial/head.ejs#L23

from hexo-theme-icarus.

MisterJames avatar MisterJames commented on August 25, 2024

@ppoffice Unfortunately that seems to add the same OG tags to all posts.

I would like to specify the image for a particular post so that when it's featured on Twitter/Facebook/etc. that the image I choose from that post is the one that appears. Is this possible?

from hexo-theme-icarus.

ppoffice avatar ppoffice commented on August 25, 2024

@MisterJames

Now every page has a different og:image thanks to the v0.2.0 release. This is assigned by the post's/page's thumbnail front-matter.

https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/head.ejs#L24

https://github.com/ppoffice/hexo-theme-icarus/wiki/Theme#how-to-add-a-thumbnail-to-a-post

from hexo-theme-icarus.

sudoliyang avatar sudoliyang commented on August 25, 2024

@MisterJames

Now every page has a different og:image thanks to the v0.2.0 release. This is assigned by the post's/page's thumbnail front-matter.

https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/head.ejs#L24

https://github.com/ppoffice/hexo-theme-icarus/wiki/Theme#how-to-add-a-thumbnail-to-a-post

Hi, @ppoffice
It seems not supported after 2.4.0, will this feature come back?

b60e516#diff-5b14989530ad95f8f7a14c4957e94ac7L24

Thank you.

from hexo-theme-icarus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.