diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-28 22:21:11 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-28 22:25:25 +0200 |
| commit | b6cb7d009364ab63e09fe6febc15330edae0644a (patch) | |
| tree | 301ecd32568bf0ed16c52d818bf448c10817c940 /repo/www/helpers.py | |
| parent | 63a248e3dd9fc6857098c75ffbd49f72cf362c13 (diff) | |
| download | memory-leaks-b6cb7d009364ab63e09fe6febc15330edae0644a.tar.xz | |
Move site title after page title
Plenty of websites do this; on GNU/Linux most applications do this; I
guess the goal is to make the most specific information go first, so
that tabs remain identifiable as they become narrower.
Diffstat (limited to 'repo/www/helpers.py')
| -rw-r--r-- | repo/www/helpers.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/repo/www/helpers.py b/repo/www/helpers.py index 3d412b4..48ebccf 100644 --- a/repo/www/helpers.py +++ b/repo/www/helpers.py @@ -56,8 +56,8 @@ def deserialize_directories(directories): } -def pandoc(page, output, template, filters, stylesheets, site_title=None, - include_after=(), variables=None, metadata=None): +def pandoc(page, output, template, filters, stylesheets, include_after=(), + variables=None, metadata=None): cmd = ( 'pandoc', '-s', page, '-o', output, '--template', template, *chain(*(('--lua-filter', f) for f in filters)), @@ -65,8 +65,6 @@ def pandoc(page, output, template, filters, stylesheets, site_title=None, *chain(*(('--include-after-body', f) for f in include_after)) ) - if site_title is not None: - cmd += ('-T', site_title) if variables is not None: cmd += tuple(chain( *(('-V', f'{k}={v}') for k, v in variables.items()) |
