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. + } + ?>