Skip to content

Files

Latest commit

 

History

History
113 lines (104 loc) · 3.04 KB

README.md

File metadata and controls

113 lines (104 loc) · 3.04 KB

✒️ Recent posts

The recent posts plugin displays recent articles you wrote on an external source, like dev.to.

Latest posts
Latest posts width description and cover image

➡️ Available options

TypeDescription
plugin_posts Display recent posts
type: boolean
default: no
plugin_posts_source Posts external source
type: string
allowed values:
  • dev.to
  • hashnode
plugin_posts_descriptions Display posts descriptions
type: boolean
default: no
plugin_posts_covers Display posts cover images
type: boolean
default: no
plugin_posts_limit Maximum number of posts to display
type: number (1 ≤ 𝑥 ≤ 30)
default: 4
plugin_posts_user Posts external source username
type: string
default: → User login

→ Full specification

ℹ️ 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_descriptions: 'yes'
  plugin_posts_covers: 'yes'