Commit b3de8cde authored by Ian Dennis Miller's avatar Ian Dennis Miller

tweak identicons

parent 766717ce
<div class="card" id="{{ id }}" about="#{{ appearance_id }}">
<p class="appearance">{{ appearance_authors }}. ({{ appearance_year }}). {{ appearance_title }}</p>
<div class="appearance">
<div class="identicon">
<img src="data:image/png;base64,{{ identicon }}">
</div>
{{ appearance_authors }}. ({{ appearance_year }}). {{ appearance_title }}
</div>
<div class="quote">{{ quote }}</div>
<div class="search">
<ul>
......@@ -13,7 +18,4 @@
<div class="controls">
<a id="reveal" href="#" onclick="toggle_appearance('{{ id }}'); return false;">[r]</a>
</div>
<div class="identicon">
<img src="data:image/png;base64,{{ identicon }}">
</div>
</div>
......@@ -26,6 +26,11 @@ body.focused {
border-radius: 0.5em;
}
.identicon {
float: right;
margin-left: 0.5em;
}
ul {
padding-left: 0;
list-style-type: none;
......
......@@ -37,7 +37,7 @@ class VisFact:
self.g = rdflib.ConjunctiveGraph()
self.identicon_generator = Generator(rows=8, columns=8, digest=hashlib.sha256)
self.identicon_generator = Generator(rows=8, columns=8, digest=hashlib.sha512)
def load_config(self, yaml_file):
with open(yaml_file, "r") as f:
......@@ -70,7 +70,7 @@ class VisFact:
title=title
)
identicon_data = self.identicon_generator.generate(data=quote, width=32, height=32)
identicon_data = self.identicon_generator.generate(data=quote, width=24, height=24)
if appearance_id not in articles.keys():
articles[appearance_id] = cite
......
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