| <!DOCTYPE html> |
| <html> |
| |
| <head> |
| <title>Hashtag</title> |
| <meta charset="utf-8" /> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| </head> |
| |
| <body> |
| |
| <header> |
| <a href='/'>Hashtag</a> |
| <form action="" method="get" accept-charset="utf-8"> |
| <input type="text" name="hashtag" value="{% .Query.Value %}" placeholder="search"> |
| </form> |
| </header> |
| |
| <main> |
| {% if not .IsSearch %} |
| <section> |
| <h2>Hashtags</h2> |
| <ul> |
| {% range .Hashtags %} |
| <li><a href='?hashtag={%.%}'>{%.%}</a></li> |
| {% end %} |
| </ul> |
| </section> |
| |
| {% else %} |
| |
| {% range .Results %} |
| <section> |
| <h2>{% .DisplayName %}</h2> |
| <ul> |
| {% range .Artifacts %} |
| <li><a href='{% .URL %}'>{% .Title %}</a></li> |
| {% else %} |
| <p>None found.</p> |
| {% end %} |
| </ul> |
| </section> |
| {% end %} |
| |
| {% end %} |
| </main> |
| |
| </body> |
| |
| </html> |