From 707068e510defe40b440a97843de55a771e859f5 Mon Sep 17 00:00:00 2001 From: eggy <eggyrules@gmail.com> Date: Wed, 7 Apr 2021 17:41:57 -0400 Subject: [PATCH] fix about page and css --- src/_includes/default.liquid | 4 +--- src/_includes/typical.liquid | 7 +++++++ src/about.md | 2 +- src/index.html | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/_includes/typical.liquid diff --git a/src/_includes/default.liquid b/src/_includes/default.liquid index 6f88f12..41a5b48 100644 --- a/src/_includes/default.liquid +++ b/src/_includes/default.liquid @@ -8,6 +8,4 @@ layout: main {% include nav %} -<div class="prose dark:prose-dark"> - {{ content }} -</div> +{{ content }} diff --git a/src/_includes/typical.liquid b/src/_includes/typical.liquid new file mode 100644 index 0000000..2ad80c9 --- /dev/null +++ b/src/_includes/typical.liquid @@ -0,0 +1,7 @@ +--- +layout: default +--- + +<div class="prose dark:prose-dark"> + {{ content }} +</div> diff --git a/src/about.md b/src/about.md index 731199d..f7aacc4 100644 --- a/src/about.md +++ b/src/about.md @@ -1,5 +1,5 @@ --- -layout: default +layout: typical title: About --- This site is generated by the static site generator [Eleventy](https://www.11ty.dev) with templates and Markdown — because really, writing HTML by hand is tedious and I don't know why I ever tried — and its source is available [here](https://git.eggworld.tk/eggy/public). The theme this site uses is taken from [here.](https://github.com/kohrongying/11ty-blog-starter) diff --git a/src/index.html b/src/index.html index 7fbe4aa..e30304c 100644 --- a/src/index.html +++ b/src/index.html @@ -10,9 +10,9 @@ pagination: {% for post in pagination.items %} {% if post.data.published %} -<div class="py-2"> +<div class="py-4"> <p> - <span class="text-2xl sm:text-3xl font-bold hover:text-blue-700 leading-tight"><a href="{{ post.url }}">{{ post.data.title }}</a></span> + <span class="text-2xl sm:text-2xl font-bold hover:text-blue-700 leading-tight"><a href="{{ post.url }}">{{ post.data.title }}</a></span> <span class="text-base sm:text-2xs font-normal"> · {{ post.templateContent | readTime }} min read</span> </p> <em>{{ post.date | date: "%Y-%m-%d" }}</em>