blob: 13bf2c2876f0b061c061a4194967c0b39b3ec3f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import { isMobile } from "app/utils"
export default function reviseSite (graph) {
// console.log(graph)
if (!isMobile) {
return graph
}
graph.pages['/last-museum/home'].tiles = (
graph.pages['/last-museum/home'].tiles
.filter(tile => tile.type !== 'text')
)
graph.pages['/last-museum/home'].tiles = (
graph.pages['/last-museum/home'].tiles
.filter(tile => tile.type === 'image' || (tile.type === 'link' && !tile.type.match("stankievech")))
)
Object.keys(graph.pages).forEach(path => {
const page = graph.pages[path]
if (path.match("opoku")) {
page.tiles.forEach(tile => {
if (tile.type === 'image') {
tile.settings.scale /= 2
}
})
}
})
return graph
}
|