diff --git a/README.md b/README.md index 1ad528e..e048001 100644 --- a/README.md +++ b/README.md @@ -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 @@ {{ .Title | markdownify }} + {{ if .Params.project_timeframe }} +
{{ .Params.project_timeframe }}
+ {{ end }} @@ -58,7 +61,9 @@{{ . }}
{{ end }} - + {{ if .Params.project_timeframe }} +{{ .Params.project_timeframe }}
+ {{ end }} {{ with .Resources.ByType "image" }} {{ $moreThenOneImage := gt (len .) 1 }} {{ if $moreThenOneImage }}