Skip to content

Releases: slybridges/kiss

v0.8.1

19 Apr 11:43
Compare
Choose a tag to compare
  • 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

11 Apr 12:16
Compare
Choose a tag to compare
  • [NEW]: Add new original image format and make it the default in the config. When using orignal as one of the image.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 the id passed in the current lang or the permalink of the page with that id in the default lang otherwise. The default lang is defined in site.lang or site.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 not exit(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 the imageContextTransformer
  • [FIX]: Loading orders of files so that the data-cascade works as intended. index.* files are loaded first, then all others files and finally post.* 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

29 Mar 11:25
Compare
Choose a tag to compare
  • [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 page context. Example: @data:site.signupURL will be replaced by https://app.example.org/signup if that's the value you set in your context.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 full permalink
  • [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 with computeDescription() 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 earliest created date of any of their descendants
  • [IMPROVEMENT]: Improve computeModified() for collections to take the latest modified date of any of their descendants
  • [IMPROVEMENT]: Only data set in index.* files are used during the data cascade. Data from other files and especially post.* 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 your post.* 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

09 Sep 08:45
Compare
Choose a tag to compare
  • [CHORE]: update dependencies to get rid of security warnings

Full Changelog: 0.6.4...0.6.6

v0.6.4

16 Jul 09:05
Compare
Choose a tag to compare
  • [FIX]: update dependencies to get rid of security warnings

v0.6.3

21 Feb 13:15
Compare
Choose a tag to compare
  • [NEW]: add baseTitle to _meta during collection computation
  • [IMPROVEMENT]: Use baseTitle in computeTitle() when available

v0.6.2

20 Feb 11:42
Compare
Choose a tag to compare
  • [FIX]: computeIterableCollectionDataView(): collection names were not properly computed

v0.6.1

20 Feb 09:53
Compare
Choose a tag to compare
  • [NEW]: computeImage(): add support for cover attribute to override the default image
  • [CHORE]: bump dependencies

v0.6.0

06 Jan 12:47
Compare
Choose a tag to compare
  • [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

02 Dec 08:16
Compare
Choose a tag to compare
  • [CHORE]: bump dependencies