Skip to content

Latest commit

 

History

History
132 lines (126 loc) · 3.91 KB

README.md

File metadata and controls

132 lines (126 loc) · 3.91 KB

✒️ Recent posts

This plugin displays recent articles from a specified external source.

Supported features
→ Full specification
📗 Classic template 📒 Markdown template 📘 Repository template
👤 Users 👥 Organizations 📓 Repositories
No tokens are required for this plugin
Latest posts width description and cover image
Latest posts

➡️ Available options

TypeDescription
plugin_posts

Enable posts plugin

type: boolean
default: no
plugin_posts_source

External source

type: string
allowed values:
  • dev.to
  • hashnode
plugin_posts_descriptions

Toggle posts descriptions display

type: boolean
default: no
plugin_posts_covers

Toggle posts cover images display

type: boolean
default: no
plugin_posts_limit

Display limit

type: number (1 ≤ 𝑥 ≤ 30)
default: 4
plugin_posts_user

External source username

⏯️ Cannot be preset
type: string
default: → User login

ℹ️ Examples workflows

name: Recent posts
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.posts.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ""
  plugin_posts: yes
  plugin_posts_source: dev.to
name: Recent posts with descriptions and cover images
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.posts.full.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ""
  plugin_posts: yes
  plugin_posts_source: dev.to
  plugin_posts_limit: 2
  plugin_posts_descriptions: yes
  plugin_posts_covers: yes