I hereby claim:
- I am elmasse on github.
- I am elmasse (https://keybase.io/elmasse) on keybase.
- I have a public key ASBwebycwQP2p7sgVTrnn8kRBI-Ec4oCraSrIxbv9u_kNQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
//nextein-example/components/post-list-entry.js | |
import React from 'react' | |
import Link from 'nextein/link' | |
import { Content } from 'nextein/post' | |
const countWords = (s) => { | |
s = s.replace(/(^\s*)|(\s*$)/gi,"");//exclude start and end white-space | |
s = s.replace(/[ ]{2,}/gi," ");//2 or more space to 1 | |
s = s.replace(/\n /,"\n"); // exclude newline with a start spacing |
const fetch = require('isomorphic-fetch') | |
const fm = require('frontmatter') | |
const { readFileSync, statSync } = require('fs') | |
const { resolve, basename, extname, relative, dirname, sep } = require('path') | |
const pathToRegEx = require('path-to-regexp') | |
const parser = require('./parser') | |
module.exports = { | |
source : async ({ extension = 'md', entriesDir = ['posts'], remark = [], rehype = [] } = {}) => { |
{ | |
"presets": ["env"] | |
} |