From b76e77cdac4e889b8ed9815ef0ab2fdae76b98ce Mon Sep 17 00:00:00 2001 From: Ravi Sharan Date: Tue, 16 Aug 2016 23:01:14 +0530 Subject: [PATCH 1/2] Make CGRAN look like the new GNU Radio website - Modify the front page - Links open in new tabs --- pelicanconf.py | 6 +- pybombs-theme/static/css/material.css | 6 +- pybombs-theme/templates/base.html | 92 +++++++++++++++------------ pybombs-theme/templates/index.html | 55 ++++++++-------- pybombs-theme/templates/page.html | 6 +- 5 files changed, 86 insertions(+), 79 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index 5cb0037..7e8398e 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -8,7 +8,6 @@ PATH = 'content' TIMEZONE = 'US/Eastern' -#SITEURL = 'http://nathanwest.us/cgran' SITEURL = 'http://www.cgran.org' DEFAULT_LANG = u'en' @@ -25,17 +24,16 @@ FILES_TO_COPY = ( ('src/projects.html', 'projects/index.html'), ) + # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True THEME= 'pybombs-theme' +DIRECT_TEMPLATES = ['index',] PLUGIN_PATHS = ['plugins/pelican-md-metayaml'] PLUGINS = ['md_metayaml'] -DIRECT_TEMPLATES = ['index',] PAGE_PATHS = ['oot_modules'] LOAD_CONTENT_CACHE=False ARTICLE_EXCLUDE=['oot_modules'] #STATIC_PATHS = ["js"] - -## custom page generated with a jinja2 template diff --git a/pybombs-theme/static/css/material.css b/pybombs-theme/static/css/material.css index b0dbe06..30314c2 100644 --- a/pybombs-theme/static/css/material.css +++ b/pybombs-theme/static/css/material.css @@ -18902,7 +18902,7 @@ legend { float: right; } .navbar { - background-color: #ff5722; + background-color: #fff; border: 0; border-radius: 0; } @@ -19033,8 +19033,8 @@ fieldset[disabled] .navbar .btn-link:focus { } .navbar.navbar, .navbar-default.navbar { - background-color: #ff5722; - color: #fff; + background-color: #fff; + color: #72706f; margin-bottom: 0px; } .navbar.navbar .navbar-form .form-control-wrapper input.form-control::placeholder, diff --git a/pybombs-theme/templates/base.html b/pybombs-theme/templates/base.html index 71f65ca..8a45bcc 100644 --- a/pybombs-theme/templates/base.html +++ b/pybombs-theme/templates/base.html @@ -1,45 +1,59 @@ - - {{ SITENAME }} - - - - - - - + + {{ SITENAME }} + + + + + + + +
{% block content %} @@ -62,7 +76,7 @@ -