From 8a6fcdfe6d173248d2edd2cff473d69619732038 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sun, 30 Oct 2011 11:51:27 +0000 Subject: [PATCH] Tweaked footer, added config. --- app/views/layouts/photos.html.erb | 4 ++-- config/config.yml | 4 ++++ config/initializers/load_config.rb | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 config/config.yml create mode 100644 config/initializers/load_config.rb diff --git a/app/views/layouts/photos.html.erb b/app/views/layouts/photos.html.erb index 1c325f9..5823f70 100644 --- a/app/views/layouts/photos.html.erb +++ b/app/views/layouts/photos.html.erb @@ -2,7 +2,7 @@ - <%= @page_title + ' - ' unless @page_title.nil? %> Dan Barber Photography + <%= @page_title + ' - ' unless @page_title.blank? %> Dan Barber Photography @@ -30,7 +30,7 @@ <%= yield %> diff --git a/config/config.yml b/config/config.yml new file mode 100644 index 0000000..6a4b653 --- /dev/null +++ b/config/config.yml @@ -0,0 +1,4 @@ +name: Dan Barber Photo +page_title: Dan Barber Photography +meta_description: "" +meta_keywords: "" \ No newline at end of file diff --git a/config/initializers/load_config.rb b/config/initializers/load_config.rb new file mode 100644 index 0000000..4a362bc --- /dev/null +++ b/config/initializers/load_config.rb @@ -0,0 +1,2 @@ +# Load the app config from the config.yml file. +APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml") \ No newline at end of file