Skip to content

Commit

Permalink
Merge branch 'master' into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cellargalaxy committed Nov 19, 2023
2 parents 597723b + 9b9159c commit 6634095
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion themes/fluid/layout/404.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.page404.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 100)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.about.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/archive.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.archive.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/categories.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.category.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/category.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.category.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/links.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.links.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.page.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.post.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/tag.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.tag.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down
2 changes: 1 addition & 1 deletion themes/fluid/layout/tags.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function hash(text) {
}
page.banner_group = page.banner_group || theme.tag.banner_group || theme.index.banner_group
if (Array.isArray(page.banner_group) && page.banner_group.length) {
var index = hash(page.subtitle || page.title) % page.banner_group.length
var index = Math.abs(hash(page.subtitle || page.title)) % page.banner_group.length
page.banner_img = page.banner_group[index].img || page.banner_img
page.banner_text = page.banner_group[index].text || page.subtitle || page.title
page.banner_img_height = parseFloat(page.banner_group[index].height || 50)
Expand Down

0 comments on commit 6634095

Please sign in to comment.