nbroad HF staff commited on
Commit
281ac5e
1 Parent(s): addf7c0

add utteranc.es

Browse files
Files changed (1) hide show
  1. blog.py +11 -1
blog.py CHANGED
@@ -175,6 +175,14 @@ def split_blog(text, figs=None):
175
 
176
 
177
 
 
 
 
 
 
 
 
 
178
 
179
  def single_blog(blog_id):
180
  """
@@ -185,6 +193,8 @@ def single_blog(blog_id):
185
 
186
  headers, sections = split_blog(f"# {metadata['title']}\n{md_text}", metadata.get("figs", None))
187
 
 
 
188
  secs = Sections(headers, sections)
189
 
190
- return BstPage(2, "", *secs)
 
175
 
176
 
177
 
178
+ utterances = Script(
179
+ src="https://utteranc.es/client.js",
180
+ repo="nbroad1881/site",
181
+ issue_term="pathname",
182
+ theme="github-light",
183
+ crossorigin="anonymous",
184
+ **{"async": True}
185
+ )
186
 
187
  def single_blog(blog_id):
188
  """
 
193
 
194
  headers, sections = split_blog(f"# {metadata['title']}\n{md_text}", metadata.get("figs", None))
195
 
196
+ # import pdb; pdb.set_trace()
197
+
198
  secs = Sections(headers, sections)
199
 
200
+ return BstPage(2, "", *[*secs, utterances])