Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nurlansu/hugo-sustain.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNurlan Su <nurlansu@users.noreply.github.com>2017-02-20 03:49:02 +0300
committerNurlan Su <nurlansu@users.noreply.github.com>2017-02-20 03:49:02 +0300
commitd88e0927e2b0d7d7e2a12690960e2e3fed72f5dd (patch)
tree89a53ae6250ba9ceaa2ff6b85fd7db0f6ea53b07
parentcd4131a09a28ead859ebb91ec59cce1271c589cf (diff)
🐹 Added proper projects rendering1.0.1
-rw-r--r--README.md13
-rw-r--r--exampleSite/content/projects.md47
-rw-r--r--exampleSite/data/projects.yml22
-rw-r--r--layouts/_default/projects.html15
-rw-r--r--layouts/_default/single.html2
5 files changed, 49 insertions, 50 deletions
diff --git a/README.md b/README.md
index eeb9361..b604f27 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/exampleSite/content/projects.md b/exampleSite/content/projects.md
index ac1ed4c..5816e3d 100644
--- a/exampleSite/content/projects.md
+++ b/exampleSite/content/projects.md
@@ -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>
-
diff --git a/exampleSite/data/projects.yml b/exampleSite/data/projects.yml
new file mode 100644
index 0000000..c24bd39
--- /dev/null
+++ b/exampleSite/data/projects.yml
@@ -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.
diff --git a/layouts/_default/projects.html b/layouts/_default/projects.html
new file mode 100644
index 0000000..fef0617
--- /dev/null
+++ b/layouts/_default/projects.html
@@ -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>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6d9fea9..787ca89 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,7 +5,7 @@
<!-- Header -->
{{ partial "header" . }}
{{ if isset .Params "showpagemeta" }}
- {{ .Content }}
+ {{ .Render "projects" }}
{{ else }}
<div class="container">
<div class="blog-post">