Your own footer
The plugin places its link by overriding Starlight’s LastUpdated component: Starlight’s own date, then the link.
If your site already overrides LastUpdated, the plugin leaves your component alone and logs a warning. Add the link where you want it:
---import Default from '@astrojs/starlight/components/LastUpdated.astro';import HistoryLink from 'starlight-page-history/components/HistoryLink.astro';---
<Default /><HistoryLink />HistoryLink renders nothing on a page without history.
Changing the words
Section titled “Changing the words”Every string is a Starlight translation key, so you can change it in src/content/i18n/<lang>.json:
{ "pageHistory.link": "See what changed"}| Key | English |
|---|---|
pageHistory.link |
Page history |
pageHistory.title |
History: {{title}} |
pageHistory.description |
Every version of this page and what changed in each. |
pageHistory.versions_one / _other |
{{count}} versions, since {{date}} |
pageHistory.showChanges |
Changes |
pageHistory.created |
First version of the page. |
pageHistory.noChange |
The text did not change. |
pageHistory.unchanged_one / _other |
{{count}} unchanged paragraphs |
pageHistory.added_one / _other |
{{count}} paragraphs added |
pageHistory.changed_one / _other |
{{count}} paragraphs changed |
pageHistory.removed_one / _other |
{{count}} paragraphs removed |
pageHistory.older_one / _other |
{{count}} older versions are not shown. |
pageHistory.compare |
Compare versions |
pageHistory.compareFrom |
From |
pageHistory.compareTo |
To |
pageHistory.compareButton |
Compare |
pageHistory.compareLatest |
Compare with the latest |
pageHistory.compareSame |
Choose two different versions. |
pageHistory.compareLoading |
Loading the versions… |
pageHistory.compareError |
The versions could not be loaded. |