🐹 Added proper projects rendering

This commit is contained in:
Nurlan Su 2017-02-20 01:49:02 +01:00
parent cd4131a09a
commit d88e0927e2
5 changed files with 49 additions and 50 deletions

View File

@ -46,13 +46,17 @@ After installation, take a look in the `exampleSite` folder at. This directory c
exampleSite
├── config.toml
├── content
│   ├── projects
│   │   └── index.md
│   ├── projects.md
│   │
│   └── blog
│   ├── creating-a-new-theme.md
│   ├── go-is-for-lovers.md
│   ├── hugo-is-for-lovers.md
│   └── migrate-from-jekyll.md
├── data
│ └── projects.yml
└── static
```
@ -98,6 +102,11 @@ Pull requests, bug fixes, and new features are welcome!
## Changelog
> Version 1.0.1
- Added proper "Projects" page rendering
- Fixes, many fixes
> Version 1.0
- Initial release

View File

@ -5,50 +5,3 @@ tags: ["projects"]
title: "Projects"
showpagemeta: false
---
<section id="projects">
<div class="container">
<h3>Projects</h3>
<div class="panel panel-default">
<div class="panel-body">
<h5>
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 1</a></strong>
- Ei viderer tacimates pro, quem assum ea nam. Veritus omnesque eam te. Et natum mucius tamquam vel,
ea dolorem volumus deterruisset nec. Graeci mentitum sea an, eu prima elaboraret est.
</h5>
<h5>
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 2</a></strong>
- An eripuit phaedrum qui, nec facer splendide ex, vel ea assum facilisi convenire.
Te his neglegentur consectetuer.
</h5>
<h5>
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 3</a></strong>
- An alii quot tantas eum, doming platonem persecuti mea et, vim perpetua cotidieque delicatissimi in.
</h5>
<h5>
<i class="fa fa-globe"></i>&nbsp;&nbsp;<strong><a href="#">Project 4</a></strong>
- Vim an case vidit sententiae, est at euismod laboramus efficiantur. Ei sit brute lorem,
ea eam timeam viderer aliquid, cu integre omittam moderatius quo.
</h5>
<h5>
<i class="fa fa-globe"></i>&nbsp;&nbsp;<strong><a href="#">Project 5</a></strong>
- Dicta causae meliore ex vel, in vix erant integre petentium. Vix ei nisl scripta recusabo,
eam doming blandit facilisis.
</h5>
<h5>
<i class="fa fa-cog"></i>&nbsp;&nbsp;<strong><a href="#">Project 6</a></strong>
- Inermis recusabo elaboraret mea et, dicat neglegentur vim te. Nec et sanctus scriptorem,
usu ex sapientem gubergren. Tamquam admodum ei usu.
</h5>
<h5>
<i class="fa fa-cog"></i>&nbsp;&nbsp;<strong><a href="#">Project 7</a></strong>
- Essent putant indoctum sed in, reprimique persequeris neglegentur te quo. Nam rebum
tractatos partiendo at, debet ubique oporteat ut his.
</h5>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,22 @@
name: Projects
source:
- icon: fa fa-github
description: Ei viderer tacimates pro, quem assum ea nam. Veritus omnesque eam te. Et natum mucius tamquam vel, ea dolorem volumus deterruisset nec. Graeci mentitum sea an, eu prima elaboraret est.
- icon: fa fa-github
description: An eripuit phaedrum qui, nec facer splendide ex, vel ea assum facilisi convenire. Te his neglegentur consectetuer.
- icon: fa fa-github
description: An alii quot tantas eum, doming platonem persecuti mea et, vim perpetua cotidieque delicatissimi in.
- icon: fa fa-globe
description: Vim an case vidit sententiae, est at euismod laboramus efficiantur. Ei sit brute lorem, ea eam timeam viderer aliquid, cu integre omittam moderatius quo.
- icon: fa fa-globe
description: Dicta causae meliore ex vel, in vix erant integre petentium. Vix ei nisl scripta recusabo, eam doming blandit facilisis.
- icon: fa fa-cog
description: Inermis recusabo elaboraret mea et, dicat neglegentur vim te. Nec et sanctus scriptorem, usu ex sapientem gubergren. Tamquam admodum ei usu.
- icon: fa fa-cog
description: Essent putant indoctum sed in, reprimique persequeris neglegentur te quo. Nam rebum tractatos partiendo at, debet ubique oporteat ut his.

View File

@ -0,0 +1,15 @@
<section id="projects">
<div class="container">
<h3>{{ .Site.Data.projects.name }}</h3>
<div class="panel panel-default">
<div class="panel-body">
{{ range $i, $el := .Site.Data.projects.source }}
<h5>
<i class="{{ .icon }}"></i>&nbsp;&nbsp;
<strong><a href="#">Project {{ add $i 1 }}</a></strong>&nbsp;-&nbsp;{{ $el.description }}
</h5>
{{ end }}
</div>
</div>
</div>
</section>

View File

@ -5,7 +5,7 @@
<!-- Header -->
{{ partial "header" . }}
{{ if isset .Params "showpagemeta" }}
{{ .Content }}
{{ .Render "projects" }}
{{ else }}
<div class="container">
<div class="blog-post">