Skip to content

Commit 801365d

Browse files
committed
more
1 parent c1656c8 commit 801365d

17 files changed

Lines changed: 330 additions & 719 deletions

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ back_to_top: true # set to false to disable the back to top button
3232
repo_theme_light: default # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md
3333
repo_theme_dark: dark # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md
3434
repo_trophies:
35-
enabled: true
35+
enabled: false
3636
theme_light: flat # https://github.com/ryo-ma/github-profile-trophy
3737
theme_dark: gitdimmed # https://github.com/ryo-ma/github-profile-trophy
3838

_pages/blog.md

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
---
2+
layout: default
3+
permalink: /blog/
4+
title: blog
5+
nav: false
6+
nav_order: 1
7+
pagination:
8+
enabled: true
9+
collection: posts
10+
permalink: /page/:num/
11+
per_page: 5
12+
sort_field: date
13+
sort_reverse: true
14+
trail:
15+
before: 1 # The number of links before the current page
16+
after: 3 # The number of links after the current page
17+
---
18+
19+
<div class="post">
20+
21+
{% assign blog_name_size = site.blog_name | size %}
22+
{% assign blog_description_size = site.blog_description | size %}
23+
24+
{% if blog_name_size > 0 or blog_description_size > 0 %}
25+
26+
<div class="header-bar">
27+
<h1>{{ site.blog_name }}</h1>
28+
<h2>{{ site.blog_description }}</h2>
29+
</div>
30+
{% endif %}
31+
32+
{% if site.display_tags and site.display_tags.size > 0 or site.display_categories and site.display_categories.size > 0 %}
33+
34+
<div class="tag-category-list">
35+
<ul class="p-0 m-0">
36+
{% for tag in site.display_tags %}
37+
<li>
38+
<i class="fa-solid fa-hashtag fa-sm"></i> <a href="{{ tag | slugify | prepend: '/blog/tag/' | relative_url }}">{{ tag }}</a>
39+
</li>
40+
{% unless forloop.last %}
41+
<p>&bull;</p>
42+
{% endunless %}
43+
{% endfor %}
44+
{% if site.display_categories.size > 0 and site.display_tags.size > 0 %}
45+
<p>&bull;</p>
46+
{% endif %}
47+
{% for category in site.display_categories %}
48+
<li>
49+
<i class="fa-solid fa-tag fa-sm"></i> <a href="{{ category | slugify | prepend: '/blog/category/' | relative_url }}">{{ category }}</a>
50+
</li>
51+
{% unless forloop.last %}
52+
<p>&bull;</p>
53+
{% endunless %}
54+
{% endfor %}
55+
</ul>
56+
</div>
57+
{% endif %}
58+
59+
{% assign featured_posts = site.posts | where: "featured", "true" %}
60+
{% if featured_posts.size > 0 %}
61+
<br>
62+
63+
<div class="container featured-posts">
64+
{% assign is_even = featured_posts.size | modulo: 2 %}
65+
<div class="row row-cols-{% if featured_posts.size <= 2 or is_even == 0 %}2{% else %}3{% endif %}">
66+
{% for post in featured_posts %}
67+
<div class="col mb-4">
68+
<a href="{{ post.url | relative_url }}">
69+
<div class="card hoverable">
70+
<div class="row g-0">
71+
<div class="col-md-12">
72+
<div class="card-body">
73+
<div class="float-right">
74+
<i class="fa-solid fa-thumbtack fa-xs"></i>
75+
</div>
76+
<h3 class="card-title text-lowercase">{{ post.title }}</h3>
77+
<p class="card-text">{{ post.description }}</p>
78+
79+
{% if post.external_source == blank %}
80+
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
81+
{% else %}
82+
{% assign read_time = post.feed_content | strip_html | number_of_words | divided_by: 180 | plus: 1 %}
83+
{% endif %}
84+
{% assign year = post.date | date: "%Y" %}
85+
86+
<p class="post-meta">
87+
{{ read_time }} min read &nbsp; &middot; &nbsp;
88+
<a href="{{ year | prepend: '/blog/' | relative_url }}">
89+
<i class="fa-solid fa-calendar fa-sm"></i> {{ year }} </a>
90+
</p>
91+
</div>
92+
</div>
93+
</div>
94+
</div>
95+
</a>
96+
</div>
97+
{% endfor %}
98+
</div>
99+
</div>
100+
<hr>
101+
102+
{% endif %}
103+
104+
<ul class="post-list">
105+
106+
{% if page.pagination.enabled %}
107+
{% assign postlist = paginator.posts %}
108+
{% else %}
109+
{% assign postlist = site.posts %}
110+
{% endif %}
111+
112+
{% for post in postlist %}
113+
114+
{% if post.external_source == blank %}
115+
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
116+
{% else %}
117+
{% assign read_time = post.feed_content | strip_html | number_of_words | divided_by: 180 | plus: 1 %}
118+
{% endif %}
119+
{% assign year = post.date | date: "%Y" %}
120+
{% assign tags = post.tags | join: "" %}
121+
{% assign categories = post.categories | join: "" %}
122+
123+
<li>
124+
125+
{% if post.thumbnail %}
126+
127+
<div class="row">
128+
<div class="col-sm-9">
129+
{% endif %}
130+
<h3>
131+
{% if post.redirect == blank %}
132+
<a class="post-title" href="{{ post.url | relative_url }}">{{ post.title }}</a>
133+
{% elsif post.redirect contains '://' %}
134+
<a class="post-title" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
135+
<svg width="2rem" height="2rem" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
136+
<path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path>
137+
</svg>
138+
{% else %}
139+
<a class="post-title" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
140+
{% endif %}
141+
</h3>
142+
<p>{{ post.description }}</p>
143+
<p class="post-meta">
144+
{{ read_time }} min read &nbsp; &middot; &nbsp;
145+
{{ post.date | date: '%B %d, %Y' }}
146+
{% if post.external_source %}
147+
&nbsp; &middot; &nbsp; {{ post.external_source }}
148+
{% endif %}
149+
</p>
150+
<p class="post-tags">
151+
<a href="{{ year | prepend: '/blog/' | relative_url }}">
152+
<i class="fa-solid fa-calendar fa-sm"></i> {{ year }} </a>
153+
154+
{% if tags != "" %}
155+
&nbsp; &middot; &nbsp;
156+
{% for tag in post.tags %}
157+
<a href="{{ tag | slugify | prepend: '/blog/tag/' | relative_url }}">
158+
<i class="fa-solid fa-hashtag fa-sm"></i> {{ tag }}</a>
159+
{% unless forloop.last %}
160+
&nbsp;
161+
{% endunless %}
162+
{% endfor %}
163+
{% endif %}
164+
165+
{% if categories != "" %}
166+
&nbsp; &middot; &nbsp;
167+
{% for category in post.categories %}
168+
<a href="{{ category | slugify | prepend: '/blog/category/' | relative_url }}">
169+
<i class="fa-solid fa-tag fa-sm"></i> {{ category }}</a>
170+
{% unless forloop.last %}
171+
&nbsp;
172+
{% endunless %}
173+
{% endfor %}
174+
{% endif %}
175+
</p>
176+
177+
{% if post.thumbnail %}
178+
179+
</div>
180+
181+
<div class="col-sm-3">
182+
<img class="card-img" src="{{ post.thumbnail | relative_url }}" style="object-fit: cover; height: 90%" alt="image">
183+
</div>
184+
</div>
185+
{% endif %}
186+
</li>
187+
188+
{% endfor %}
189+
190+
</ul>
191+
192+
{% if page.pagination.enabled %}
193+
{% include pagination.liquid %}
194+
{% endif %}
195+
196+
</div>

