Commit 37bdacd4 authored by Ian Dennis Miller's avatar Ian Dennis Miller

support title in html output

parent 84df6edc
......@@ -90,6 +90,7 @@ The configuration also specifies a destination, called `dest`, to write the outp
```yaml
---
title: "example argument - visfact"
files:
- "example/argument-1/article-1.ttl"
dest: "argument-1.html"
......
---
title: "example argument - visfact"
files:
- "example/argument-1/article-1.ttl"
dest: "build/argument-1.html"
......
<snippet>
<content><![CDATA[
---
title: "${1:argument} - visfact"
files:
- "${1:argument}/article-1.ttl"
- "$1/article-1.ttl"
dest: "$1.html"
rdf: "$1.rdf"
......
......@@ -65,6 +65,7 @@
"prefix": "config",
"body": [
"---",
"title: \"$1 - visfact\"",
"files:",
" - \"${1:argument}/article-1.ttl\"",
"dest: \"$1.html\"",
......
......@@ -7,6 +7,7 @@
xmlns:thesis="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"
version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#333">
<meta name="msapplication-navbutton-color" content="#333">
......
---
title: "example argument - visfact"
files:
- "build/article.ttl"
dest: "build/argument-1.html"
......
......@@ -175,6 +175,7 @@ class VisFact:
keywords_json=json.dumps(keywords),
articles=sorted_articles,
version=__version__,
title=self.cfg["title"] if "title" in self.cfg else "visfact",
favicon=base64.b64encode(favicon_data).decode(),
)
buf = re.sub(r'file:///.+?#', '', buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment