Skip to content

Commit 54350ac

Browse files
committed
update .gitignore and remove .obsidian/
1 parent b36cae6 commit 54350ac

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ pnpm-debug.log*
2222

2323
# jetbrains setting folder
2424
.idea/
25+
26+
# obsidian
27+
.obsidian/

src/components/Header.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ const currentPath = Astro.url.pathname;
3434
</svg>
3535
<b class="no-underline">Andrew Moses</b>
3636
</a>
37-
<a class={currentPath === "/blog" ? "nav bold" : "nav"} href="/blog"
38-
>Blog</a
37+
<a class={currentPath === "/blog" ? "nav bold" : "nav"} href="/blog">Blog</a
3938
>
4039
<a class="nav" href="/resume.pdf">Resume</a>
4140
<!-- <a class={currentPath === "/about" ? "nav bold" : "nav"} href="/about">About</a> -->

src/pages/blog.astro

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const allPosts = await Astro.glob("./blog/*.md");
55
function groupPostsByYearAndMonth(posts) {
66
const grouped = {};
77
8-
posts.forEach(post => {
8+
posts.forEach((post) => {
99
const date = new Date(post.frontmatter.date);
1010
const year = date.getFullYear();
11-
const month = date.toLocaleString('default', { month: 'long' });
11+
const month = date.toLocaleString("default", { month: "long" });
1212
1313
const key = `${year}-${month}`;
1414
if (!grouped[key]) {
@@ -21,27 +21,33 @@ function groupPostsByYearAndMonth(posts) {
2121
}
2222
2323
const groupedPosts = groupPostsByYearAndMonth(allPosts);
24-
const sortedKeys = Object.keys(groupedPosts).sort((a, b) => new Date(b) - new Date(a)); // Sort keys in reverse order
24+
const sortedKeys = Object.keys(groupedPosts).sort(
25+
(a, b) => new Date(b) - new Date(a)
26+
); // Sort keys in reverse order
2527
---
2628

2729
<BaseLayout>
28-
{sortedKeys.map((key) => {
29-
const [year, month] = key.split("-");
30-
return (
31-
<section key={key}>
32-
<h2 style="margin-bottom: 0px;">{month} {year}</h2>
33-
<ul style="margin-top: 4px;">
34-
{groupedPosts[key].map((post) => (
35-
<li key={post.url}>
36-
<a href={post.url} class="blog-link">
37-
{post.frontmatter.title} - <i>{post.frontmatter.subtitle}</i>
38-
</a>
39-
</li>
40-
))}
41-
</ul>
42-
</section>
43-
);
44-
})}
30+
{
31+
sortedKeys.map((key) => {
32+
const [year, month] = key.split("-");
33+
return (
34+
<section key={key}>
35+
<h2 style="margin-bottom: 0px;">
36+
{month} {year}
37+
</h2>
38+
<ul style="margin-top: 4px;">
39+
{groupedPosts[key].map((post) => (
40+
<li key={post.url}>
41+
<a href={post.url} class="blog-link">
42+
{post.frontmatter.title} - <i>{post.frontmatter.subtitle}</i>
43+
</a>
44+
</li>
45+
))}
46+
</ul>
47+
</section>
48+
);
49+
})
50+
}
4551
</BaseLayout>
4652

4753
<style>

src/pages/blog/upl-people-counter.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ There's no doubt that as far back as IRC, members of the UPL messaged each other
3434

3535
Well, myself, in collaboration with other UPL members, decided to fix this issue in, perhaps, the most CS-student-esque way possible: an automated system to identify the exact number of people in the lab.
3636

37-
(rest of article to come here soon! sorry for the wait!)
37+
## Switching to door sensing
38+
39+
This worked perfectly for a while -- people would check the Discord channel name and see an estimated count of the number of people in the room. If it said "zero people", they could infer that the UPL wasn't open.
40+
41+
However, this solution started presenting issues. For one, having people in the room didn't necessarily indicate that the UPL was open -- there could be a meeting, or a separate gathering where the doors were closed and people weren't allowed inside. This was confusing to people who might have seen

src/pages/posts/blog1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ subtitle: "This is the first blog post"
88

99
# Hello World
1010

11-
Lorem ipsum odor amet, consectetuer adipiscing elit. Sem ac proin erat; efficitur maecenas lobortis tempus. Sed duis euismod ultricies netus arcu magnis rutrum velit. Hac himenaeos finibus lacus nascetur curabitur ornare montes. Nibh ullamcorper risus ligula, leo mauris scelerisque ex felis. Sed pretium gravida volutpat semper nisl primis pellentesque eu torquent. Tempus vulputate efficitur etiam class diam sapien potenti?
11+
Lorem ipsum odor amet, consectetuer adipiscing elit. Sem ac proin erat; efficitur maecenas lobortis tempus. Sed duis euismod ultricies netus arcu magnis rutrum velit. Hac himenaeos finibus lacus nascetur curabitur ornare montes. Nibh ullamcorper risus ligula, leo mauris scelerisque ex felis. Sed pretium gravida volutpat semper nisl primis pellentesque eu torquent. Tempus vulputate efficitur etiam class diam sapien potenti?
1212

1313
```js
1414
for i in range(0,5)

0 commit comments

Comments
 (0)