1
0
mirror of https://github.com/actix/actix-website synced 2025-06-28 16:00:36 +02:00

Update website

This commit is contained in:
Armin Ronacher
2018-05-22 23:15:08 +02:00
parent e14d14f51b
commit be2e12d2d2
93 changed files with 7324 additions and 894 deletions

23
layouts/code/baseof.html Normal file
View File

@ -0,0 +1,23 @@
{{ partial "header" . }}
{{ $currentURL := .URL }}
<div class="actix-pageheader">
<div class="container">
<h1 class="display-4">{{ .Title }}</h1>
{{ if .Description }}
<p class="lead">{{ .Description }}</p>
{{ end }}
</div>
</div>
<div class="container actix-community">
<div class="row">
<div class="col-md-6 offset-md-3">
<div class="actix-content">
{{ block "main" . }}{{ end }}
</div>
</div>
</div>
</div>
{{ partial "footer" . }}

3
layouts/code/code.html Normal file
View File

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

4
layouts/code/single.html Normal file
View File

@ -0,0 +1,4 @@
{{ define "main" }}
<p class="uplink"><a href="/code/">↑ Back to code</a>
{{ .Content }}
{{ end }}