_pages/books.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: book-shelf
3+
title: bookshelf
4+
permalink: /books/
5+
nav: false
6+
collection: books
7+
---
8+
9+
> What an astonishing thing a book is. It's a flat object made from a tree with flexible parts on which are imprinted lots of funny dark squiggles. But one glance at it and you're inside the mind of another person, maybe somebody dead for thousands of years. Across the millennia, an author is speaking clearly and silently inside your head, directly to you. Writing is perhaps the greatest of human inventions, binding together people who never knew each other, citizens of distant epochs. Books break the shackles of time. A book is proof that humans are capable of working magic.
10+
>
11+
> -- Carl Sagan, Cosmos, Part 11: The Persistence of Memory (1980)
12+
13+
## Books that I am reading, have read, or will read

_pages/dropdown.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: page
3+
title: submenus
4+
nav: false
5+
nav_order: 8
6+
dropdown: true
7+
children:
8+
- title: bookshelf
9+
permalink: /books/
10+
- title: divider
11+
- title: blog
12+
permalink: /blog/
13+
---

_pages/profiles.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: profiles
3+
permalink: /people/
4+
title: people
5+
description: members of the lab or group
6+
nav: false
7+
nav_order: 7
8+
9+
profiles:
10+
# if you want to include more than one profile, just replicate the following block
11+
# and create one content file for each profile inside _pages/
12+
# - align: right
13+
# image: prof_pic.jpg
14+
# content: about_einstein.md
15+
# image_circular: false # crops the image to make it circular
16+
# more_info: >
17+
# <p>555 your office number</p>
18+
# <p>123 your address street</p>
19+
# <p>Your City, State 12345</p>
20+
# - align: left
21+
# image: prof_pic.jpg
22+
# content: about_einstein.md
23+
# image_circular: false # crops the image to make it circular
24+
# more_info: >
25+
# <p>555 your office number</p>
26+
# <p>123 your address street</p>
27+
# <p>Your City, State 12345</p>
28+
---

