Skip to content

Commit

Permalink
Update template with support for .github/banner.png (#367)
Browse files Browse the repository at this point in the history
* update template with support for banner/image.png

* bump

* bump

* fix whitespace

* bump

* chore: update repo banner image

* bump

* chore: update repo banner image

* regen readme

* bump

* chore: update repo banner image

* bump

* bump

* add banner

* chore: update repo banner image

* bump

* bump

* bump

* Update project name

* bump

* bump

* bump

* bump

* move banner

* bump

* chore: update repo banner image

* bump

* chore: update repo banner image

* bump

* change emoji

* chore: update repo banner image

* bump

* bump

* chore: update repo banner image

* bump

---------

Co-authored-by: screenshot-action 📷 <actions@github.com>
  • Loading branch information
osterman and actions-user authored Jan 19, 2024
1 parent 284d24e commit 896b366
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Binary file added .github/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<!-- markdownlint-disable -->
# Build Harness<a href="https://cpco.io/homepage"><img align="right" src="https://cloudposse.com/logo-300x69.svg" width="150" /></a> [![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)
<!-- markdownlint-restore -->


Expand Down
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Name of this project
name: Build Harness
name: 🧗 Build Harness

# Logo for this project
#logo: docs/logo.png
Expand Down
8 changes: 6 additions & 2 deletions templates/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}<a href="https://cpco.io/homepage"><img align="right" src="https://cloudposse.com/logo-300x69.svg" width="150" /></a>{{ 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 }}
Expand Down

0 comments on commit 896b366

Please sign in to comment.