source code of /sitecfg

Last modified
Lines 63

Parent directory Download CGIread sitemap Main page

Quick links: (none)

  1. #!/usr/bin/python
  2. # New MACRO syntax:
  3. # %MACRO("arg","arg")%
  4. # %%
  5. # Each URL is generated with Makefile and simple script from URL.src
  6. # __DOCTYPE__
  7. # __TITLE__
  8. # __NAVIGATION__
  9. # __H1__
  10. # NOTE If trailing slash: append 'index.html' in the Makefile.
  11. {
  12.     'tree': (
  13.         '/', "Home",                                                    # Needs to be updated
  14.         [
  15.             #('/projects/', 'Projects', [
  16.                 ('/projects/anonymine/', 'Anonymine', None),
  17.                 ('/projects/light-sensor/', 'Analog light sensor', None),
  18.                 ('/projects/PLLM-M702A/', 'Reverse-engineered schematics for PLLM-M702A', None),
  19.             #]),
  20.             ('/small-scripts/', 'Small scripts', [
  21.                 ('/read/', "Website's scripts", None),
  22.             ]),
  23.             ('/thinkpad/', '-> My IBM thinkpad', None),
  24.         ]
  25.     ),
  26.     'subs':    [
  27.         ('/sitemap.py', 'Sitemap'),
  28.     ],
  29.     'hidden':   [
  30.         # Error pages:
  31.         ('/oops/410.cgi',  '410 - Gone forever; not coming back'),
  32.         ('/oops/500.html', "500 - Uh-oh; I've screwed up"),
  33.         ('/oops/cgi503.html', "503 Too Hot"),
  34.         ('/projects/skogpasswdman/', 'Skogpasswdman'),
  35.     ],
  36.     'index-names': ('index.py', 'index.cgi', 'index.html'),
  37.     'conf': 'sitecfg',
  38.     'script': '/var/www/mkhtml',
  39.     'host': 'oskog97.com',
  40.     'scheme': 'https',
  41.     'macros': {
  42.     },
  43.     'includes': {
  44.         'footer': '/var/www/includes/footer',
  45.         'html5': '/var/www/includes/html5',
  46.         'html5nc': '/var/www/includes/html5nc',
  47.         'ldjson': '/var/www/includes/ldjson',
  48.     },
  49.     'navconf': {
  50.         'active': 'span',       # Active page is bold in navigation:
  51.                                 # 'b', 'strong', 'span'
  52.                                 # NOTE: the `class`-attribute is not
  53.                                 #       different from the links
  54.                                 #       Use something like
  55.                                 #       '#navigation span span'
  56.                                 #       to style the text differently.
  57.         'navdiv': 'nav-div',    # Navigation area: 'div', 'nav-div', 'nav'
  58.     }
  59. }