Skip to content

Commit

Permalink
search.html is always root path
Browse files Browse the repository at this point in the history
  • Loading branch information
if1live committed Aug 31, 2013
1 parent ba8f301 commit 3da5290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<li {% if page_name == "categories" %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
<li {% if page_name == "tags" %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
<li {% if page_name == "archives" %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
<li><form class="navbar-search" action="search.html" onsubmit="return validateForm()"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
<li><form class="navbar-search" action="/search.html" onsubmit="return validateForm()"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
</ul>
</div>
</div>
Expand Down

2 comments on commit 3da5290

@if1live
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my pelicanconf.py is..

ARTICLE_URL = 'posts/{slug}/'
ARTICLE_SAVE_AS = 'posts/{slug}/index.html'

what is problem?

  1. goto article page. current url : /posts/some-article/
  2. search. current url : /posts/some-article/search.html?... but search.html is in root path.

search.html is always in root path. so you can use absoulte path.

@talha131
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @if1live for pointing out this error. I have fixed this bug.

I have added a file to give credit to you.

Please notify me of any bugs here. I plan to release version 1.1 by Tuesday next week.

Please sign in to comment.