Coder Social home page Coder Social logo

Comments (4)

timvink avatar timvink commented on May 24, 2024

Hi @leeyspaul ,

The layout is part of the theme you are using. The easiest way to customize the theme you are using is by using a theme override. I described how to do this for the mkdocs base theme and for mkdocs-material theme here: https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/howto/override-a-theme/

Because mkdocs-material offers native support for this plugins, you'll have two edit two partials: source-date.html to remove the revision date from the current position, and another partial to insert the revision date where you would like to have it.

Let me know if the plugin docs can be important / if anything is unclear.

from mkdocs-git-revision-date-localized-plugin.

leeyspaul avatar leeyspaul commented on May 24, 2024

ok, thanks for the quick response! I'll take a look and come back around if I can't figure it out

from mkdocs-git-revision-date-localized-plugin.

leeyspaul avatar leeyspaul commented on May 24, 2024

Hey @timvink I took a look and I got blocked on trying to get the date to show under an h1 tag. Right now base.html https://github.com/squidfunk/mkdocs-material/blob/05d3c1399f53b7e5d98c8231c98ff63ff0bf5987/material/base.html renders the {{ page.content }} and I'm not sure how to access the h1 to inject the date here. I think I'm overcomplicating things as I'm not too familiar with the way jinja works.

Do I have to modify the Python pages code to do this? https://github.com/mkdocs/mkdocs/blob/master/mkdocs/structure/pages.py

from mkdocs-git-revision-date-localized-plugin.

timvink avatar timvink commented on May 24, 2024

Changing the layout of a theme is outside the scope of this plugin, so I'm closing the issue.

That said, a quick look and probably you can edit the page title with this block here:

https://github.com/squidfunk/mkdocs-material/blob/05d3c1399f53b7e5d98c8231c98ff63ff0bf5987/material/base.html#L163-L165

from mkdocs-git-revision-date-localized-plugin.

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.