Comments (4)
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.
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.
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.
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:
from mkdocs-git-revision-date-localized-plugin.
Related Issues (20)
- Edited and Created time become same when publishing with github pages HOT 7
- ``InvalidGitRepositoryError`` during build when including auto-generated files HOT 8
- Unable to set any configurations HOT 12
- Typo in variable names HOT 2
- The plugin breaks with the last mkdocs docker image HOT 3
- The plugin breaks with squidfunk/mkdocs-material:9.0.3 HOT 1
- Is there a way to turn off warnings? HOT 4
- Improve error message for dubious git ownership HOT 2
- if a file has no git logs, use the last modified timestamp instead of the current HOT 4
- which themes will this plugin work?
- Feature request: exclude specific commits when calculating the 'last update' calculation HOT 3
- Poor performance on large monorepos HOT 3
- Timeago setting results in incorrect items being added to extra_javascript HOT 2
- Create date not correct on Github pages HOT 4
- Document how to use sparse checkouts
- correctly populate `lastmod` of `sitemap.xml` HOT 2
- DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version HOT 1
- Cloudflare Pages fetch-depth HOT 6
- 1.2.3 breaks integration with Material for MkDocs HOT 5
- Whitelist / Negate certain excludes with a `!`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-git-revision-date-localized-plugin.