image tweaks pt. 2

This commit is contained in:
Tomáš Mládek 2020-06-14 12:28:05 +02:00
parent 116c17e7e9
commit 8a77476042
2 changed files with 5 additions and 2 deletions

View file

@ -50,4 +50,7 @@ class Service(OrderedModel):
for link_tag in link_tags: for link_tag in link_tags:
if rel in link_tag.attrs['rel']: if rel in link_tag.attrs['rel']:
result = link_tag.attrs['href'] result = link_tag.attrs['href']
return (self.url + result) if self.url not in result else result if self.url not in result:
return self.url + result if result.startswith("/") else f"/{result}"
else:
return result

View file

@ -51,7 +51,7 @@ main {
} }
.service-content img { .service-content img {
min-width: 66%; min-width: 50%;
filter: grayscale(100%); filter: grayscale(100%);
} }