Skip to content

Commit

Permalink
fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Nov 10, 2023
1 parent 007baf6 commit d3885fb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 60 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ html/static/travel-net-map.json
html/index.html
editions/schnitzler_places_enriched.xml
hansi.xml
templates/static/imprint.j2
play.ipynb
13 changes: 13 additions & 0 deletions build_website.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
import jinja2
import os
import shutil
import requests

print("fetch imprint")
r = requests.get("https://imprint.acdh.oeaw.ac.at/20818/")
imprint_text = r.text
imprint = """{% extends "templates/partials/base.j2" %}
{% block content %}
<div class="container">
"""
imprint += imprint_text
imprint += "\n</div>\n{% endblock %}"
with open("./templates/static/imprint.j2", "w", encoding="utf-8") as f:
f.write(imprint)

templateLoader = jinja2.FileSystemLoader(searchpath=".")
templateEnv = jinja2.Environment(loader=templateLoader)
Expand Down
59 changes: 0 additions & 59 deletions templates/static/imprint.html

This file was deleted.

1 change: 0 additions & 1 deletion templates/static/index.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends "templates/partials/base.j2" %}
{% block content %}
<div class="hfeed site" id="page">
<xsl:call-template name="nav_bar"/>
<div class="wrapper" id="wrapper-hero">
<!-- ******************* The Hero Area ******************* -->
<div class="wrapper" id="wrapper-hero-content"
Expand Down

0 comments on commit d3885fb

Please sign in to comment.