Skip to content

Personal blog about software development, built with Scully (SSG) + esa.io

License

Notifications You must be signed in to change notification settings

mugifly/mugifly.github.io

Repository files navigation

mugifly.github.io

A personal blog about software development built with Scully + esa.io.

https://mugifly.github.io/

Custom plugins for Scully

Full-text search with Lunr.js on Scully.

Custom plugins for Scully with esa.io

I made custom plugins for Scully to fix some problems between Scully + esa.io.

In the esa.io code block, you can use markdown syntax to attach filenames (e.g., foo.html, src/foo.js). On the other hand, the Scully syntax highlighting and markdown parser can only recognize its extension (e.g., html, js), which prevents highlighting from working properly.

This plugin fixes the codeblocks to correctly recognized by syntax highlighter. In addition, It appends a filename label at the top left of the code block.

esa.io's GitHub integration makes it easy to push articles to our GitHub repository. However, the pushed filenames will be strange characters, such as 10.html.md.

Therefore, Scully occurs the problem of creating static HTML with strange names, such as 10.html.html.

This plugin fixes this problem.

Build

In development, it is convenient to execute the following commands at the same time.

  • npm run watch (Angular)
  • npx scully --watch (Scully)

Author

Masanori Ohgita (mugifly).