Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Mumi and minimal blog engine.
Thin, fast and extendable.
# use yarn
yarn add mumimal
# or use npm
npm install mumimal
# create post file
mumimal --post "My new post title"
# build blog
mumimal
# or, build with custom config
mumimal --config config.js
const { mumimal } = require('mumimal');
const config = {
//...
}
mumimal(config).then(...)
Project structure should look like
├── layouts/
│ ├── index.ejs
│ └── post.ejs
├── posts/
│ ├── 2020-02-02-my-post-1.md
│ └── 2020-03-24-my-post-2.md
├── config.js
├── dist/
└── static/
static
would be copy to dist
.See example project.
When rendering index, there are: site
(site config) and
site
: site configposts
: meta data of each postsFor example, you can use them like
<% posts.forEach(post => { %>
<header>
<h3>
<%= post.dateStr %>
</h3>
<h2>
<a href="<%= post.link %>">
<%= post.title %>
</a>
</h2>
</header>
<% }) %>
To read post content when building index:
<% const { content } = funcs.readPostSrc(post.postName) %>
When rendering index, there are:
site
: site configmeta
: meta data of this postcontent
: html converted from markdownFor example, you can use them like
<% posts.forEach(post => { %>
<head>
<title>Site Name | <%= meta.title %></title>
</head>
<body>
<div class="tags"><%= meta.tags.join(', ') %></dib>
<article>
<%- content %>
</article>
</body>
And post markdown should in this format
---
title: My Post Title
tags: tag1 tag2
---
Text content in [markdown](/markdown.html)
Use mumimal --config config.js
to apply custom config.
// example config.js
const config = {
site: {
url: 'https://github.com/yourName/',
title: 'My Cool Blog'
},
feed: {
title: 'My Cool Blog',
description: 'This is an apple',
image: `https://somewhere.example.com/logo.png`,
categories: ["Tech", "Node.js"]
},
build: {
minify: true,
minifyOptions: {},
}
afterBuild: (context) => {
console.log(context)
}
}
module.exports = { config }
Also known as "姆咪" (Chinese) and "ムミ" (Japanese), .
A characters of Battle Girl High School (バトガ).
Her name is Michelle Watagi (綿木 ミシェル). But in Taiwan, we all call her Mumi.
FAQs
Mumimal is a mumi minimal blog generator.
We found that mumimal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.