Esempio n. 1
0
def make_page (page_dict, idx, title, head, body, extras = {}):
  canonical_URL = canonical_scheme_and_domain + (extras ["canonical_path_override"] if "canonical_path_override" in extras else idx ) 
  checked_insert (page_dict, 
      idx + ".html", 
      html_pages.make_page (
        title,
        head + 
        '<link rel="canonical" href="' + canonical_URL + '">' +
        '<meta property="og:url" content="' + canonical_URL + '">',
        body, extras))
Esempio n. 2
0
def add_game_pages(page_dict):
  pac_asteroids.add_game (page_dict)
  hexy.add_game (page_dict)
  green_caves.add_game (page_dict)
  the_path.add_game (page_dict)
  
  import voice_practice_tool
  voice_practice_tool.add_page (page_dict)
  import neural_music_generator
  neural_music_generator.add_page (page_dict)
  import codecophony 
  codecophony.add_page (page_dict)
  
  return
  (maze_CSS, maze_HTML) = generate_maze (100, 100)
  
  utils.checked_insert(page_dict,
    '/badly-designed-menus.html',
    html_pages.make_page(
      "badly Designed Menus ⊂ Eli Dupree's website",
      '<style type="text/css">\n' + maze_CSS + '</style>',
      maze_HTML, {}
    )
  )