serum v1.1.0 Release Notes
Release Date: 2019-05-18 // almost 5 years ago-
๐ Fixed
- The development server now quits gracefully when the user sends EOF (Ctrl+D) (Issue #45)
โ Added
๐ Serum now supports themes! Please visit the official website to learn more about Serum themes.
Installer: Added
serum.new.theme
Mix task, which helps you create a new Serum theme project.๐ The following optional callbacks were added for plugins.
processed_pages/1
processed_posts/1
rendering_fragment/2
โ Added
Serum.HtmlTreeHelper
module, which providestraverse/2
andtraverse/3
function. You will find this module useful when you need to manipulate HTML trees from your plugins.
๐ Changed
๐ The behavior of the Table of Contents plugin has slightly changed.
- This plugin no longer prepends a
<a name="...">
tag to each heading tag. Instead, it will use theid
attribute of each one of them. If a tag does not have anid
, it will be set appropriately by the plugin. - The TOC element (
ul.serum-toc
) will also be given an ID (#toc
), so that you can make hyperlinks back to the list.
- This plugin no longer prepends a
Serum now automatically generates an
id
attribute for each HTML heading tag. (by @igalic, Issue #44)- If a heading tag already has an ID, it won't be modified.
- Each ID is generated based on the tag's text content.
- Generated IDs are always unique. If a duplicate ID is to be generated, a number will be appended.