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
*/
@GetMapping(value = "/gallery")
public String gallery() {
return themeService.render("gallery");
@GetMapping(value = "/photos")
public String photos() {
return themeService.render("photos");
}
/**

View File

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