38 行
768 B
HTML
38 行
768 B
HTML
{{ template "header" .}}
|
|
|
|
<main>
|
|
{{ if .file }}
|
|
<style>
|
|
// prettier-ignore
|
|
{{.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"
|
|
>Back to {{.fullname}}</a
|
|
>
|
|
</div>
|
|
|
|
<div class="user-readme">
|
|
<div class="user-container">
|
|
<h3>{{.name}}</h3>
|
|
<a
|
|
href="/raw/{{.fullname}}/{{.branch}}/{{.name}}"
|
|
class="button secondary"
|
|
>Raw</a
|
|
>
|
|
</div>
|
|
{{ if eq .type "img" }} {{ unescape .file }} {{else}} {{ .file }} {{end}}
|
|
</div>
|
|
{{end}}
|
|
</main>
|
|
{{ template "footer" .}}
|