diff --git a/404.php b/404.php index c0149d1..b163df2 100644 --- a/404.php +++ b/404.php @@ -1,5 +1,11 @@ title = "404 Not Found"; +$page_meta->desc = "This page has not been found."; + require_once 'layout/header.php'; ?> diff --git a/Makefile b/Makefile index de38a31..480cac2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ +# You would only need to use these if you want to build your own custom builder image. +# Otherwise, by default the workflow uses the pre-built image from ghcr.io/atas/ssg-builder:latest + build-local-image: docker build system/workflow-image -t atas-ssg-builder:latest diff --git a/config.json b/config.json index 075be95..622db67 100644 --- a/config.json +++ b/config.json @@ -3,10 +3,10 @@ "site_top_about_line1": "Simple PHP-based Static Site generator", "site_top_about_line2": "Supports Markdown and deployed to GitHub Pages by GitHub Actions", "hostname": "ssg-test.atasasmaz.com", - "local_hostname": "ssg.local", + "local_hostname": "ssg-local.atasasmaz.com", "email": "local-address@your-domain.com", "full_title": "Ata's SSG - a Simple PHP-based SSG for GitHub Pages", - "appended_title": " - Ata's SSG'", + "appended_title": " - Ata's SSG", "site_desc": "Welcome to Ata's SSG. This is a simple PHP-based Static Site Generator that supports Markdown and deployed to GitHub Pages by GitHub Actions.", "linkedin_url": "https://www.linkedin.com/in/atasasmaz", "twitter_url": "https://twitter.com/AtaSasmaz", diff --git a/index.php b/index.php index 20ef0d1..57021e3 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,29 @@ title = $tpl->meta->title ?? ""; -$og->desc = $tpl->meta->desc ?? ""; -$selectedTab = "home"; +// @var $page_meta PageMeta +global $page_meta; +$page_meta->selectedTab = "home"; + require_once 'layout/header.php'; -$posts = get_posts(); +$posts = get_all_posts(); echo "