mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-10 11:24:39 +03:00
Detect tag.hbs template in themes
closes #2320 - changed detection from "tag" to "tag.hbs" in "frontend.js" contrroller
This commit is contained in:
parent
383da31484
commit
97daa2bdec
@ -125,7 +125,7 @@ frontendControllers = {
|
|||||||
filters.doFilter('prePostsRender', page.posts).then(function (posts) {
|
filters.doFilter('prePostsRender', page.posts).then(function (posts) {
|
||||||
api.settings.read('activeTheme').then(function (activeTheme) {
|
api.settings.read('activeTheme').then(function (activeTheme) {
|
||||||
var paths = config().paths.availableThemes[activeTheme.value],
|
var paths = config().paths.availableThemes[activeTheme.value],
|
||||||
view = paths.hasOwnProperty('tag') ? 'tag' : 'index',
|
view = paths.hasOwnProperty('tag.hbs') ? 'tag' : 'index',
|
||||||
|
|
||||||
// Format data for template
|
// Format data for template
|
||||||
response = _.extend(formatPageResponse(posts, page), {
|
response = _.extend(formatPageResponse(posts, page), {
|
||||||
|
Loading…
Reference in New Issue
Block a user