repo_description: Coding articles to level up your development skills
repo_topics: astro awesome-list css education es6-javascript git html javascript learn-to-code learning-resources nodejs programming snippets
code: import Serializer from '#src/core/serializer.js';
  
  export default class SnippetContextSerializer extends Serializer {
    static {
      Serializer.prepare(this, [
        'title',
        ['content', 'enrichedContent'],
        'slug',
        ['date', 'dateFormatted'],
        ['dateTime', 'dateMachineFormatted'],
        ['tags', 'formattedTags'],
        ['cover', object => object.coverUrlFullSize],
        ['coverSrcset', object => object.coverSrcsetFullSize],
        'githubUrl',
        'tableOfContents',
      ]);
    }
  }
  