mirror of https://github.com/halo-dev/halo
Change gallery to photo.
parent
0c66aed1d4
commit
6cd6bbf94d
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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">
|
Loading…
Reference in New Issue