Skip to content

Commit

Permalink
docs(readme): add stargazers URL
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Jan 11, 2024
1 parent 86a6410 commit 10a7098
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
:toc:

:repository-flake-url: github:{repository-path}
:repository-raw: https://github.com/{repository-path}
:repository-star-history-src-dark: https://api.star-history.com/svg?repos={repository-path}&type=Date&theme=dark
:repository-star-history-src-light: https://api.star-history.com/svg?repos={repository-path}&type=Date
:repository: link:https://github.com/{repository-path}
:template-repository-commit-presentation-link: {template-repository}/commit/{template-repository-commit-presentation-hash}

:repository: link:{repository-raw}
:repository-raw-stargazers: {repository-raw}/stargazers

:repository-release-latest: {repository}/releases/latest

== Name
Expand Down Expand Up @@ -184,24 +187,26 @@ link:docs/contributing.adoc[asciidoctor-nix.contributing(7)]
ifdef::env-github[]
[subs=attributes]
++++
<p align="{repository-star-history-align}">
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="{repository-star-history-src-dark}"
/>
<source
media="(prefers-color-scheme: light)"
srcset="{repository-star-history-src-light}"
/>
<img
alt="{repository-star-history-alt}"
src="{repository-star-history-src-dark}"
width="{repository-star-history-width}"
/>
</picture>
</p>
<a href="{repository-raw-stargazers}">
<p align="{repository-star-history-align}">
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="{repository-star-history-src-dark}"
/>
<source
media="(prefers-color-scheme: light)"
srcset="{repository-star-history-src-light}"
/>
<img
alt="{repository-star-history-alt}"
src="{repository-star-history-src-dark}"
width="{repository-star-history-width}"
/>
</picture>
</p>
</a>
++++
endif::[]

0 comments on commit 10a7098

Please sign in to comment.