diff options
author | Jerry Kiely <jerry@cowboysmall.com> | 2020-01-09 22:24:46 +0300 |
---|---|---|
committer | Jerry Kiely <jerry@cowboysmall.com> | 2020-01-09 22:24:46 +0300 |
commit | 1ae4f832547c6950f5bb4de5603c4eec75b6164b (patch) | |
tree | c8b6701530ba17ffd19f96dfbf7909a55531e380 | |
parent | 61e18d554d09a5adc0cbddd899bdf9f425539fbd (diff) |
cleaned up - removed an unnecessary image
-rw-r--r-- | exampleSite/config.toml | 26 | ||||
-rw-r--r-- | layouts/partials/projects.html | 2 |
2 files changed, 18 insertions, 10 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b04105b..fd6bb8d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -79,63 +79,71 @@ googleAnalytics = "UA-XXXXXXX-Y" [[params.projects.sections]] # title = "Section 1" + [[params.projects.sections.rows]] # title = "Section 1, Row 1" + [[params.projects.sections.rows.items]] title = "Card title 1" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections.rows.items]] title = "Card title 2" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus totam ut praesentium aut." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections.rows.items]] title = "Card title 3" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque." url = "#" - image = "300x200.png" + # image = "image.png" + [[params.projects.sections.rows]] # title = "Section 1, Row 2" + [[params.projects.sections.rows.items]] title = "Card title 4" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections.rows.items]] title = "Card title 5" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus totam ut praesentium aut." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections]] # title = "Section 2" + [[params.projects.sections.rows]] # title = "Section 2, Row 1" + [[params.projects.sections.rows.items]] title = "Card title 1" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections.rows.items]] title = "Card title 2" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus totam ut praesentium aut." url = "#" - image = "300x200.png" + # image = "image.png" [[params.projects.sections.rows.items]] title = "Card title 3" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque." url = "#" - image = "300x200.png" + # image = "image.png" + [[params.projects.sections.rows]] # title = "Section 2, Row 2" + [[params.projects.sections.rows.items]] title = "Card title 4" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente esse necessitatibus neque sequi doloribus." url = "#" - image = "300x200.png" + # image = "image.png" diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html index 5f0c0b7..c6ffa64 100644 --- a/layouts/partials/projects.html +++ b/layouts/partials/projects.html @@ -19,7 +19,7 @@ {{ range .items }} <div class="col-md-4 mb-5"> <div class="card h-100"> - <img class="card-img-top" src="{{ .Site.BaseURL }}assets/images/{{ .image }}" alt=""> + <img class="card-img-top" src="{{ if .image }}{{ .Site.BaseURL }}assets/images/{{ .image }}{{ else }}http://placehold.it/300x200{{ end }}" alt=""> <div class="card-body"> <h4 class="card-title">{{ .title }}</h4> <p class="card-text">{{ .description }}</p> |