Skip to content

Commit

Permalink
tool layout
Browse files Browse the repository at this point in the history
  • Loading branch information
calkan committed Feb 28, 2024
1 parent e382800 commit 04bc3c4
Showing 1 changed file with 122 additions and 0 deletions.
122 changes: 122 additions & 0 deletions _layouts/tool.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
layout: default
categories:
- tools
---

{% for test in site.data.tools %}
{% if test.title == page.tool %}
{% assign tool = test %}
{% endif %}
{% endfor %}

<div class="row">
<div class="col-lg-12">
<div class="bigtitle titlebox">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% assign crumbs = page.title | breadcrumb_array %}
{% for crumb in crumbs %}
{% assign name = crumb | split: '/' | last %}
{% for page in site.pages %}
{% if page.title == crumb %}
{% assign url = page.url %}
{% endif %}
{% endfor %}
{% if crumb == page.title %}
<li class="breadcrumb-item active">
{{ name }}
</li>
{% else %}
<li class="breadcrumb-item">
<a class="off" href="{{ url | replace: 'index.html', '' }}">{{ name }}</a>
</li>
{% endif %}
{% endfor %}
</ol>
</nav>
</div>
<p>
<div class="head">
{{ tool.description }}
</div>
</div>
</div>

<div class="bigspacer"></div>

<div class="row">
<div class="col-lg-3">
<div class="bigspacer"></div>
<div class="smallhead">
Source code
</div>
<div class="pad-left note">
<div class="smallspacer"></div>
<i class="fa fa-cog fa-fw"></i>
<a class="off" href="https://github.com/{{ tool.repo }}">github.com/{{ tool.repo | replace: "/", "/<wbr>" | replace: "_", "_<wbr>" }}</a>
</div>
<div class="smallhead">
Docher Hub
</div>
<div class="pad-left note">
<div class="smallspacer"></div>
<i class="fa fa-cog fa-fw"></i>
<a class="off" href="https://hub.docker.com/{{ tool.docker }}">hub.docker.com/{{ tool.docker | replace: "/", "/<wbr>" | replace: "_", "_<wbr>" }}</a>
</div>
<div class="bigspacer"></div>
<div class="smallhead">
Contributors
</div>
<div class="pad-left note">
{% for contributor in tool.contributors %}
<div class="smallspacer"></div>
<div>
<a class="off" href="{{ contributor.url }}">
<img class="pull-left avatar" src="{{ contributor.avatar }}">
<div class="handlebox" style="padding-left:5px;"">
{{ contributor.login }}
</div>
</a>
</div>
{% endfor %}
</div>
<div class="bigspacer"></div>
<div class="spacer"></div>

{% for page in site.pages %}
{% if page.tool == tool.title %}
<!-- {% increment pagecount %} -->
{% endif %}
{% endfor %}

{% if pagecount > 1 %}
<div class="smallhead">
Pages
</div>
<div class="pad-left smallnote">
<ul class="list-unstyled">
{% for page in site.pages %}
{% if page.tool == tool.title %}
<div class="smallspacer"></div>
<li>
<a class="off" href="{{ page.url | replace: 'index.html', '' }}">
{{ page.title | replace: '/', ' / ' | replace: tool.title, '<i class="fa fa-folder-open-o"></i> ' }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="spacer"></div>
{% endif %}

</div>
<div class="col-lg-8">
<div class="post">
<p>
{{ content }}
</div>
</div>
<div class="col-lg-1"></div>
</div>

0 comments on commit 04bc3c4

Please sign in to comment.