Sites that have been used to integrate p5js on the page:

Then, I implemented a widget. Setting up p5js widgets: guide to the setup

In order to include a P5.js sketch in the post:

---
dependencies:
    - p5
---
<div id="simple-sketch-holder">
    <script type="text/javascript" src="simple_sketch.js"></script>
</div>
function setup() {
  canvas = createCanvas(710, 400);
  canvas.parent('simple-sketch-holder'); 
  // this ensures that the sketch will be positioned properly
}

Note: using the method, you can only include a single sketch per file. See here if you want to have several sketches running simultaneously.