Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Form Proposal #79

Closed
ulf1 opened this issue Aug 22, 2018 · 0 comments
Closed

Search Form Proposal #79

ulf1 opened this issue Aug 22, 2018 · 0 comments

Comments

@ulf1
Copy link

ulf1 commented Aug 22, 2018

Google Search Example

partials/header.html

...
<div class="collapse navbar-collapse">
...
                    <div class="col-sm-3 col-md-3 pull-right">
                        {{ partial "search-form-google" . }}
                    </div>
...

partials/search-form-google.html

<form class="navbar-form" role="search" action="http://www.google.com/search" method="get">
    <div class="input-group">
        <input type="hidden" name="q" value="site:{{ .Site.BaseURL }}">
        <input class="form-control" type="text" name="q" alt="search">
        <div class="input-group-btn">
            <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
        </div>
    </div>
</form>

Requirements

Variants

Search Engines

=> <form ... action="{{ THIS IS DIFFERENT }}" ...>

Demo (shameless self-advertisement)

http://oxyba.de/

see in the top-right corner

@ulf1 ulf1 closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant