Skip to content

Commit 5a2cfbe

Browse files
committed
work on individual project page
1 parent 340f34e commit 5a2cfbe

File tree

9 files changed

+2244
-109
lines changed

9 files changed

+2244
-109
lines changed
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
1+
{% assign item = project | default: page %}
2+
13
<div class="projects-card mx-4 lg:mx-8 grid grid-cols-1 md:grid-cols-3 gap-4 mb-8 lg:mb-16 items-center">
24
<!-- Tag & Title (Always First) -->
35
<div class="md:col-span-3">
4-
{% if include.category-name %}
6+
{% if item.tag %}
57
<div class="flex items-center">
68
<svg width="64" height="2" viewBox="0 0 64 2" fill="none" xmlns="http://www.w3.org/2000/svg">
79
<path d="M64 1H0" stroke="#6B7280" />
810
</svg>
911
<p class="text-base leading-none text-gray-500 ml-2">
10-
{{ include.category-name }}
12+
{{ item.tag }}
1113
</p>
1214
</div>
1315
{% endif %}
1416

1517
<div class="text-gray-900 font-bold text-xl font-ibmsans">
16-
{{ include.title }}
18+
{{ item.title }}
1719
</div>
1820
</div>
1921

2022
<!-- Image Section (Appears between title and text in mobile, right side in desktop) -->
2123
<div class="w-full order-2 md:col-span-1 md:order-3">
24+
2225
<img
23-
src="/assets/images/projects/{{ include.image}}"
26+
src="/assets/images/projects/{{ item.image}}"
2427
class="w-full h-10 sm:h-15 md:h-auto object-cover rounded-lg"
25-
alt="{{include.image-alt}}"
28+
alt="{{ item.image_alt }}"
2629
/>
2730
</div>
2831

2932
<!-- Text Section (Takes 2/3 space on desktop, below image in mobile) -->
3033

3134
<div class="md:col-span-2 md:pr-6 order-3 md:order-2">
35+
3236
{% capture first_paragraph %}
33-
{{ project.content | markdownify | split: '</p>' | first | remove: '<p>' | rstrip }}
37+
{{ item.content | markdownify | split: '</p>' | first | remove: '<p>' | rstrip }}
3438
{% endcapture %}
3539

36-
<p class="p-5 pt-3 text-base leading-6 mb-3 font-ibmserif bg-gray-100">
40+
<div class="prose p-5 pt-3 text-base leading-6 mb-3 font-ibmserif bg-gray-100 prose">
3741
{{ first_paragraph }}
38-
<a href="{{ project.url }}" class="text-sky-600 hover:underline text-xs
42+
<a href="{{ item.url }}" class="text-sky-600 hover:underline text-xs
3943
font-ibmsans">
4044
[read more]
4145
</a>
42-
</p>
46+
</div>
4347
</div>
4448
</div>

_layouts/project.html

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,38 @@
22
layout: default
33
---
44

5-
{{ content }}
5+
{% assign item = project | default: page %}
6+
7+
8+
9+
{% assign subsection_text = "Filed under: " | append: item.tag %}
10+
{% include section-break.html section="Project description" subsection=subsection_text %}
11+
12+
<div class="mx-4 lg:mx-8 grid grid-cols-1 md:grid-cols-3 mb-8 lg:mb-16 items-center">
13+
<!-- Tag & Title (Always First) -->
14+
<div class="md:col-span-3">
15+
16+
<div class="text-gray-900 font-bold text-xl font-ibmsans">
17+
{{ item.title }}
18+
</div>
19+
</div>
20+
21+
<!-- Image Section (Appears between title and text in mobile, right side in desktop) -->
22+
<div class="w-full order-2 md:col-span-1 md:order-3 self-start">
23+
24+
<img
25+
src="/assets/images/projects/{{ item.image}}"
26+
class="w-full h-10 sm:h-15 md:h-auto object-cover my-6 shadow-sm md:shadow-none"
27+
alt="{{ item.image_alt }}"
28+
/>
29+
</div>
30+
31+
<!-- Text Section (Takes 2/3 space on desktop, below image in mobile) -->
32+
33+
<div class="prose-sm md:prose-base md:col-span-2 md:pr-6 order-3 md:order-2">
34+
35+
{{ item.content | markdownify }}
36+
</div>
37+
</div>
38+
39+

assets/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif');
66
@import "tailwindcss";
77

8+
@plugin "@tailwindcss/typography";
89

910
@theme {
1011
--font-ibmserif: "IBM Plex Serif", serif;

collections/_projects/archeology-of-fictional-space.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Archeology of Fictional Space
44
date: 2018-05-05
55
tag: modeling-and-visualization
66
image: lit-space.png
7-
image-alt: "Four tall and skinny scatter plots demonstrating density and clutter."
7+
image_alt: "Four tall and skinny scatter plots demonstrating density and clutter."
88
people:
99
- Dennis Yi Tenen
1010
type: research paper

collections/_projects/keyword-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ extent and how? To answer that question, we propose to treat the memo as a natur
1616
in "keyword injection." We then analyze the congressional record to capture the dynamics of
1717
term diffusion, revealing a pattern of influence over time.
1818

19-
<sup>1</sup>: *The New York Times*, 12/14/94.
19+
<sup>1</sup> *The New York Times*, 12/14/94.

index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<p class="-skew-1">
99
<span class="font-ibmserif text-base">
1010

11-
12-
1311
Some stories are written. Others emerge synthetically, in collectives.
1412
CUØ draws on expertise in literary theory, sociology of knowledge,
1513
linguistics, and computation to study how stories shape our personal and shared

0 commit comments

Comments
 (0)