2.0 KiB
📒 Markdown template example
This is a markdown template example which explain the basic usage of this template.
See rendering of this file here and original template source here.
🈂️ Templating syntax:
- Regular EJS syntax is supported
{{and}}will be interpolated as EJS brackets (syntaxic sugar){%and%}can be used as control statements
- Use metrics.lecoq.io with
config.output=jsonto see available data- You can also use
config_output: jsonin GitHub Actions and/or inspect metrics code to get available data too
- You can also use
- Same formatting helpers available in templates can be used too
I joined GitHub on `{{ f.date(REGISTRATION_DATE, {dateStyle:"short"}) }}`.
I contributed to `{{ REPOSITORIES_CONTRIBUTED_TO }}` repositories and made `{{ COMMITS }}` commits.
<%- await embed({isocalendar:true}) %>
🧩 Plugins
Using markdown plugins
Some plugins have their own markdown version which includes hyperlinks and reduce image overhead.
See compatibility matrix for more informations.
<%- await include(partials/activity.ejs) %>
<%- await include(partials/posts.ejs) %>
<%- await include(partials/rss.ejs) %>
<%- await include(partials/tweets.ejs) %>
<%- await include(partials/topics.ejs) %>
Embedding SVG metrics
You can also generate "on-the-fly" SVGs metrics image using the embed function:
<%- await embed({isocalendar:true, isocalendar_duration:"full-year"}) %>
Available configuration options are mostly the same as action.yml. Note that tokens options must not be passed to this function. These will be automatically passed down when defined in your workflow job.