Permalink
Browse files

🐹 Added proper projects rendering

  • Loading branch information...
nurlansu committed Feb 20, 2017
1 parent cd4131a commit d88e0927e2b0d7d7e2a12690960e2e3fed72f5dd
Showing with 49 additions and 50 deletions.
  1. +11 βˆ’2 README.md
  2. +0 βˆ’47 exampleSite/content/projects.md
  3. +22 βˆ’0 exampleSite/data/projects.yml
  4. +15 βˆ’0 layouts/_default/projects.html
  5. +1 βˆ’1 layouts/_default/single.html
View
@@ -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
@@ -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>
-
@@ -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.
@@ -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>
@@ -5,7 +5,7 @@
<!-- Header -->
{{ partial "header" . }}
{{ if isset .Params "showpagemeta" }}
- {{ .Content }}
+ {{ .Render "projects" }}
{{ else }}
<div class="container">
<div class="blog-post">

0 comments on commit d88e092

Please sign in to comment.