mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
sort hero modules by order
This commit is contained in:
parent
76223dfabd
commit
95cd46cbcb
3 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,7 @@ Template[getTemplate('layout')].helpers({
|
|||
return getSetting('extraCode');
|
||||
},
|
||||
heroModules: function () {
|
||||
return heroModules;
|
||||
return _.sortBy(heroModules, 'order');
|
||||
},
|
||||
getTemplate: function () {
|
||||
return getTemplate(this.template);
|
||||
|
|
|
@ -183,7 +183,8 @@ viewParameters.campaign = function (terms) {
|
|||
}
|
||||
|
||||
heroModules.push({
|
||||
template: 'newsletterBanner'
|
||||
template: 'newsletterBanner',
|
||||
order: 10
|
||||
});
|
||||
|
||||
function subscribeUserOnCreation (user) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
heroModules.push({
|
||||
template: 'taglineBanner',
|
||||
order: 0
|
||||
order: 1
|
||||
});
|
||||
|
||||
var showTaglineBanner = {
|
||||
|
|
Loading…
Add table
Reference in a new issue