hexo-shortcodes rss reader

Hexo shortcode rss reader

display any rss to your hexo site.

1
2
3
{% rssreader [url] [limit:n] [debug:[true|false]] [randomize:[true|false]] %}
<!-- html result formats each item -->
{% endrssreader %}

Options

rss reader options.

option default description
limit 3 maximum items to display
debug false debug item
randomize false sort items randomly instead reading from last published date

Formats

format object parsed from rss items.

sign description
$title item title
$link item link
$content item description
$image item thumbnail
$pubDate item date published
$author item author
$summary item summary

Debug Item Object

if you don’t know what is your rss object key, you can debug your item object with bellow shortcode.

when you done debugging, remove debug option.

1
{% rssreader https://www.webmanajemen.com/rss.xml debug:true %}{% endrssreader %}

sample result from https://www.webmanajemen.com/rss.xml

[
  "title",
  "link",
  "pubDate",
  "content:encoded",
  "content:encodedSnippet",
  "comments",
  "content",
  "contentSnippet",
  "guid",
  "categories",
  "isoDate"
]

Example

1
2
3
4
5
6
7
8
9
10
{% rssreader https://www.webmanajemen.com/rss.xml limit:10 %}
<div style="margin-bottom: 7px; padding: 7px">
<div style="display: flex">
<div>$image</div>
<div><h2>$title</h2></div>
</div>
<p>$content</p>
<a href="$link" rel="follow">Read More</a>
</div>
{% endrssreader %}

TypeScript equivalent .NETs System.Random

A TypeScript port of .NETs System.Random

Read More

How to test render custom tag on HexoJS ?

How to test render custom tag on HexoJS ? QA original disscussion at https://github.com/orgs/hexojs/discussions/5203 I was created my plugin custom shortcode. how to test render single post with plugin enabled ? i was used process.cwd = => __dirname;import Hexo from hexo;import path from pa

Read More

rollback commit github

rollback commit github Rogue Coder? Working alone and just want to do well? Follow the steps below. These steps have worked reliably for me and many others over the years. Collaborate with others? Git is complicated. Please read the comments below this answer, consider other answers, and discuss wit

Read More

remove files from git history for specific size

remove files from git history for specific size delete big files from git history example deleting files more than 100Mb bfg --strip-blobs-bigger-than 100M . clean old logs before push git reflog expire --expire=now --all git gc --prune=now --aggressive push git push

Read More

removes node_modules from git history

removes node_modules from git history WARNING: git filter-branch is no longer officially recommended. WARNING no longer officially recommended The official recommendation is to use git-filter-repo. git-filter-repo see Andr Anjos answer for details. Andr Anjos answer for details If you are here

Read More

npm upgrade failed err code EEXIST

How to fix upgrade npm ERR code EEXIST in nodejs

Read More

Conventional Commit Messages

Github Conventional Commit Messages

Read More

Bug Report Chimeraland v2.0.2.117

Bug Report Chimeraland v2.0.2.117 Chimeraland v2.0.2.117 - Bug Report List of bugs, chimeraland v2.0.2.117. Broken display of weapon stats and armor sets Basic display stats got broken, sample list below: Tranquil fan Heavy Sword Many item names have been changed Many items name got changed, sampl

Read More

How to setup jest typescript and code runner in vscode

How to setup jest typescript and code runner in vscode How to setup jest typescript with code runner in vscode with this technique you can directly run test single file in vscode without typings manually in terminal, see below screenshot Requirements install vscode code-runneroptional install vsco

Read More

Monster mamba

Monster mamba mamba Information from Chimeralandmamba default attribute GRADEAttackHealth Point HPDefenseDelicacies/Tasty for mambaGalleries for mamba mamba Information from Chimeraland mamba default attribute GRADEAttackHealth Point HPDefense mamba GRADEAttackHealth Point HPDefense GRADE Att

Read More
avatar
Dimas Lanjaka (L3n4r0x)
All in one collection shortcodes for hexo
Follow Me
Announcement
This is my Blog
Recent Post
Info
Article :
0
UV :
PV :
Last Push :