From eb3aefe14cd2d8f87c55e035abf671a6f2601d9a Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 27 Aug 2014 01:43:00 +0000 Subject: [PATCH] Add config.patch and update templates --- config.patch | 63 ++++++++++++++++++++++++++++++++++++++++++++ www/layout.html | 5 +++- www/solar/screen.css | 10 +++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 config.patch diff --git a/config.patch b/config.patch new file mode 100644 index 0000000..5734153 --- /dev/null +++ b/config.patch @@ -0,0 +1,63 @@ +--- config-sample.py 2014-07-23 21:24:31.762730111 +0000 ++++ config.py 2014-08-27 01:38:34.466730111 +0000 +@@ -10,7 +10,7 @@ + DEBUG = True + + # Unique name of your site, e.g. "kirsle.net" +-SITE_NAME = "example.com" ++SITE_NAME = "kirsle.net" + + # Path to your site's HTML root. Whenever Rophako tries to render a template, + # it will check in your site's root for the template first before defaulting to +@@ -18,14 +18,14 @@ + # Rophako pages, e.g. for account, blog, photo albums and so on, have templates + # in the default site. You can override those templates by creating files with + # the same paths in your site's HTML folder. +-SITE_ROOT = os.path.join(_basedir, "site", "www") ++SITE_ROOT = "/home/kirsle/git/kirsle.net/www" + + # E-mail addresses for site notifications (i.e. new comments). +-NOTIFY_ADDRESS = ["root@localhost"] ++NOTIFY_ADDRESS = ["root@kirsle.net"] + + # Set this to true if you want your app to force use of SSL. This will also turn + # on Flask's secure-only session cookies. +-FORCE_SSL = False ++FORCE_SSL = True + + # Secret key used for session cookie signing. Make this long and hard to guess. + # +@@ -50,14 +50,14 @@ + DB_ROOT = "db" + REDIS_HOST = "localhost" + REDIS_PORT = 6379 +-REDIS_DB = 0 ++REDIS_DB = 1 + REDIS_PREFIX = "rophako:" + + # Mail settings + MAIL_METHOD = "smtp" # or "sendmail", not yet implemented + MAIL_SERVER = "localhost" + MAIL_PORT = 25 +-MAIL_SENDER = "Rophako CMS " ++MAIL_SENDER = "Kirsle.net " + + # Emoticon theme used for blog posts and comments. Should exist at the URL + # "/static/smileys" from your document root, and have a file named +@@ -97,7 +97,7 @@ + # The path to where uploaded photos will be stored. + # The PRIVATE path is from the perspective of the server file system. + # The PUBLIC path is from the perspective of the web browser via HTTP. +-PHOTO_ROOT_PRIVATE = os.path.join(_basedir, "site", "www", "static", "photos") ++PHOTO_ROOT_PRIVATE = "/home/kirsle/www/static/photos" + PHOTO_ROOT_PUBLIC = "/static/photos" + + PHOTO_DEFAULT_ALBUM = "My Photos" # Default/fallback album name. +@@ -135,3 +135,6 @@ + load_plugin("rophako.modules.comment") + load_plugin("rophako.modules.emoticons") + load_plugin("rophako.modules.contact") +\ No newline at end of file ++ ++# Kirsle legacy endpoints ++load_plugin("kirsle_legacy", as_blueprint=False) diff --git a/www/layout.html b/www/layout.html index 5e74f32..2618238 100644 --- a/www/layout.html +++ b/www/layout.html @@ -114,10 +114,13 @@ ¤ Twitter
¤ MySpace
¤ Github
- ¤ CPAN + ¤ CPAN
+ ¤ npm +
{{ nav_ads() }} +
Fan Club
diff --git a/www/solar/screen.css b/www/solar/screen.css index 5ce1710..3a747d3 100644 --- a/www/solar/screen.css +++ b/www/solar/screen.css @@ -268,6 +268,16 @@ ul.photo-grid li .dummy { -1px 1px 0px #000000; } +.photo-description { + display: block; + border: 1px solid #FF99FF; + box-shadow: 0px 0px 4px #0099FF; + padding: 10px; + margin: 20px 0px; + background-color: #000000; + width: 790px; +} + /*ul#arrange-photos { list-style-type: none; margin: 0px;