Start of resources section with placeholders
This commit is contained in:
parent
0788ab8896
commit
8fdc28e7c5
10 changed files with 721 additions and 0 deletions
42
layouts/resources/single.html
Normal file
42
layouts/resources/single.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{{ define "main" }}
|
||||
<div class="resource-single">
|
||||
<article class="resource-content">
|
||||
<header class="resource-header">
|
||||
<div class="resource-icon-large {{ .Params.icon }}"></div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.description }}
|
||||
<p class="lead">{{ .Params.description }}</p>
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<div class="resource-tags">
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ printf "/tags/%s/" (. | urlize) }}" class="tag">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="resource-links">
|
||||
{{ if .Params.demo_url }}
|
||||
<a href="{{ .Params.demo_url }}" class="resource-link demo" target="_blank">View Demo</a>
|
||||
{{ end }}
|
||||
{{ if .Params.source_url }}
|
||||
<a href="{{ .Params.source_url }}" class="resource-link source" target="_blank">View Source</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="resource-body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<nav class="resource-navigation">
|
||||
{{ with .PrevInSection }}
|
||||
<a href="{{ .Permalink }}" class="nav-link prev">← {{ .Title }}</a>
|
||||
{{ end }}
|
||||
<a href="/resources/" class="nav-link back">Back to Resources</a>
|
||||
{{ with .NextInSection }}
|
||||
<a href="{{ .Permalink }}" class="nav-link next">{{ .Title }} →</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue