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