code: def head_title(request):
      
      try:
          fragments = request._feincms_fragments
      except:
          fragments = {}
  
      if '_head_title' in fragments and fragments.get("_head_title"):
          return fragments.get("_head_title")
      else:
          # append site name
          site_name = getattr(settings, 'LEONARDO_SITE_NAME', '')
  
          if site_name != '':
              return getattr(request.leonardo_page,
                             "page_title", request.leonardo_page.title) \
                  + ' | ' + site_name
  
          return getattr(request.leonardo_page,
                         "page_title", request.leonardo_page.title)
docs: {% head_title request %}