diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/partials/home/projects.html | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -138,8 +138,11 @@ resources: - src: NameOfYourImage.jpg params: weight: -100 +project_timeframe: "June-December" ``` +You can add a `project_timeframe` parameter to the frontmatter of your project to optionally display an arbitrary string on the homepage and modal. + ## Blog section Create an index file for the blog: 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 }} |