Skip to content

Can repositories plugin not be used within markdown template? #1194

Answered by lowlighter
Andre601 asked this question in Q&A
Discussion options

You must be logged in to vote

You also need to tell the embed function that you want to use the repositories plugin by passing the flag too in its option like below:

- {%- await embed(`stats-starred-repo`, {repositories_starred: 3}) %}
+ {%- await embed(`stats-starred-repo`, {repositories: true, repositories_starred: 3}) %}

- {%- await embed(`stats-random-repo`, {repositories_random: 3}) %}
+ {%- await embed(`stats-random-repo`, {repositories: true, repositories_random: 3}) %}

Should do the trick 👍

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andre601
Comment options

@lowlighter
Comment options

Answer selected by Andre601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment