diff options
-rw-r--r-- | app/lib/templatetags/templatetags/amp.py | 3 | ||||
-rw-r--r-- | design/templates/details/entry.amp | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py index 2eacfd1..ca57f2e 100644 --- a/app/lib/templatetags/templatetags/amp.py +++ b/app/lib/templatetags/templatetags/amp.py @@ -19,8 +19,7 @@ register = template.Library() def remove_img_tags(text): - soup = BeautifulSoup(text, 'html') - print(soup) + soup = BeautifulSoup(text, 'html.parser') for img in soup.find_all('img'): r = requests.get(img['src']) i = Image.open(BytesIO(r.content)) diff --git a/design/templates/details/entry.amp b/design/templates/details/entry.amp index 32b6d36..b4eeaf4 100644 --- a/design/templates/details/entry.amp +++ b/design/templates/details/entry.amp @@ -58,15 +58,15 @@ </script> <style amp-custom> body { - font-size: 0.8125rem; + font-size: 1rem; line-height: 1.73; - font-family: "Lucida Grande",Verdana,Helvetica,Arial,sans-serif; + font-family: Georgia, serif; background-color: #fff; color: #333; padding: 1em; } nav { - text-align: right; + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; max-width: 60em; margin: 0 auto; } @@ -81,8 +81,12 @@ a { text-decoration: underline; color: #c63; } +nav a { + text-decoration: none; + text-transform: uppercase; + color: #222; +} h1,h2,h3,h4,h5 { - font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; line-height: 1; font-weight: bold; } @@ -136,6 +140,7 @@ hr { border: none; border-bottom: 0.0625rem dotted #ccc; } +.hide {display: none;} </style> <style>body {opacity: 0}</style><noscript><style>body {opacity: 1}</style></noscript> <script async src="https://cdn.ampproject.org/v0.js"></script> |