From 324171fce7b7019e32309cde98761f6592114ef2 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Mon, 17 Jun 2013 19:30:46 -0700 Subject: [PATCH] Yeup --- css/style.css | 11 +++++++++++ lib/model.php | 7 +++---- pages/{bio => cv} | 2 +- pages/projects | 4 ++++ templates/all.html.tpl | 4 ++-- templates/index.html.tpl | 2 +- 6 files changed, 22 insertions(+), 8 deletions(-) rename pages/{bio => cv} (96%) create mode 100644 pages/projects diff --git a/css/style.css b/css/style.css index 4c65d3b..7f41147 100644 --- a/css/style.css +++ b/css/style.css @@ -235,13 +235,24 @@ table, td, tr { margin-bottom:0.25em; /*margin-bottom:0.3em;*/ } +.entries.projects.index li strong { + display:none; +} +.entries.projects.index li:hover strong { + display:inherit; +} .entries.projects.tagged li { padding-bottom:3em; height:350px; } +.entries.projects.tagged li strong { + display:inherit; +} .entries.projects.featured li { height:200px; } + + .entries.projects ul.tags li { height:1.5em; margin:0; diff --git a/lib/model.php b/lib/model.php index e897ff8..5094d2e 100644 --- a/lib/model.php +++ b/lib/model.php @@ -21,9 +21,8 @@ class Model { $this->request = $req; - if (EDIT) { - if ($_SERVER['REQUEST_METHOD'] == 'POST') - $this->process_edit_post_request(); + if (EDIT && $_SERVER['REQUEST_METHOD'] == 'POST') { + $this->process_edit_post_request(); } // // tags @@ -167,7 +166,7 @@ class Model if (!is_writable( $this->get_filename() )) { throw new Exception('Error editing file. Permissions?'); } - $fp = fopen( $this->get_filename(), 'w'); + $fp = fopen( $this->get_filename() . '/_config', 'w'); if ($fp) { fwrite($fp, $_POST['edited_file_contents']); fclose($fp); diff --git a/pages/bio b/pages/cv similarity index 96% rename from pages/bio rename to pages/cv index ca95c62..0fde032 100755 --- a/pages/bio +++ b/pages/cv @@ -1,5 +1,5 @@ template = page -title = bio +title = c/v --
diff --git a/pages/projects b/pages/projects new file mode 100644 index 0000000..35838e8 --- /dev/null +++ b/pages/projects @@ -0,0 +1,4 @@ +template = all +title = all projects +-- +projects diff --git a/templates/all.html.tpl b/templates/all.html.tpl index 4a19486..c4a3320 100644 --- a/templates/all.html.tpl +++ b/templates/all.html.tpl @@ -24,14 +24,14 @@
title;?> -
+ diff --git a/templates/index.html.tpl b/templates/index.html.tpl index e8ea1c0..49668d4 100644 --- a/templates/index.html.tpl +++ b/templates/index.html.tpl @@ -8,7 +8,7 @@ include_template('nav.html.tpl', array('index' => true)) ?>
-
    config->show_featured && !isset($tag)): ?>featured"> +
      config->show_featured && !isset($tag)): ?>featured">
    • -- 2.34.1