I would like to get the site creation datetime in the footer of my pkgdown output. As an example, I have hard-coded this to show what I hope to have done automatically:
This hard-coded example was done with this _pkgdown.yml:
> url: ~
> template:
> bootstrap: 5
> theme: breeze-light
> # path: "inst/pkgdown"
> footer:
> structure:
> left: developed_by
> right: [built_with, built_date]
> components:
> built_date: "<br>Created: 2023-09-10 12:35 UTC"
I have not found anything already available, such as developed_by and built_with, that I can use.
I see that docs/pkgdown.yml contains last_built; is there some way I can use that?:
pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
ericstrava: ericstrava.html
last_built: 2023-09-10T17:08Z
I had some success making use of javascript in a custom inst/pkgdown/footer.html , but it is additional complexity I would like to avoid. And I was only having success when using build_home(); I was getting errors with build_site().
Any guidance would be appreciated.