rsshub
Version:
Make RSS Great Again!
17 lines (16 loc) • 585 B
JavaScript
import { t as parseDate } from "./parse-date-3kcy2Eau.mjs";
//#region lib/routes/everia/article.ts
const loadArticle = (post) => ({
title: post.title.rendered,
description: post.content.rendered,
pubDate: parseDate(post.date_gmt),
link: post.link,
author: post._embedded?.author?.[0]?.name,
category: post._embedded?.["wp:term"]?.flat().map((term) => term.name) ?? []
});
//#endregion
//#region lib/routes/everia/const.ts
const SUB_NAME_PREFIX = "EVERIA.CLUB";
const SUB_URL = "https://everia.club/";
//#endregion
export { SUB_URL as n, loadArticle as r, SUB_NAME_PREFIX as t };