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
|
* @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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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">
|
Loading…
Reference in New Issue