Skip to content

Commit

Permalink
Add GitHub Icon to Remote Projects
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix committed Jun 26, 2019
1 parent 6bf0b32 commit dcee094
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion _includes/project-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
<img id="{{ project_id }}-img" class="card-img-top" src="{{ project_img }}" alt="{{ project_name }}" />
{% endif %}
<div class="card-body">
<h5 id="{{ project_id }}-name" class="card-title">{{ project_name }}</h5>
<h5 id="{{ project_id }}-name" class="card-title">
{% if project_type == "remote" %}
<i class="fab fa-github" data-toggle="tooltip" data-placement="bottom" data-delay="250" title="GitHub Repository"></i> |
{% endif %}
{{ project_name }}
</h5>
<p id="{{ project_id }}-desc" class="card-text">{{ project_desc }}</p>
<p id="{{ project_id }}-tools" class="card-text">
{% for tool in project_tools %}
Expand Down
2 changes: 2 additions & 0 deletions _includes/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
{% endfor %}
{% endcapture %}

{% assign project_type = "remote" %}
{% assign project_id = project.name %}
{% assign project_img = false %}
{% assign project_name = titlecase %}
Expand All @@ -34,6 +35,7 @@
<!-- Local Projects -->
{% for project in site.projects %}

{% assign project_type = "local" %}
{% assign project_id = project.name | slugify %}
{% assign project_img = project.image %}
{% assign project_name = project.name %}
Expand Down
9 changes: 8 additions & 1 deletion _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@
<script> new WOW().init(); </script>

<!-- Card Animation jQuery -->
<script src="{{ '/assets/js/card-animation.js' | relative_url }}"></script>
<script src="{{ '/assets/js/card-animation.js' | relative_url }}"></script>

<!-- Initialize all tooltips -->
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>

0 comments on commit dcee094

Please sign in to comment.