mirror of
https://github.com/actix/actix-website
synced 2025-06-28 16:00:36 +02:00
Update website
This commit is contained in:
23
layouts/code/baseof.html
Normal file
23
layouts/code/baseof.html
Normal 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
3
layouts/code/code.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
4
layouts/code/single.html
Normal file
4
layouts/code/single.html
Normal file
@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<p class="uplink"><a href="/code/">↑ Back to code</a>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user