summaryrefslogtreecommitdiff
path: root/_includes/projects_horizontal.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_includes/projects_horizontal.html
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/projects_horizontal.html')
-rw-r--r--_includes/projects_horizontal.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/_includes/projects_horizontal.html b/_includes/projects_horizontal.html
new file mode 100644
index 0000000..edecb9b
--- /dev/null
+++ b/_includes/projects_horizontal.html
@@ -0,0 +1,40 @@
+<div class="card-item col">
+ {% if project.redirect %}
+ <a href="{{ project.redirect }}" target="_blank">
+ {% else %}
+ <a href="{{ project.url | relative_url }}">
+ {% endif %}
+ <div class="card hoverable">
+ <div class="row g-0">
+ {% if project.img %}
+ <div class="card-img col-md-6">
+ <img src="{{ project.img | relative_url }}" alt="project thumbnail">
+ </div>
+ <div class="col-md-6">
+ {% else %}
+ <div class="col-md-12">
+ {% endif %}
+ <div class="card-body">
+ <h3 class="card-title text-lowercase">{{ project.title }}</h3>
+ <p class="card-text">{{ project.description }}</p>
+ <div class="row ml-1 mr-1 p-0">
+ {% if project.github %}
+ <div class="github-icon">
+ <div class="icon" data-toggle="tooltip" title="Code Repository">
+ <a href="{{ project.github }}" target="_blank"><i class="fab fa-github gh-icon"></i></a>
+ </div>
+ {% if project.github_stars %}
+ <span class="stars" data-toggle="tooltip" title="GitHub Stars">
+ <i class="fas fa-star"></i>
+ <span id="{{ project.github_stars }}-stars"></span>
+ </span>
+ {% endif %}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+</div>