Skip to content

Commit

Permalink
set coveralls button on
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Aug 5, 2020
1 parent 7ab0c71 commit 897d891
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ home = [ "HTML", "RSS", "JSON"]
[params.sidebar]
github_button = true
travis_button = true
codecov_button = true
coveralls_button = true
gratipay = ""
show_relations = true

Expand Down
25 changes: 14 additions & 11 deletions layouts/partials/logo.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
<a id="logo" href="/">
<img
src="/{{.Site.Params.logo}}"
alt="{{.Site.Params.name}} logo" /><br />
<img src="/{{.Site.Params.logo}}" alt="{{.Site.Params.name}} logo" /><br />
<b>{{.Site.Params.name}}</b>
</a>
<p>
{{ if .Site.Params.github_user | and .Site.Params.github_repo -}}
{{ $path := printf "%s/%s" .Site.Params.github_user .Site.Params.github_repo }}

{{ if .Site.Params.sidebar.github_button -}}
<iframe src="https://ghbtns.com/github-btn.html?user={{ .Site.Params.github_user }}&repo={{ .Site.Params.github_repo }}&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
<iframe
src="https://ghbtns.com/github-btn.html?user={{ .Site.Params.github_user }}&repo={{ .Site.Params.github_repo }}&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
{{- end }}

{{ if .Site.Params.sidebar.travis_button -}}
<a href="https://travis-ci.org/{{ $path }}">
<img
alt="https://secure.travis-ci.org/{{ $path }}.svg?branch=master"
src="https://secure.travis-ci.org/{{ $path }}.svg?branch=master"/>
<img alt="https://secure.travis-ci.org/{{ $path }}.svg?branch=master"
src="https://secure.travis-ci.org/{{ $path }}.svg?branch=master" />
</a>
{{- end }}

{{ if .Site.Params.sidebar.codecov_button -}}
<a href="https://codecov.io/github/{{ $path }}">
<img
alt="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master"
src="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master"/>
<img alt="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master"
src="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master" />
</a>
{{- end }}

{{ if .Site.Params.sidebar.coveralls_button -}}
<a href='https://coveralls.io/github/{{ $path }}?branch=master'><img
src='https://coveralls.io/repos/github/{{ $path }}/badge.svg?branch=master' alt='Coverage Status' /></a>
{{- end }}


{{- end }}
</p>
<p>{{.Site.Params.description}}</p>
Expand Down

0 comments on commit 897d891

Please sign in to comment.