1
0
mirror of https://github.com/actix/actix-website synced 2025-01-22 16:15:56 +01:00
This commit is contained in:
krircc 2018-06-12 09:21:09 +08:00
parent cc4f4a5d48
commit 0bbed786d7
7 changed files with 0 additions and 99 deletions

View File

@ -1,10 +0,0 @@
---
title: Old
description: 2018-01-01
menu: blog_2018
weight: 999
---
# Title
coming......

View File

@ -1,10 +0,0 @@
---
title: New
description: 2018-06-11
menu: blog_2018
weight: 998
---
# Title
coming......

View File

@ -1,10 +0,0 @@
---
title: Blog
description: Happy journey with Actix
menu:
blog_intro:
name: Welcome
weight: 1
---
Welcome to Actix blogs.

View File

@ -1,60 +0,0 @@
{{ partial "header" . }}
{{ $currentURL := .URL }}
<div class="actix-pageheader">
<div class="container">
<h1 id="blog-title" class="display-4">{{ .Title }}</h1>
{{ if .Description }}
<p class="lead">{{ .Description }}</p>
{{ end }}
</div>
</div>
<div class="container actix-blog">
<div class="row">
<div class="col-md-3">
<button class="btn doctoggle" type="button" data-toggle="collapse" data-target="#collapsing-docnav" aria-expanded="false" aria-controls="collapsing-docnav">
Toggle navigation
</button>
<nav class="leftnav collapse show" id="collapsing-docnav">
<div class="" id="">
<h5>Introduction</h5>
<div>
<ul class="nav">
{{ range .Site.Menus.blog_intro }}
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>
<h5>2018</h5>
<div>
<ul class="nav">
{{ range .Site.Menus.blog_2018 }}
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
</nav>
</div>
<div class="col-md-9">
<div class="actix-content">
{{ block "main" . }}{{ end }}
<!-- Yes, we have to use *Prev* to get the next content, because the
weights are sorted inversely to how they are actually displayed... -->
{{ with .PrevInSection }}<div class="actix-next"><b>Next up</b>: <a href = {{ .URL }}>{{ end }}
{{ with .PrevInSection }} {{ .Title }}</a></div>{{ end }}
</div>
</div>
</div>
</div>
{{ partial "footer" . }}

View File

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

View File

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

View File

@ -36,9 +36,6 @@
<li class="nav-item">
<a class="nav-link" href="/docs/">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/blog/">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/community/">Community</a>
</li>