old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import io
  from github import Github
  
  g = Github()
  
  with io.open("templates/recent-updates.html", 'w', encoding='utf8') as recent_updates:
      recent_updates.truncate()
  
      recent_updates.write(u"<ul>\n")
  
      for pr in g.search_issues("is:merged", repo="phil-opp/blog_os", type="pr", label="relnotes")[:5]:
          link = '<a href="' + pr.html_url + '">' + pr.title + "</a> "
          iso_date = pr.closed_at.isoformat()
          readable_date = pr.closed_at.strftime("%b&nbsp;%d")
          datetime = '<time datetime="' + iso_date + '">' + readable_date + '</datetime>'
          recent_updates.write(u"  <li>" + link + datetime + "</li>\n")
  
      recent_updates.write(u"</ul>")
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import io
  from github import Github
  
  g = Github()
  
  with io.open("templates/recent-updates.html", 'w', encoding='utf8') as recent_updates:
      recent_updates.truncate()
  
      recent_updates.write(u"<ul>\n")
  
      for pr in g.search_issues("is:merged", repo="phil-opp/blog_os", type="pr", label="relnotes")[:5]:
          link = '<a href="' + pr.html_url + '">' + pr.title + "</a> "
          iso_date = pr.closed_at.isoformat()
          readable_date = pr.closed_at.strftime("%b&nbsp;%d")
          datetime = '<time datetime="' + iso_date + '">' + readable_date + '</time>'
          recent_updates.write(u"  <li>" + link + datetime + "</li>\n")
  
      recent_updates.write(u"</ul>")
  
subject: Fix html (incorrect </datetime>)