<commit_before>import metalsmith from "metalsmith";
import webpack from "metalsmith-webpack";
import reactTemplate from "metalsmith-react-templates";
import excerpts from "metalsmith-excerpts";
import collections from "metalsmith-collections";
import branch from "metalsmith-branch";
import permalinks from "metalsmith-permalinks";

metalsmith(__dirname)
  .metadata({
    site: {
      title: "公民學院",
      url: "http://blog.citizenedu.tw/",
      description: "沃草公民學院是為所有人準備的人文學習、討論平台。我們不但小國小民，更要好國好民。",
    }
  })
  .use(collections({
    posts: {
      pattern: "posts/**.html",
      sortBy: "created_at",
      reverse: true,
    },
    columns: {
      pattern: "columns/**.html"
    },
    subjects: {
      pattern: "subjects/**.html"
    },
    tags: {
      pattern: "tags/**.html"
    },
    guide: {
      pattern: "guide/**.html"
    },
    authors: {
      pattern: "authors/**.html"
    }
  }))
  .use(branch("posts/**.html")
    .use(permalinks({
      pattern: "posts/:path",
      relative: false
    }))
  )
  .use(branch("!posts/**.html")
    .use(branch("!index.html")
      .use(permalinks({
        relative: false
      }))
    )
  )
  .use(excerpts())<commit_msg>remove unused guide collection<commit_after>import metalsmith from "metalsmith";
import webpack from "metalsmith-webpack";
import reactTemplate from "metalsmith-react-templates";
import excerpts from "metalsmith-excerpts";
import collections from "metalsmith-collections";
import branch from "metalsmith-branch";
import permalinks from "metalsmith-permalinks";

metalsmith(__dirname)
  .metadata({
    site: {
      title: "公民學院",
      url: "http://blog.citizenedu.tw/",
      description: "沃草公民學院是為所有人準備的人文學習、討論平台。我們不但小國小民，更要好國好民。",
    }
  })
  .use(collections({
    posts: {
      pattern: "posts/**.html",
      sortBy: "created_at",
      reverse: true,
    },
    columns: {
      pattern: "columns/**.html"
    },
    subjects: {
      pattern: "subjects/**.html"
    },
    tags: {
      pattern: "tags/**.html"
    },
    authors: {
      pattern: "authors/**.html"
    }
  }))
  .use(branch("posts/**.html")
    .use(permalinks({
      pattern: "posts/:path",
      relative: false
    }))
  )
  .use(branch("!posts/**.html")
    .use(branch("!index.html")
      .use(permalinks({
        relative: false
      }))
    )
  )
  .use(excerpts())
{'fraction_non_alphanumeric': 0.16680887372013653, 'fraction_numerical': 0.0, 'mean_word_length': 2.7761674718196456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6901086', 'n_tokens_mistral': 881, 'n_tokens_neox': 879, 'n_words': 143}