npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-generator-multiple-podcast-enhanced

v1.0.3

Published

A Hexo generator that can generate multiple podcasts per blog

Downloads

7

Readme

hexo-generator-multiple-podcast

A generator for Hexo that can produce more than one podcast per blog, based on presence of media files, categories, or tags

This is very much beta software, and it's not even quite feature-complete. Use at your own risk, YMMV, etc.

Configuration Quick Reference

In _config.yml

podcasts:
- feed:
    path: foot-cast.xml # relative to site root
    title: My Football Podcast
    subtitle: My ramblings about football
    image: img/podcast/FootCast.jpg # relative to config.url + config.root
    non_feed_url: category/footcast/ # the non-feed source for this content
    category: FootCast # see below for tag-based feed
    limit: 100 # how many episodes will be in the feed, max
    content: true # whether to include text content along with the podcast; see note below
    content_encoded: true # same as above, but includes the complete encoded text of the post; see note below
    itunes:
      summary: I am right about football; if you agree, you are right too.
      author: Me, Myself, and I # defaults to config.author
      owner: Me, Myself, and I 
      email: [email protected] # e-mail from which iTunes podcast is registered
      category: Sports # the category from iTunes; make sure to use their values
      subcategory: Football # same as above
      explicit: clean # valid values are yes, no, and clean
    media_base_url: http://myhostingprovider.com/mysubdir/ # why repeat that in every post?
    default_media_type: audio/mpeg # can be overridden in post
- feed:
    path: basket-cast.xml # relative to site root
    title: My Basketball Podcast
    subtitle: My ramblings about basketball
    image: img/podcast/BasketCast.jpg # relative to config.url + config.root
    non_feed_url: tag/basketcast/ # the non-feed source for this content
    tag: basketcast # see above for category-based feed
    limit: 20 # how many episodes will be in the feed, max
    itunes:
      summary: I am right about basketball too
      author: Me, Myself, and I # defaults to config.author
      owner: Me, Myself, and I 
      email: [email protected] # e-mail from which iTunes podcast is registered
      category: Sports # the category from iTunes; make sure to use their values
      subcategory: Basketball # same as above
      explicit: clean # valid values are yes, no, and clean
    media_base_url: http://myhostingprovider.com/myothersubdir/
    default_media_type: audio/mpeg # can be overridden in post

Content Note: If you want control over the content or encoded content placed into the podcast feed, you can put a script file in the scripts directory of your site, and use it to set content or content_encoded to a function that receives the post and returns the content. For example, if I wanted to add "BOO-YAH!" to the content for BasketCast (the second feed in the above example), and I wanted it in bold type for the people who viewed encoded content, I could do the following:

hexo.config.podcasts[1].feed.content = post =>
  `${post.content} - BOO-YAH!`
hexo.config.podcasts[1].feed.content_encoded = post =>
  `${post.content} - <strong>BOO-YAH!</strong>`

In each post:

---
title: The Next Episode
date: 2017-04-22 12:34:56
# categories: or tags:, as appropriate
media: episode-file-name.mp3 # or a complete path; required (will be appended to feed:media_base_url)
length: 3443223 # size of the file in bytes; required
duration: "14:38" # HH:MM:SS or MM:SS; required
subtitle: Soon to the be the previous episode # optional (defaults to empty)
media_type: audio/mpeg # MIME type of the media file; optional (defaults to feed:default_media_type)
author: Me # optional (defaults to feed:itunes:author)
image: next.png # for the episode; optional (defaults to feed:image)
explicit: clean # optional (defaults to feed:itunes:explicit)
chapters: # optional, excluded from feed if absent
- [ "00:00:00.000", "Chapter 1" ]
- [ "00:05:00.000", "Five Minutes In" ]
# and so on
---