getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
71 stars 51 forks source link

[zen-ipython theme] search form doesn't work #144

Open zouhx11 opened 6 years ago

zouhx11 commented 6 years ago

I tried the following default codes, but I didn't see search box show up: ''' This search form works for any site and looks good in the "site" theme where it appears on the navigation bar: ''' SEARCH_FORM = """

<form method="get" id="search" action="//duckduckgo.com/" class="navbar-form pull-left">

<input type="text" name="q" maxlength="255" placeholder="Search…" class="span2" style="margin-top: 4px;"/>

""" % SITE_URL

Kwpolska commented 6 years ago

The zen themes do not seem to support SEARCH_FORM.

zouhx11 commented 6 years ago

@damianavila What should I do to make some changes?

damianavila commented 6 years ago

@zouhx11 you probably need to add something like this: https://github.com/getnikola/nikola-themes/blob/master/v7/slidemenu/templates/base_header.tmpl#L9-L13, to the templates in the zen-ipython theme. But maybe I am missing something else and @Kwpolska will correct me :wink:

ralsina commented 6 years ago

That's about it, yes. Except if it looks like crap, in which case it will need something else ;-)