Back to Integrations

Hexo Integration

Add the Pulse script to your Hexo theme's layout file.


Edit your theme's layout

Open the layout file for your active theme and add the Pulse script inside the <head>.

themes/your-theme/layout/layout.ejs
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script
      defer
      data-domain="your-site.com"
      src="https://pulse.ciphera.net/script.js"
    ></script>

    <title><%= config.title %></title>
    <%- css('css/style') %>
</head>
<body>
    <%- body %>
    <%- js('js/script') %>
</body>
</html>

Alternatively, you can use Hexo's after_render filter to inject the script programmatically.

For more details, see the Hexo templates docs.

Related Integrations: Hugo, Jekyll, Eleventy