| {{/* |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| */}} |
| |
| {{ define "main" }} |
| {{ $pageUrl := .Permalink }} |
| <div class="no-width-restriction"> |
| <h2 class="page-header">Blog</h2> |
| <form class="search-form" method="get" action="/blog"> |
| <input class="search-form__input" placeholder="Search" name="q" type="search" id="search" size="16"> |
| <button class="search-form__button" type="submit"> |
| {{ with resources.Get "icons/search-icon.svg" }} |
| {{ .Content | safeHTML }} |
| {{ end }} |
| </button> |
| </form> |
| <div class="all-tags-container"> |
| <div class="tags-container mx-auto"> |
| <a class="tag" href="/blog/">All</a> |
| {{ range $name, $taxonomy := .Site.Taxonomies.tags }} |
| {{ with $.Site.GetPage (printf "/tags/%s" $name) }} |
| <a class="tag {{if eq .Permalink $pageUrl}}active{{ end }}" |
| href="{{ .Permalink }}">{{ humanize $name }}</a> |
| {{ end }} |
| {{ end }} |
| </div> |
| </div> |
| <div class="blog__list-items-wrapper"> |
| <div class="new-entry"> |
| <a class="new-entry--link" href="https://github.com">ADD YOUR ENTRY</a> |
| </div> |
| <div class="list-items"> |
| {{ range .Pages }} |
| <div class="list-item list-item--wide"> |
| {{ partial "boxes/blogpost" . }} |
| </div> |
| {{ end }} |
| </div> |
| </div> |
| </div> |
| {{ end }} |