tylerbenson / vyllage

https://www.vyllage.com
4 stars 0 forks source link

Thymeleaf header, footer fragments #1002

Closed UnspeakableHorror closed 9 years ago

UnspeakableHorror commented 9 years ago

Closes https://github.com/natebenson/vyllage/issues/878.

Added header and footer fragments for all pages.

To insert it, write:

<th:block th:replace="fragment-header :: header ('Vyllage | Resume')">
</th:block>

Notice the parameters in header ('Vyllage | Resume') that's the title, they must always be present, if a page has no title then it can be set empty like this header ('').