/
Custom Squarespace blocks

Custom Squarespace blocks

 

 

Table of contents

Basis: Adlytic marketing plugin

https://www.adlyticmarketing.com/plugins/p/automatic-table-of-contents
  • I modified the code to exclude certain sections (for example, “next” on the Squarespace blog).

<div class="table-of-contents"> <nav class="toc" data-toc data-toc-headings="h2,h3,h4"> <ul></ul> </nav> </div>

 

Small caps

Basis: custom CSS

  • I wrote this years ago for a different blog and ported it to Squarespace in 2023

<div class="dropcaps">T</div><p>....</p>

 

 

Syntax highlighting code block

Basis: Prism.js

<details> <summary><p>&#9654; Read also on <a href=2https://github.com/norandom/infosec_ml_rnd/blob/main/bpe_vs_blt_log_vec/blt_wrapper/blt_wrapper.py">GitHub</a></p></summary> <pre class="line-numbers"><code class="language-python"> print("hi") </code> </pre> </details>