Releases: slybridges/kiss
Releases · slybridges/kiss
v0.8.1
- IMPROVEMENT: allow author attribute to be a string instead of only an object
- FIX: Revert copying CSS classes to
Full Changelog: 0.8.0...0.8.1
v0.8.0
- [NEW]: Add new
original
image format and make it the default in the config. When usingorignal
as one of theimage.formats
options in the config, kiss will keep the original format when generating derivative images. - [NEW]: Add new
@id
attribute. This attribute will return the permalink of the page with theid
passed in the currentlang
or the permalink of the page with thatid
in the default lang otherwise. The defaultlang
is defined insite.lang
orsite.locale[0]
. This is useful when only a subset of your pages are translated. You can also use@id:my-page-id:fallback-id
or@id:my-page-id:fallback-id:lang
, although you shouln't need that often. Read the source, Luke. - [NEW]: Add
--unsafe-build
or-u
build option in CLI. Adding this flag with notexit(1)
if there are errors during build - [IMPROVEMENT]: Continue transforming the rest of images even if an error is thrown for one of them
- [IMPROVEMENT]: Improve the atAttribute matching regexp to stop if it finds a
#
so that you can include permalinks that are followed by an anchor link - [IMPROVEMENT]: Copy class attribute attached to an
<img>
when it is wrapped into a<picture>
by theimageContextTransformer
- [FIX]: Loading orders of files so that the data-cascade works as intended.
index.*
files are loaded first, then all others files and finallypost.*
files - [FIX]: Revert including gifs in the default image loader config as they would be resized into static images by default. Gifs can be loaded by the static file loader instead
- [FIX]: Fix computing permalinks with custom slug on directory posts that would not add a terminal
/
- [CHORE]: various refactors and under-the-hood improvements
v0.7.0
- [NEW]: Introducing new @ attributes concept. @ attributes are a spacial notation that can be used anywhere in your content (in markdown, html, json etc) and also in your templates to reference other pages or pieces of data. There are 3 @ attributes available today:
@permalink:
checks that a permalink exist and throws an error at build time if not. It will replace the @ attribute with the permalink value. Example:@permalink:/contact-us
with be replaced with/contact-us
after checking that there is a page with that permalink in the build. Great to ensure you don't have broken internal links.@file:
is replaced by the permalink of the file it references. Example:@file:/blog/hello.md
will be replaced by/blog/hello-world
if that is the permalink for this file. This allows you to change the permalinks and slugs of your pages individually without breaking your internal links. When used in content files, your@file
value can be either an absolute or a relative path. When used in your templates,@file
must always be absolute.@data:
is replaced by the value of the data in the pagecontext
. Example:@data:site.signupURL
will be replaced byhttps://app.example.org/signup
if that's the value you set in yourcontext.site
object for this key. You can reference any value from the page context after the data cascade was performed, ensuring you get the most up-to-date values.
- [NEW]:
slug
data attribute on a page to customize the slug of the page. When present,slug
will be used to compute the fullpermalink
- [NEW]:
excludeFromWrite
data attribute on a page will skip writing the file to disk if truthy - [NEW]:
excludeFromSitemap
data attribute on a page will skip adding the page to sitemap and RSS feed - [NEW]: Override the default template names to use in
config.templates
:
config.templates = {
post: 'article.html', // default to post.njk
collection: 'index.html', // default to collection.njk
default: 'base.html', // default to default.njk
}
- [NEW]: Add new
config.defaults.descriptionLength
to customize the default length of description. This only affects descriptions that are automatically computed withcomputeDescription()
during the data cascade and not hardcoded descriptions. Defaults to 160 characters. - [IMPROVEMENT]: Improve
computeDesccription()
to remove newlines and consecutive spaces - [IMPROVEMENT]: Improve
computeCreated()
for collections to take the earliestcreated
date of any of their descendants - [IMPROVEMENT]: Improve
computeModified()
for collections to take the latestmodified
date of any of their descendants - [IMPROVEMENT]: Only data set in
index.*
files are used during the data cascade. Data from other files and especiallypost.*
files are not used in the data cascade. This way, you don't need to use_no_cascade
postfix on your attributes any longer. Simply move those attributes to yourpost.*
files. - [FIX]: Don't optimize and rezise images if source is a URL
- [FIX]: Some data cascade issues in some edge case situations
- [CHORE]: Bump dependencies
v0.6.6
- [CHORE]: update dependencies to get rid of security warnings
Full Changelog: 0.6.4...0.6.6
v0.6.4
- [FIX]: update dependencies to get rid of security warnings
v0.6.3
- [NEW]: add
baseTitle
to_meta
during collection computation - [IMPROVEMENT]: Use
baseTitle
incomputeTitle()
when available
v0.6.2
- [FIX]:
computeIterableCollectionDataView()
: collection names were not properly computed
v0.6.1
- [NEW]:
computeImage()
: add support forcover
attribute to override the default image - [CHORE]: bump dependencies
v0.6.0
- [NEW]: localize date locale format based on kiss
locale
setting - [NEW]: add
computeIterableCollectionDataView()
to make it easier to build navigations based on collections other than folder hierarchy - [IMPROVEMENT]: allow to have images relative to posts with custom permalinks
- [FIX]: manage exceptions raised during data and data views computations so that it doesn't crash the build watching process anymore
v0.5.6
- [CHORE]: bump dependencies