├── .gitignore ├── docker ├── bash-shop.sh ├── restart-containers.sh ├── rm-containers.sh ├── kill-containers.sh ├── init.sh └── docker-compose.yml └── HugoTheme ├── frontend ├── index │ ├── main-navigation.tpl │ └── index.tpl └── _public │ └── src │ └── less │ ├── _modules │ ├── global.less │ ├── footer.less │ └── main-navigation.less │ └── all.less ├── preview.png └── Theme.php /.gitignore: -------------------------------------------------------------------------------- 1 | docker/.database 2 | -------------------------------------------------------------------------------- /docker/bash-shop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | docker-compose exec --privileged shop bash 5 | -------------------------------------------------------------------------------- /HugoTheme/frontend/index/main-navigation.tpl: -------------------------------------------------------------------------------- 1 | {extends file="parent:frontend/index/main-navigation.tpl"} 2 | -------------------------------------------------------------------------------- /HugoTheme/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/ShopwareHugoTest/master/HugoTheme/preview.png -------------------------------------------------------------------------------- /HugoTheme/frontend/_public/src/less/_modules/global.less: -------------------------------------------------------------------------------- 1 | .content-main, .content-main.is--fullscreen{ 2 | .unitize(margin-top, 72); 3 | } 4 | -------------------------------------------------------------------------------- /HugoTheme/frontend/_public/src/less/all.less: -------------------------------------------------------------------------------- 1 | @import "_modules/main-navigation"; 2 | @import "_modules/footer"; 3 | @import "_modules/global"; 4 | -------------------------------------------------------------------------------- /docker/restart-containers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | THIS_DIR=$(dirname "$(readlink -f "$0")")"" 4 | 5 | cd $THIS_DIR 6 | 7 | docker-compose up -d 8 | 9 | cd - 10 | 11 | -------------------------------------------------------------------------------- /HugoTheme/frontend/_public/src/less/_modules/footer.less: -------------------------------------------------------------------------------- 1 | .footer-main { 2 | background: #111; 3 | 4 | .container{ 5 | background: #111; 6 | color: white; 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /docker/rm-containers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | THIS_DIR=$(dirname "$(readlink -f "$0")")"" 5 | 6 | cd $THIS_DIR 7 | 8 | docker-compose stop 9 | docker-compose rm --force 10 | 11 | cd - 12 | 13 | -------------------------------------------------------------------------------- /docker/kill-containers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | THIS_DIR=$(dirname "$(readlink -f "$0")")"" 5 | 6 | cd $THIS_DIR 7 | 8 | docker-compose kill 9 | docker-compose rm --force 10 | 11 | cd - 12 | 13 | -------------------------------------------------------------------------------- /docker/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker-compose exec shop /swtools/init.sh 4 | 5 | # install and activate the Slogan of the day plugin 6 | docker-compose exec shop php bin/console sw:plugin:refresh 7 | docker-compose exec shop php bin/console sw:plugin:install SwagSloganOfTheDay 8 | docker-compose exec shop php bin/console sw:plugin:activate SwagSloganOfTheDay 9 | -------------------------------------------------------------------------------- /HugoTheme/Theme.php: -------------------------------------------------------------------------------- 1 | 9 | 15 |
16 |
17 | {block name="frontend_index_navigation_categories_top_include"} 18 | {include file='frontend/index/main-navigation.tpl'} 19 | {/block} 20 |
21 |
22 |
23 | 32 |
33 | 34 | {/block} 35 | 36 | {/block} 37 | --------------------------------------------------------------------------------