diff options
Diffstat (limited to 'frontend/site/projects/museum/app/revisions.js')
| -rw-r--r-- | frontend/site/projects/museum/app/revisions.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/frontend/site/projects/museum/app/revisions.js b/frontend/site/projects/museum/app/revisions.js new file mode 100644 index 0000000..9aa66a7 --- /dev/null +++ b/frontend/site/projects/museum/app/revisions.js @@ -0,0 +1,24 @@ + +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') + ) + 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 +} |
