Drop projects.

pull/1/head
Joshua Potter 2023-12-14 05:31:57 -07:00
parent 653f9bb8f7
commit 5c5b2fe79a
6 changed files with 2 additions and 97 deletions

View File

@ -45,7 +45,6 @@ kramdown:
start_line: 1 start_line: 1
collections: collections:
projects:
tabs: tabs:
output: true output: true

View File

@ -1,83 +0,0 @@
---
layout: default
refactor: true
---
{% include lang.html %}
<div id="post-list" class="flex-grow-1 px-xl-1 projects">
{% for post in site.projects reversed %}
<article class="card-wrapper card">
<a target="_blank" href="{{ post.github }}" class="post-preview row g-0 flex-md-row-reverse">
{% assign card_body_col = '12' %}
{% if post.image %}
{% assign src = post.image.path | default: post.image %}
{% unless src contains '//' %}
{% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
{% endunless %}
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
{% assign lqip = null %}
{% if post.image.lqip %}
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
{% endif %}
<div class="col-md-5">
<img src="{{ src }}" alt="{{ alt }}" {{ lqip }}>
</div>
{% assign card_body_col = '7' %}
{% endif %}
<div class="col-md-{{ card_body_col }}">
<div class="card-body d-flex flex-column">
<h1 class="card-title my-2 mt-md-0">{{ post.title }}</h1>
<div class="card-text content mt-0 mb-3">
<p>
{% include no-linenos.html content=post.content %}
{{ content | markdownify | strip_html | truncate: 500 | escape }}
</p>
</div>
<div class="post-meta flex-grow-1 d-flex align-items-end">
<div class="me-auto">
<!-- posted date -->
<i class="far fa-calendar fa-fw me-1"></i>
{% include datetime.html date=post.date lang=lang %}
{% if post.version %}
<i class="far fa-window-restore fa-fw me-1"></i>
<span>
{{ post.version }}
</span>
{% endif %}
<!-- tags -->
{% if post.tags.size > 0 %}
<i class="fas fa-tag fa-fw me-1"></i>
<span>
{% for tag in post.tags %}
{{ tag }}
{%- unless forloop.last -%},{%- endunless -%}
{% endfor %}
</span>
{% endif %}
</div>
</div>
<!-- .post-meta -->
</div>
<!-- .card-body -->
</div>
</a>
</article>
{% endfor %}
</div>
<!-- #post-list -->
{% if paginator.total_pages > 1 %}
{% include post-paginator.html %}
{% endif %}

View File

@ -2,6 +2,6 @@
layout: archives layout: archives
title: Archives title: Archives
icon: fas fa-box-archive icon: fas fa-box-archive
order: 4 order: 2
--- ---

View File

@ -1,6 +0,0 @@
---
layout: projects
title: Projects
icon: fas fa-pen-nib
order: 1
---

View File

@ -2,5 +2,5 @@
layout: tags layout: tags
title: Tags title: Tags
icon: fas fa-tag icon: fas fa-tag
order: 3 order: 1
--- ---

View File

@ -18,8 +18,3 @@
line-height: 1.75; line-height: 1.75;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
} }
#post-list.projects .card .card-body .card-text.content p {
overflow: auto;
-webkit-line-clamp: none;
}