Skip to content

Commit 3d6e2b8

Browse files
committed
first draft of memos
1 parent 858651b commit 3d6e2b8

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

_layouts/memo.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
layout: default
3+
---
4+
5+
{% assign item = project | default: page %}
6+
7+
{% assign subsection_text = "Author: " | append: item.author %}
8+
9+
{% include section-break.html section="Lab Memo" subsection=subsection_text %}
10+
11+
<div class="mx-4 lg:mx-8 grid grid-cols-1 md:grid-cols-3 mb-8 lg:mb-16 items-center">
12+
<!-- Tag & Title (Always First) -->
13+
<div class="md:col-span-2">
14+
15+
<div class="text-sm font-mono text-gray-600 mt-1">{{ item.date | date: "%B %d, %Y" }}</div>
16+
<div class="text-gray-900 font-bold text-xl font-ibmsans -skew-1">
17+
{{ item.title }}
18+
</div>
19+
20+
<div class="text-xs font-ibmserif mt-2 italic pb-2 border-b-2 md:border-none border-dashed border-gray-400">
21+
{% for person in item.people %}
22+
{{ person }}{% unless forloop.last %}, {% endunless %}
23+
{% endfor %}
24+
</div>
25+
26+
</div>
27+
28+
<!-- Image Section (Appears between title and text in mobile, right side in desktop) -->
29+
<div class="w-full order-2 md:col-span-1 md:order-3 self-start py-5">
30+
31+
<img class="w-full h-10 sm:h-15 md:h-auto object-cover rounded-lg" src="/assets/images/{{
32+
item.image_folder | default: 'projects' }}/{{ item.image }}" alt="{{ item.image_alt }}">
33+
34+
</div>
35+
36+
<!-- Text Section (Takes 2/3 space on desktop, below image in mobile) -->
37+
38+
<div class="prose-sm md:prose-base md:col-span-2 md:pr-6 order-3 md:order-2 font-ibmserif">
39+
40+
{{ item.content | markdownify }}
41+
</div>
42+
</div>
43+
44+

0 commit comments

Comments
 (0)