From fc63d8fe42b14eb5d36efd6ed951dcd000d96912 Mon Sep 17 00:00:00 2001 From: Jimmy Lin Date: Thu, 28 Jul 2016 15:57:05 +0200 Subject: [PATCH] Put footer's website and year into application.yml --- app/views/layouts/_footer.html.slim | 4 ++-- config/application.yml.example | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_footer.html.slim b/app/views/layouts/_footer.html.slim index 818fe48..0f206ba 100644 --- a/app/views/layouts/_footer.html.slim +++ b/app/views/layouts/_footer.html.slim @@ -2,8 +2,8 @@ .small-12.columns .footer div - span.link yafeilee.me - span.time © 2012 - 2016 + span.link = ENV['SITE_ADDRESS'] + span.time = ENV['SITE_YEAR'] .license | Designed by span diff --git a/config/application.yml.example b/config/application.yml.example index 1c96733..2f41ea9 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -20,6 +20,11 @@ REDIS_NAMESPACE: 'wblog' # META description for SEO INTRODUCE: '这是李亚飞的博客, 李亚飞是暂住在深圳的一名 Ruby 程序员, 这里是关于技术, 创业, 生活的思考' +#Website Address for footer display without http +SITE_ADDRESS: 'yafeilee.me' +#Website Year for footer display +SITE_YEAR: '© 2012 - 2016' + # optional # google analytics, blank it if you don't need GOOGLE: ''