diff --git a/.github/banner.png b/.github/banner.png new file mode 100644 index 00000000..96e325a0 Binary files /dev/null and b/.github/banner.png differ diff --git a/README.md b/README.md index 2621cd11..4df36590 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Build Harness [![Build Status](https://github.com/cloudposse/build-harness/workflows/docker/badge.svg?branch=master)](https://github.com/cloudposse/build-harness/actions?query=workflow%3Adocker) [![Latest Release](https://img.shields.io/github/release/cloudposse/build-harness.svg)](https://github.com/cloudposse/build-harness/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) +[![Project Banner](.github/banner.png?raw=true)](https://cpco.io/homepage) + [![Build Status](https://github.com/cloudposse/build-harness/workflows/docker/badge.svg?branch=master)](https://github.com/cloudposse/build-harness/actions?query=workflow%3Adocker) [![Latest Release](https://img.shields.io/github/release/cloudposse/build-harness.svg)](https://github.com/cloudposse/build-harness/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) diff --git a/README.yaml b/README.yaml index 60bec5f4..27dde957 100644 --- a/README.yaml +++ b/README.yaml @@ -4,7 +4,7 @@ # # Name of this project -name: Build Harness +name: 🧗 Build Harness # Logo for this project #logo: docs/logo.png diff --git a/templates/README.md.gotmpl b/templates/README.md.gotmpl index e56b8144..e0b10f61 100644 --- a/templates/README.md.gotmpl +++ b/templates/README.md.gotmpl @@ -5,11 +5,15 @@ {{- if $deprecated }} # (deprecated) {{(ds "config").name}}{{ if gt (len (ds "config").name) 23 }}{{ print "\n\n" }}{{ end }} {{- else }} +{{ if (file.Exists ".github/banner.png") -}} +[![Project Banner](.github/banner.png?raw=true)](https://cpco.io/homepage) +{{ else -}} # {{(ds "config").name}}{{ if gt (len (ds "config").name) 34 }}{{ print "\n\n" }}{{ end }} +{{- end -}} {{- end }} {{- if $deprecated }}[![deprecated](https://img.shields.io/badge/lifecycle-deprecated-critical)](#deprecated){{ end }} - {{- if has (ds "config") "badges" }} - {{- range $badge := (ds "config").badges }} + {{- if has (ds "config") "badges" -}} + {{- range $badge := (ds "config").badges -}} {{- printf " [![%s](%s)](%s)" $badge.name $badge.image $badge.url }} {{- end }} {{- end }}