From 3a68cdc4089c208bc6dd1b70a577c1f6e9ff57fb Mon Sep 17 00:00:00 2001 From: Jim Shepich III <73664586+epicshepich@users.noreply.github.com> Date: Sun, 4 Jun 2023 08:43:55 -0400 Subject: [PATCH] Rewrote home page --- .gitignore | 1 + data/pages.json | 9 ++++++++- index.php | 15 +++++++++++++-- pages/home.html | 21 ++++----------------- scripts/nav.php | 6 ++++++ 5 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78ecffe --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +shepich resume.pdf \ No newline at end of file diff --git a/data/pages.json b/data/pages.json index 751e7d2..42c3ab3 100644 --- a/data/pages.json +++ b/data/pages.json @@ -20,6 +20,13 @@ "index" : 1 }, + "resume" : { + "name" : "Resume", + "query_value" : "resume", + "link" : "pages/shepich resume.pdf", + "index" : 2 + }, + "epics" : { "name" : "Epics & Emprises", "query_value" : "epics", @@ -31,6 +38,6 @@ "name" : "Lists", "query_value" : "lists", "file" : "lists.html", - "index" : 2 + "index" : -1 } } diff --git a/index.php b/index.php index a796708..dc0525b 100644 --- a/index.php +++ b/index.php @@ -24,8 +24,19 @@
file."'>"; - echo file_get_contents(__DIR__ ."/pages/".$page->file); + if(isset($page->link)){ + echo ""; + //If the directory assigns the page to an external link, redirect to that location. + } + + if(isset($page->iframe)){ + echo ""; + //If the directory says to embed the page in an iframe, then do that. + } else { + echo file_get_contents(__DIR__ ."/pages/".$page->file); + //Otherwise, just write the HTML of the page in the content area. + } + ?>