_pages/projects.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
layout: page
3+
title: projects
4+
permalink: /projects/
5+
description:
6+
nav: true
7+
nav_order: 3
8+
#display_categories: [work, fun]
9+
display_categories: [work]
10+
horizontal: false
11+
---
12+
13+
<!-- pages/projects.md -->
14+
<div class="projects">
15+
{% if site.enable_project_categories and page.display_categories %}
16+
<!-- Display categorized projects -->
17+
{% for category in page.display_categories %}
18+
<a id="{{ category }}" href=".#{{ category }}">
19+
<h2 class="category">{{ category }}</h2>
20+
</a>
21+
{% assign categorized_projects = site.projects | where: "category", category %}
22+
{% assign sorted_projects = categorized_projects | sort: "importance" %}
23+
<!-- Generate cards for each project -->
24+
{% if page.horizontal %}
25+
<div class="container">
26+
<div class="row row-cols-1 row-cols-md-2">
27+
{% for project in sorted_projects %}
28+
{% include projects_horizontal.liquid %}
29+
{% endfor %}
30+
</div>
31+
</div>
32+
{% else %}
33+
<div class="row row-cols-1 row-cols-md-3">
34+
{% for project in sorted_projects %}
35+
{% include projects.liquid %}
36+
{% endfor %}
37+
</div>
38+
{% endif %}
39+
{% endfor %}
40+
41+
{% else %}
42+
43+
<!-- Display projects without categories -->
44+
45+
{% assign sorted_projects = site.projects | sort: "importance" %}
46+
47+
<!-- Generate cards for each project -->
48+
49+
{% if page.horizontal %}
50+
51+
<div class="container">
52+
<div class="row row-cols-1 row-cols-md-2">
53+
{% for project in sorted_projects %}
54+
{% include projects_horizontal.liquid %}
55+
{% endfor %}
56+
</div>
57+
</div>
58+
{% else %}
59+
<div class="row row-cols-1 row-cols-md-3">
60+
{% for project in sorted_projects %}
61+
{% include projects.liquid %}
62+
{% endfor %}
63+
</div>
64+
{% endif %}
65+
{% endif %}
66+
</div>

_pages/repositories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: page
33
permalink: /repositories/
44
title: repositories
55
description:
6-
nav: true
6+
nav: false
77
nav_order: 3
88
---
99

_pages/talks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ layout: page
33
title: talks
44
permalink: /talks/
55
---
6+
7+
{% include talks.liquid %}

0 commit comments

Comments
 (0)