Skip to content

Commit

Permalink
Add the old bootstrap theme (getnikola/nikola#1865)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 5, 2015
1 parent 4d73395 commit 905e526
Show file tree
Hide file tree
Showing 137 changed files with 45,397 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build_site.py
Expand Up @@ -31,7 +31,7 @@ def error(msg):
print(colorama.Fore.RED + "ERROR:" + msg)

def theme_list():
return sorted(['base', 'base-jinja', 'bootstrap', 'bootstrap-jinja', 'bootstrap3', 'bootstrap3-jinja'] + [theme.split('/')[-1] for theme in glob.glob(GLOB)])
return sorted(['base', 'base-jinja', 'bootstrap3', 'bootstrap3-jinja'] + [theme.split('/')[-1] for theme in glob.glob(GLOB)])

def build_site():
data = {}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_themes.py
Expand Up @@ -24,7 +24,7 @@ def error(msg):
print(colorama.Fore.RED + "ERROR:" + msg)

def theme_list():
return sorted(['base', 'base-jinja', 'bootstrap', 'bootstrap-jinja', 'bootstrap3', 'bootstrap3-jinja'] + [theme.split('/')[-1] for theme in glob.glob("v7/*")])
return sorted(['base', 'base-jinja', 'bootstrap3', 'bootstrap3-jinja'] + [theme.split('/')[-1] for theme in glob.glob("v7/*")])

def build_theme(theme=None):
if theme is None: # Check them all
Expand Down
1 change: 1 addition & 0 deletions v7/bootstrap-jinja/AUTHORS.txt
@@ -0,0 +1 @@
Roberto Alsina <https://github.com/ralsina>
25 changes: 25 additions & 0 deletions v7/bootstrap-jinja/README.md
@@ -0,0 +1,25 @@
This is the original Bootstrap 2 theme for Nikola. This theme is **not
supported** by the Nikola and Bootstrap developers. Use at your own risk,
upgrade to ``bootstrap3`` (shipped with Nikola) whenever possible.

Has a fixed navigation bar at top that displays the `NAVIGATION_LINKS`
setting and supports nested menus.

This theme is used in Nikola's website: https://getnikola.com

Important: To fit in the bootstrap navigation bar, the search form needs the
navbar-form and pull-left CSS classes applied. Here is an example with Nikola's
default duckduckgo search form:

SEARCH_FORM = """
<!-- Custom search -->
<form method="get" id="search" action="http://duckduckgo.com/" class="navbar-form pull-left">
<input type="hidden" name="sites" value="%s"/>
<input type="hidden" name="k8" value="#444444"/>
<input type="hidden" name="k9" value="#D51920"/>
<input type="hidden" name="kt" value="h"/>
<input type="text" name="q" maxlength="255" placeholder="Search&hellip;" class="span2" style="margin-top: 4px;"/>
<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" />
</form>
<!-- End of custom search -->
""" % SITE_URL

0 comments on commit 905e526

Please sign in to comment.