diff --git a/_categories/just-for-fun.md b/_categories/just-for-fun.md new file mode 100644 index 0000000..41627b5 --- /dev/null +++ b/_categories/just-for-fun.md @@ -0,0 +1,4 @@ +--- +layout: category +category: just-for-fun +--- \ No newline at end of file diff --git a/_categories/linguistics.md b/_categories/linguistics.md new file mode 100644 index 0000000..800a7db --- /dev/null +++ b/_categories/linguistics.md @@ -0,0 +1,4 @@ +--- +layout: category +category: linguistics +--- \ No newline at end of file diff --git a/_config.yml b/_config.yml index b23b693..b461523 100644 --- a/_config.yml +++ b/_config.yml @@ -5,4 +5,7 @@ markdown: kramdown collections: posts: - permalink: /posts/:title + permalink: /article/:title + categories: + output: true + permalink: /articles/:title diff --git a/_layouts/category.html b/_layouts/category.html new file mode 100644 index 0000000..4eb6515 --- /dev/null +++ b/_layouts/category.html @@ -0,0 +1,16 @@ +--- +layout: default +css: articles +--- + +

All posts

+ +{% for post in site.posts %} + {% if post.categories contains page.category %} +
+

{{ post.title }}

+ {{ post.excerpt }} +

Continue reading →

+
+ {% endif %} +{% endfor %} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 3261c42..97548e7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,6 +10,11 @@ {% endfor %} {% endif %} + {% if layout.css %} + {% for stylesheet in layout.css %} + + {% endfor %} + {% endif %}
@@ -26,7 +31,7 @@

Adam An

{{page.title}}

- {% if page.date %} + {% if page.collection == 'posts' %}

{{ page.date | date: '%B %d, %Y' }}

{% endif %} {% if page.subtitle %} @@ -36,6 +41,5 @@

{{page.subtitle}}

{{content}}
- \ No newline at end of file diff --git a/_posts/2024-01-23-syntax-cookbook.md b/_posts/2024-01-23-syntax-cookbook.md index fa37009..e5bd943 100644 --- a/_posts/2024-01-23-syntax-cookbook.md +++ b/_posts/2024-01-23-syntax-cookbook.md @@ -2,6 +2,8 @@ layout: default title: Syntax cookbook css: syntax +categories: + - linguistics --- Here's a "cookbook" of various kinds of English syntax trees. This is my attempt at capturing a happy medium of what's commonly introduced in introductory texts and my own undergrad syntax class. diff --git a/_posts/2024-05-20-ten-things.md b/_posts/2024-05-20-ten-things.md index ca2765c..60b3658 100644 --- a/_posts/2024-05-20-ten-things.md +++ b/_posts/2024-05-20-ten-things.md @@ -2,6 +2,8 @@ layout: default title: Ten things css: ten-things +categories: + - just-for-fun --- I once saw a kooky old professor website with a page full of lists of ten things. I never found it again, but in tribute to that, here are some lists of ten things. diff --git a/_posts/2024-06-02-connections-vault.md b/_posts/2024-06-02-connections-vault.md index 038abd4..7611492 100644 --- a/_posts/2024-06-02-connections-vault.md +++ b/_posts/2024-06-02-connections-vault.md @@ -1,6 +1,8 @@ --- layout: default title: The Connections vault +categories: + - just-for-fun --- Here are some Connections puzzles I've written. diff --git a/articles.html b/articles.html index 806a157..c1c2215 100644 --- a/articles.html +++ b/articles.html @@ -4,6 +4,15 @@ css: articles --- +
+

Categories:

+ +
+ {% if site.posts.size == 0 %}

Coming soon...

{% endif %} diff --git a/css/articles.css b/css/articles.css index d70b58a..4367720 100644 --- a/css/articles.css +++ b/css/articles.css @@ -4,4 +4,18 @@ .post > * + * { margin-top: 0.5rem; +} + +#categories { + display: flex; + gap: 1rem; +} + +#categories ul { + list-style-type: none; +} + +#categories li:not(:last-child):after { + content: "|"; + padding-left: 1rem; } \ No newline at end of file diff --git a/css/style.css b/css/style.css index 90c1916..e75e93d 100644 --- a/css/style.css +++ b/css/style.css @@ -148,4 +148,8 @@ a[name] { img { max-width: 100%; +} + +li ol, li ul { + margin-left: 1rem; } \ No newline at end of file