Inside’s plugin system is built on Hexo’s injector API. It lets you inject arbitrary HTML, CSS, or JavaScript into specific positions in the rendered page — without forking the theme or modifying its source files.
Injection Positions
Position
Where it goes
head_begin
Top of <head>
head_end
End of <head> (before </head>)
body_begin
Top of <body>
body_end
End of <body> (before </body>)
sidebar
Below navigation menu, above social links
post
Bottom of each post (above copyright, below tag list)
page
Bottom of each page
comments
Comment section area (replaces built-in comments)
avatar
Profile avatar area (replaces default avatar)
Global CSS / JS Loading
The simplest way to load a global stylesheet or script:
1 2 3
plugins: -/path/to/your.css -/path/to/your.js
Inside detects the file extension:
.css → injected into <head>
.js → injected into <body_end>
Files are resolved relative to your Hexo project root.
Built-in Plugins
Inside ships two built-in plugins that must be explicitly enabled.
Hexo processes these as external resources, not local files.
Plugin Loading Order
Plugins are loaded in the order they appear in _config.inside.yml. If you have dependencies between injected scripts, arrange them accordingly — for example, load jQuery before plugins that depend on it.