1
0
Fork 0
mirror of synced 2024-06-26 18:10:24 +12:00

feat: Add mercury-parsed content to summary page

This commit is contained in:
ttimasdf 2020-09-22 17:22:02 +08:00 committed by Cristian Vargas
parent dd98401a00
commit 2bf496e7e9
2 changed files with 15 additions and 0 deletions

View file

@ -408,6 +408,7 @@ class Link:
'warc_path': 'warc',
'singlefile_path': 'singlefile.html',
'readability_path': 'readability/content.html',
'mercury_path': 'mercury/content.html',
'pdf_path': 'output.pdf',
'screenshot_path': 'screenshot.png',
'dom_path': 'output.html',
@ -429,6 +430,7 @@ class Link:
'dom_path': static_path,
'singlefile_path': static_path,
'readability_path': static_path,
'mercury_path': static_path,
})
return canonical

View file

@ -413,6 +413,19 @@
</div>
</div>
</div>
<br/>
<div class="col-lg-3">
<div class="card">
<iframe class="card-img-top" src="$mercury_path" sandbox="allow-same-origin allow-scripts allow-forms" scrolling="no"></iframe>
<div class="card-body">
<a href="$mercury_path" style="float:right" title="Open in new tab..." target="_blank" rel="noopener">
<img src="../../static/external.png" class="external"/>
</a>
<a href="$mercury_path" target="preview"><h4 class="card-title">mercury</h4></a>
<p class="card-text">archive/mercury/...</p>
</div>
</div>
</div>
</div>
</div>
</header>