mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix the index of group picture layout
This commit is contained in:
parent
9e9c052f08
commit
8e3ec267e0
@ -10,9 +10,9 @@ const LAYOUTS = {
|
||||
2: [2]
|
||||
},
|
||||
3: {
|
||||
1: [3],
|
||||
2: [1, 2],
|
||||
3: [2, 1]
|
||||
1: [1, 2],
|
||||
2: [2, 1],
|
||||
3: [3]
|
||||
},
|
||||
4: {
|
||||
1: [1, 2, 1],
|
||||
|
||||
@ -12,8 +12,8 @@ describe('group-pictures', () => {
|
||||
|
||||
before(() => hexo.init().then(() => hexo.loadPlugin(require.resolve('hexo-renderer-marked'))));
|
||||
|
||||
it('layout 3-1', () => {
|
||||
groupPicture(['3-1'], `
|
||||
it('layout 3-3', () => {
|
||||
groupPicture(['3-3'], `
|
||||

|
||||

|
||||
`).should.eql(`<div class="group-picture"><div class="group-picture-row">${image}${image}${image}</div></div>`);
|
||||
@ -29,7 +29,7 @@ describe('group-pictures', () => {
|
||||
});
|
||||
|
||||
it('remove text', () => {
|
||||
groupPicture(['3-1'], `
|
||||
groupPicture(['3-3'], `
|
||||

|
||||
Text
|
||||

|
||||
@ -46,7 +46,7 @@ Text
|
||||
});
|
||||
|
||||
it('set hyperlinks 2', () => {
|
||||
groupPicture(['3-1'], `
|
||||
groupPicture(['3-3'], `
|
||||

|
||||
[](https://theme-next.js.org/)
|
||||
`).should.eql(`<div class="group-picture"><div class="group-picture-row">${image}${link}${image}</div></div>`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user