From d88e0927e2b0d7d7e2a12690960e2e3fed72f5dd Mon Sep 17 00:00:00 2001 From: Nurlan Su Date: Mon, 20 Feb 2017 01:49:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B9=20=20Added=20proper=20projects=20r?= =?UTF-8?q?endering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 +++++++-- exampleSite/content/projects.md | 47 --------------------------------- exampleSite/data/projects.yml | 22 +++++++++++++++ layouts/_default/projects.html | 15 +++++++++++ layouts/_default/single.html | 2 +- 5 files changed, 49 insertions(+), 50 deletions(-) create mode 100644 exampleSite/data/projects.yml create mode 100644 layouts/_default/projects.html 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 --- - -
-
-

Projects

-
-
-
-   Project 1 - - 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. -
-
-   Project 2 - - An eripuit phaedrum qui, nec facer splendide ex, vel ea assum facilisi convenire. - Te his neglegentur consectetuer. -
-
-   Project 3 - - An alii quot tantas eum, doming platonem persecuti mea et, vim perpetua cotidieque delicatissimi in. -
-
-   Project 4 - - Vim an case vidit sententiae, est at euismod laboramus efficiantur. Ei sit brute lorem, - ea eam timeam viderer aliquid, cu integre omittam moderatius quo. -
-
-   Project 5 - - Dicta causae meliore ex vel, in vix erant integre petentium. Vix ei nisl scripta recusabo, - eam doming blandit facilisis. -
-
-   Project 6 - - Inermis recusabo elaboraret mea et, dicat neglegentur vim te. Nec et sanctus scriptorem, - usu ex sapientem gubergren. Tamquam admodum ei usu. -
-
-   Project 7 - - Essent putant indoctum sed in, reprimique persequeris neglegentur te quo. Nam rebum - tractatos partiendo at, debet ubique oporteat ut his. -
- - -
-
-
-
- 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 @@ +
+
+

{{ .Site.Data.projects.name }}

+
+
+ {{ range $i, $el := .Site.Data.projects.source }} +
+    + Project {{ add $i 1 }} - {{ $el.description }} +
+ {{ end }} +
+
+
+
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 @@ {{ partial "header" . }} {{ if isset .Params "showpagemeta" }} - {{ .Content }} + {{ .Render "projects" }} {{ else }}