diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 5ba02a2..2b1ed6e 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest container: - image: ghcr.io/atas/ssg-builder:202310152231 + image: ghcr.io/atas/ssg-builder:202312111157 steps: - name: Checkout repository @@ -47,13 +47,13 @@ jobs: - name: Run Ata's SSG HTML Builder uses: atas/ssg-html-builder-action@2.2 with: - less_file_path: 'assets/styles/style.less' + less_file_path: "assets/styles/style.less" - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: 'html' - path: 'html' + name: "html" + path: "html" deploy: environment: @@ -71,14 +71,14 @@ jobs: - name: Download artifact uses: actions/download-artifact@v2 with: - name: 'html' - path: './html' + name: "html" + path: "./html" - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: # Upload entire repository - path: 'html' + path: "html" - name: Deploy to GitHub Pages id: deployment diff --git a/Makefile b/Makefile index 6353645..f341f84 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,11 @@ CONTAINER_IMAGE := $(shell grep 'image:' .github/workflows/build-deploy.yml | sed -e 's/image://g' | tr -d ' \t') +# Define a variable for the port number +DEV_SERVER_PORT := 8002 + dev-server: - @echo "Starting dev server on image $(CONTAINER_IMAGE)" + @echo "Starting dev server on image $(CONTAINER_IMAGE) at\n-----------\nhttp://localhost:$(DEV_SERVER_PORT)\n-----------" @chmod 777 tmp - docker run --rm -it --entrypoint /dev-server-entrypoint.sh -p 8001:80 \ + docker run --rm -it --entrypoint /dev-server-entrypoint.sh -p $(DEV_SERVER_PORT):80 \ -v $(shell pwd):/workspace $(CONTAINER_IMAGE) diff --git a/config.json b/config.json index 91ddb14..4cebbb4 100644 --- a/config.json +++ b/config.json @@ -12,4 +12,4 @@ "github_url": "https://github.com/atas", "location": "City, Country", "default_opengraph_image": "assets/images/site-icon-big.jpg" -} \ No newline at end of file +} diff --git a/layout/header.php b/layout/header.php index 0199cca..8873ef6 100644 --- a/layout/header.php +++ b/layout/header.php @@ -142,8 +142,11 @@ + config->location) && strlen($ssg->config->location) > 0) { ?>
Location Icon config->location ?>
+ +
\ No newline at end of file