Skip to content

Commit

Permalink
🐹 Added proper projects rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurlan Su committed Feb 20, 2017
1 parent cd4131a commit d88e092
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 50 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
Expand Down
47 changes: 0 additions & 47 deletions exampleSite/content/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

22 changes: 22 additions & 0 deletions exampleSite/data/projects.yml
Original file line number Diff line number Diff line change
@@ -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.
15 changes: 15 additions & 0 deletions layouts/_default/projects.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- Header -->
{{ partial "header" . }}
{{ if isset .Params "showpagemeta" }}
{{ .Content }}
{{ .Render "projects" }}
{{ else }}
<div class="container">
<div class="blog-post">
Expand Down

0 comments on commit d88e092

Please sign in to comment.