{{ template "header" .}}

<main>
  {{ if .file }}
  <style>
    {{.css}}
    pre {
      white-space: pre-wrap;
      word-wrap: break-word;
    }
    div.user-readme img {
      display: block;
      width: 100%;
      height: auto;
    }
  </style>
  <div class="download-parent">
    <a href="/{{.fullname}}/tree/{{.fileBranch}}" class="button">{{.fullname}}へ戻る</a>
  </div>

  <div class="user-readme">
    <div class="user-container">
      <h3>{{.name}}</h3>
      <a href="/raw/{{.fullname}}/{{.branch}}/{{.name}}" class="button secondary">生</a>
    </div>
    {{ if eq .type "img" }} {{ unescape .file }} {{else}} {{ .file }} {{end}}
  </div>
  {{end}}
</main>
{{ template "footer" .}}
