diff options
author | Crt Mori <crt.mori@gmail.com> | 2021-03-20 13:52:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 13:52:23 +0300 |
commit | 48159c6b4d5be773e0958ca6708b9f686d4e2029 (patch) | |
tree | f521d140a3a3c4c337d9364745272b86ee9f5f95 /layouts | |
parent | f56393304395e9f16536676e7d722647601bf919 (diff) |
Add option to display project_timeframe to the project pages and home page (#289)
* Add project_timeline to the project template
Project timeline is sometimes very important aspect of your project as
it shows that you have been working on it for some time. This adds the
feature to the template, but only uses it when it is defined.
* Add description of a new feature to README
* Apply suggestions from code review
Co-authored-by: Victoria Drake <24644237+victoriadrake@users.noreply.github.com>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/home/projects.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index c62c40d..ea85a4d 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -34,6 +34,9 @@ <a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}> {{ .Title | markdownify }} </a> + {{ if .Params.project_timeframe }} + <p class="fa-xs">{{ .Params.project_timeframe }}</p> + {{ end }} </div> </div> </div> @@ -58,7 +61,9 @@ <p class="modal-card-title has-text-centered">{{ . }}</p> </header> {{ end }} - + {{ if .Params.project_timeframe }} + <p class="fa-xs">{{ .Params.project_timeframe }}</p> + {{ end }} {{ with .Resources.ByType "image" }} {{ $moreThenOneImage := gt (len .) 1 }} {{ if $moreThenOneImage }} |