Blot

Latest update date

Hello, is it possible to have a message on the homepage saying something like "Latest update on: " and have the date of the latest blog entry displayed there? Thanks!

Asked 5 years ago Edit
1 replies

Yes, but you'll need to add some code to your template, and edit the source file for your homepage. Add the following to your template's entry.html file, inside the {{#entry}} block:

{{#entry.page}}
{{#entry.metadata.homepage}}
Last updated: {{#recentEntries}}{{#first}}{{date}}{{/first}}{{/recentEntries}}
{{/entry.metadata.homepage}}
{{/entry.page}}

Then you'll want to add the following custom metadata to your homepage:

Homepage: yes

Does that make sense? Please let me know if you have any questions about any of this

4 years ago Edit

Your reply