Skip to content

Commit

Permalink
style fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianBartl committed Sep 20, 2022
1 parent fe04bcf commit 6b94702
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
17 changes: 7 additions & 10 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<footer class="row align-items-end social-icons">
<div class="col-md-12">
{% capture github_img %}<img src="{{ "images/icons/GitHub_512px.png" }}" alt="GitHub logo">{% endcapture %}
{% include reference.html link="https://github.com/mtex-toolbox/mtex" content=github_img no_icon=true %}
</div>
<div class="col-md-12">
{% capture researchgate_img %}<img src="{{ "images/icons/ResearchGate_256px.png" }}" alt="ResearchGate logo">{% endcapture %}
{% include reference.html link="https://www.researchgate.net/project/MTEX-free-crystallographic-texture-analysis-software" content=researchgate_img no_icon=true %}
</div>
</footer>
<footer class="row" id="social-icons">
{% capture github_img %}<img src="{{ "images/icons/GitHub_512px.png" }}" alt="GitHub logo">{% endcapture %}
{% include reference.html link="https://github.com/mtex-toolbox/mtex" content=github_img no_icon=true %}
<br>
{% capture researchgate_img %}<img src="{{ "images/icons/ResearchGate_256px.png" }}" alt="ResearchGate logo">{% endcapture %}
{% include reference.html link="https://www.researchgate.net/project/MTEX-free-crystallographic-texture-analysis-software" content=researchgate_img no_icon=true %}
</footer>
33 changes: 20 additions & 13 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,36 @@ <h1 class="post-title-main">{{ page.title }}</h1>
<div class="post-content">

{% if page.summary %}
<div class="summary">{{page.summary}}</div>
<div class="summary">{{ page.summary }}</div>
{% endif %}

{% unless page.toc == false %}
{% include toc.html %}
{% endunless %}
{% if page.toc %}
{% include toc.html %}
{% endif %}


{% if site.github_editme_path %}
<a target="_blank" href="https://github.com/{{site.github_editme_path}}{{page.path}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
{% capture github_editme_link %}
https://github.com/{{ site.github_editme_path }}{{ page.path }}
{% endcapture %}
{% capture github_editme_content %}
<i class="fa fa-github fa-lg"></i> Edit me
{% endcapture %}

{% include reference.html link=github_editme_link content=github_editme_content class="btn btn-default githubEditButton" attr='role="button"' %}
{% endif %}

{{ content }}

<div class="tags">
{% if page.tags != null %}
<b>Tags: </b>
{% assign projectTags = site.data.tags.allowed-tags %}
{% for tag in page.tags %}
{% if projectTags contains tag %}
<a href="{{ "tag_" | append: tag | append: ".html" }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{page.tagName}}{{tag}}</a>
{% endif %}
{% endfor %}
{% if page.tags %}
<b>Tags: </b>
{% assign projectTags = site.data.tags.allowed-tags %}
{% for tag in page.tags %}
{% if projectTags contains tag %}
<a href="{{ "tag_" | append: tag | append: ".html" }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{ page.tagName }}{{ tag }}</a>
{% endif %}
{% endfor %}
{% endif %}
</div>

Expand Down
4 changes: 2 additions & 2 deletions css/customstyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,8 @@ h4.panel-title {
}

/* footer social-icons */
footer .social-icons div a img {
height: 2em;
#social-icons a img {
height: 2em !important;
}

/* table design */
Expand Down

0 comments on commit 6b94702

Please sign in to comment.