Change gallery to photo.

pull/146/head
ruibaby 2019-05-08 23:08:03 +08:00
parent 0c66aed1d4
commit 6cd6bbf94d
2 changed files with 10 additions and 10 deletions

View File

@ -36,9 +36,9 @@ public class ContentSheetController {
* *
* @return template path: themes/{theme}/gallery.ftl * @return template path: themes/{theme}/gallery.ftl
*/ */
@GetMapping(value = "/gallery") @GetMapping(value = "/photos")
public String gallery() { public String photos() {
return themeService.render("gallery"); return themeService.render("photos");
} }
/** /**

View File

@ -23,17 +23,17 @@
</ul> </ul>
</header> </header>
<section id="thumbnails"> <section id="thumbnails">
<@galleryTag method="list"> <@photoTag method="list">
<#if galleries?size gt 0> <#if photos?size gt 0>
<#list galleries as gallery> <#list photos as photo>
<article> <article>
<a class="thumbnail" href="${gallery.url}" data-position="left center"><img src="${gallery.thumbnail}" alt="${gallery.description}" /></a> <a class="thumbnail" href="${photo.url}" data-position="left center"><img src="${photo.thumbnail}" alt="${photo.description}" /></a>
<h2>${gallery.name}</h2> <h2>${photo.name}</h2>
<p>${gallery.takeTime!}</p> <p>${photo.takeTime!}</p>
</article> </article>
</#list> </#list>
</#if> </#if>
</@galleryTag> </@photoTag>
</section> </section>
<footer id="footer"> <footer id="footer">
<ul class="copyright"> <ul class="copyright">