podman/docs/use-pagetitle.lua
Rob Cowsill b4bbc5210b
[CI:DOCS] Add titles to remote docs (windows)
Previously the podman-remote windows docs had no HTML titles

This gives them the same titles as the equivalent Sphinx HTML pages

Signed-off-by: Rob Cowsill <42620235+rcowsill@users.noreply.github.com>
2021-04-29 22:18:13 +01:00

15 lines
390 B
Lua

local List = require("pandoc.List")
function Meta(m)
-- Use pagetitle instead of title (prevents pandoc inserting a <H1> title)
m.pagetitle = m.title
m.title = nil
if m.pagetitle ~= nil and m.pagetitle.t == "MetaInlines" then
-- Add suffix to match the Sphinx HTML documentation
List.extend(m.pagetitle, {pandoc.Str" \u{2014} Podman documentation"})
end
return m
end