Giter Site home page Giter Site logo

Add page titles about kodi-tv HOT 5 CLOSED

razzeee avatar razzeee commented on July 17, 2024
Add page titles

from kodi-tv.

Comments (5)

pkscout avatar pkscout commented on July 17, 2024

Found this: https://www.gatsbyjs.com/docs/add-page-metadata/

That will work for all the dynamically generated pages. I'll have to see about what to do about the markdown files. Hopefully we won't have to add that to every page though. I'm mostly just putting this comment here to document what I've found so far (in case I close the tab with that page in it by accident).

from kodi-tv.

razzeee avatar razzeee commented on July 17, 2024

Yeah, I found that page too and was quiet confused what to do with the mdx pages :D

from kodi-tv.

pkscout avatar pkscout commented on July 17, 2024

Done with 9899d97. I wrote a little component that adds to the metadata header using Helmet and accepts "title" as a passed property. So that each page can have it's own title, the template built pages have that component added to the template with the dynamic information needed for each page to get a unique title. For the mdx pages, I imported the component and passed a page title in. The behavior mirrors the current site, so the main site has a title, and other pages prepend to that (so Kodi | Opensource Home Theather Software is the main title, and the about page is About Us | Kodi | Opensource Home Theather Software).

from kodi-tv.

pkscout avatar pkscout commented on July 17, 2024

BTW, we can add other stuff to that metadata for SEO and whatever else. If it's for every page, we can just add it to the component. If it's page specific, we can pass it in as a properly and then adjust the component as needed.

from kodi-tv.

razzeee avatar razzeee commented on July 17, 2024

Neat

from kodi-tv.

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.