mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-04 09:55:33 +10:00
improve plugin tests and config
This commit is contained in:
9
archivebox/plugins/favicon/templates/thumbnail.html
Normal file
9
archivebox/plugins/favicon/templates/thumbnail.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!-- Favicon thumbnail - small favicon preview -->
|
||||
<div class="extractor-thumbnail favicon-thumbnail" style="width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; background: #fff;">
|
||||
{% if output_path %}
|
||||
<img src="{{ output_path }}"
|
||||
alt="Favicon"
|
||||
style="max-width: 80%; max-height: 80%; object-fit: contain;"
|
||||
loading="lazy">
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -23,7 +23,7 @@ import pytest
|
||||
|
||||
|
||||
PLUGIN_DIR = Path(__file__).parent.parent
|
||||
FAVICON_HOOK = PLUGIN_DIR / 'on_Snapshot__11_favicon.py'
|
||||
FAVICON_HOOK = next(PLUGIN_DIR.glob('on_Snapshot__*_favicon.*'), None)
|
||||
TEST_URL = 'https://example.com'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user