mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 21:29:00 +00:00

Look, this will make the git history look funny, but trimming unnecessary depth from the source tree is a very necessary sanity-preserving measure when dealing with a super-modularized codebase like this one. While it makes the project configuration a bit less conventional, it will save you several clicks every time you jump between modules. Which you'll do a lot, because it's *modul*ar. The src/main/java convention makes a lot of sense for a non-modular project though. This ain't that.
124 lines
4.9 KiB
Plaintext
124 lines
4.9 KiB
Plaintext
<div class="infobox">
|
|
A <a href="/explore/{{domain}}">visual exploration</a> mode is also available.
|
|
</div>
|
|
|
|
|
|
<div id="similar-view" data-layout="{{layout}}">
|
|
<div id="similar-info">
|
|
<h2><span title="External Link">🌎</span> <a rel="external noopener" href="{{siteUrl}}">{{domain}}</a></h2>
|
|
|
|
|
|
{{#if hasScreenshot}}
|
|
<a rel="external noopener" href="{{siteUrl}}">
|
|
<img class="screenshot" width="300" height="225" src="/screenshot/{{domainId}}" alt="Screenshot of {{domain}}" />
|
|
</a>
|
|
{{/if}}
|
|
|
|
{{#unless hasScreenshot}}
|
|
<p>Screenshot not yet available.</p>
|
|
{{/unless}}
|
|
|
|
{{#with domainInformation}}
|
|
{{> search/site-info/site-info-feed}}
|
|
{{> search/site-info/site-info-index}}
|
|
{{> search/site-info/site-info-links}}
|
|
{{/with}}
|
|
</div>
|
|
|
|
{{#if linking}}
|
|
<div id="similar-links">
|
|
<h2>Linking Domains</h2>
|
|
|
|
<table class="similarity-table">
|
|
<tr>
|
|
<th colspan="3">Meta</th>
|
|
<th>Rank</th>
|
|
<th>Domain</th>
|
|
<th>Similarity</th>
|
|
</tr>
|
|
{{#each linking}}
|
|
<tr>
|
|
<td>
|
|
{{#if indexed}}
|
|
{{#if active}}
|
|
<span title="Indexed">👀</span>
|
|
{{/if}}
|
|
{{#unless active}}
|
|
<span title="Problem">🔥</span>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
{{#if screenshot}}📷{{/if}}
|
|
</td>
|
|
<td>
|
|
{{#if linkType.isLinked}}
|
|
<span title="{{linkType.description}}"><a href="/crosstalk/?domains={{domain}},{{url.domain}}">{{{linkType}}}</a></span>
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
<span title="{{rank}}%">{{{rankSymbols}}}</span>
|
|
</td>
|
|
<td>
|
|
<a href="/site/{{url.domain}}?view=similar" rel="external noopener nofollow">{{url.domain}}</a></td>
|
|
<td>
|
|
<progress value="{{relatedness}}" max="100.0">{{relatedness}}</progress><br>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</table>
|
|
</div>
|
|
{{/if}}
|
|
|
|
|
|
{{#if similar}}
|
|
<div id="similar-domains">
|
|
<h2>Similar Domains</h2>
|
|
|
|
<table class="similarity-table">
|
|
<tr>
|
|
<th colspan="3">Meta</th>
|
|
<th>Rank</th>
|
|
<th>Domain</th>
|
|
<th>Similarity</th>
|
|
</tr>
|
|
{{#each similar}}
|
|
<tr>
|
|
<td>
|
|
{{#if indexed}}
|
|
{{#if active}}
|
|
<span title="Indexed">👀</span>
|
|
{{/if}}
|
|
{{#unless active}}
|
|
<span title="Problem">🔥</span>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
{{#if screenshot}}📷{{/if}}
|
|
</td>
|
|
<td>
|
|
{{#if linkType.isLinked}}
|
|
<span title="{{linkType.description}}"><a href="/crosstalk/?domains={{domain}},{{url.domain}}">{{{linkType}}}</a></span>
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
<span title="{{rank}}%">{{{rankSymbols}}}</span>
|
|
</td>
|
|
<td>
|
|
<a href="/site/{{url.domain}}?view=similar" rel="external noopener nofollow">{{url.domain}}</a></td>
|
|
<td>
|
|
<progress value="{{relatedness}}" max="100.0">{{relatedness}}</progress><br>
|
|
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</table>
|
|
<p><b>Note</b>: Because two domains are considered similar does not always mean they're in
|
|
cahoots. Similarity is a measure of how often they appear in the same contexts,
|
|
which may be an association like peas and carrots, but some pairings are also defined by their
|
|
contrasting opposition, like Sparta and Athens.</p>
|
|
</div>
|
|
{{/if}}
|
|
|
|
</div> |