Support meta.comment as <aside>
This commit is contained in:
parent
76f688b591
commit
584463a5a1
6
build.py
6
build.py
|
@ -100,6 +100,12 @@ def main():
|
|||
p.append(a)
|
||||
page.header.append(p)
|
||||
|
||||
if meta_comment := meta.get("comment"):
|
||||
for comment in meta_comment:
|
||||
aside = page.new_tag("aside")
|
||||
aside.string = comment
|
||||
page.header.append(aside)
|
||||
|
||||
# Write the fully templated page
|
||||
print("Writing ", dest)
|
||||
dest.write_text(str(page))
|
||||
|
|
|
@ -18,6 +18,22 @@ header .metadata {
|
|||
font-size: small;
|
||||
margin-block: 0;
|
||||
}
|
||||
header aside {
|
||||
margin: 1em;
|
||||
font-size: smaller;
|
||||
font-style: italic;
|
||||
}
|
||||
header aside::before {
|
||||
content: "/* ";
|
||||
}
|
||||
header aside::after {
|
||||
content: " */"
|
||||
}
|
||||
header::after {
|
||||
content: "";
|
||||
display: block;
|
||||
border-top: 1px solid gray;
|
||||
}
|
||||
h1 {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
@ -36,11 +52,6 @@ sup {
|
|||
:target {
|
||||
background: palegoldenrod;
|
||||
}
|
||||
header::after {
|
||||
content: "";
|
||||
display: block;
|
||||
border-top: 1px solid gray;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue