{{ define "title"}} {{ .Title}} {{end}}
{{ define "header"}} {{ partial "header" .}} {{end}}
{{ define "main"}}
<div id="main">
  <div id="hero">
    <h1>Plugins</h1>
    {{ .Site.Data.subtext.plugin.content | markdownify }}
    <p></p>

    {{ .Scratch.Set "url1" "/2017/03/01/how-to-add-plugins-to-coredns/" }}
    {{ .Scratch.Set "link1" "Write Plugins" }}
    {{ .Scratch.Set "class1" "primary" }}

    {{ .Scratch.Set "url2" "/2017/07/25/compile-time-enabling-or-disabling-plugins/" }}
    {{ .Scratch.Set "link2" "Enable Plugins" }}
    {{ .Scratch.Set "class2" "outline" }}

    {{ partial "plugin-action-button" . }}

  </div>
  <div id="components">
    <div class="row gutters">
      {{ range .Data.Pages.ByWeight }}
      <div class="col col-4 item">
        <h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
        <p>{{ .Params.description | markdownify }}</p>
      </div>
      {{ end }}

    </div>
  </div>
</div>
{{ end }}

{{ define "footer"}} {{ partial "footer" .}} {{end}}
