diff --git a/.idea/runConfigurations/jekyll_serve.xml b/.idea/runConfigurations/jekyll_serve.xml new file mode 100644 index 0000000..364e51c --- /dev/null +++ b/.idea/runConfigurations/jekyll_serve.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_includes/post-summary.html b/_includes/post-summary.html index 25a0c5c..8bc37fa 100644 --- a/_includes/post-summary.html +++ b/_includes/post-summary.html @@ -1,15 +1,15 @@ -
-
+
+ -
-
-

- Latest posts -

-

- These are the latest posts in the blog in reverse chronological order. -

- {% for post in site.posts %} - {% include post-summary.html %} - {% endfor %} -
- -
-

- Posts by tag -

-

- These are all the posts in the blog, grouped by their tag. -

-
- {% for tag_pair in site.tags %} -
-

- {{ tag_pair[0] }} -

- {% for post in tag_pair[1] %} - {% include post-summary.html %} - {% endfor %} -
+{% if site.posts %} +
+

+ Posts +

+

+ These are the latest posts in the site in reverse chronological order. +

+ {% for post in site.posts %} + {% include post-summary.html %} {% endfor %}
-
\ No newline at end of file +
+

+ Posts by tag +

+

+ These are all the posts in the blog, grouped by their tag. +

+
+ {% for tag_pair in site.tags %} +
+

+ {{ tag_pair[0] }} +

+ {% for post in tag_pair[1] %} + {% include post-summary.html %} + {% endfor %} +
+ {% endfor %} +
+
+{% else %} +
+

+ Pages +

+

+ These are the pages in the site in alphabetical order. +

+ {% for post in site.posts %} + {% include page-summary.html %} + {% endfor %} +
+{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index caf9fb1..0abb3f9 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,13 +2,13 @@ layout: base --- -
-
+
+
-
+
{% for tag in page.tags %} {% include tag.html %} {% endfor %} diff --git a/_posts/2021-10-10-test.md b/_posts/2021-10-10-test.md index 17c0ea6..21a7ed1 100644 --- a/_posts/2021-10-10-test.md +++ b/_posts/2021-10-10-test.md @@ -1,18 +1,7 @@ --- layout: post title: "Hello world!" -tag: example +tags: example first hello-world --- This is a sample post made to display posts made using `jekyll-theme-bluelib`. - -`:)` - -
-
- Definition -
-
- Description! -
-
\ No newline at end of file diff --git a/assets/css/bluelib-jekyll.css b/assets/css/bluelib-jekyll.css index 54e45c8..3a7b5dd 100644 --- a/assets/css/bluelib-jekyll.css +++ b/assets/css/bluelib-jekyll.css @@ -1,4 +1,4 @@ -.post-summary { +.summary { display: grid; grid-template-areas: @@ -12,7 +12,7 @@ white-space: nowrap; } -.post-summary > .post-title { +.summary > .summary-title { grid-area: title; justify-self: start; @@ -20,7 +20,7 @@ font-weight: bold; } -.post-summary > .post-date { +.summary > .summary-date { grid-area: date; justify-self: start; @@ -30,7 +30,7 @@ opacity: 0.7; } -.post-summary > .post-tags { +.summary > .summary-tags { grid-area: tags; justify-self: end; @@ -39,7 +39,7 @@ gap: 4px; } -.page-info { +.info { display: flex; flex-direction: row; gap: 4px; @@ -48,7 +48,7 @@ font-size: small; } -.page-info > .page-date { +.info > .info-date { display: inline !important; margin: 0 !important; width: auto !important; @@ -56,7 +56,7 @@ justify-self: start; } -.page-info > .page-tags { +.info > .info-tags { display: flex; flex-direction: row; gap: 4px; diff --git a/index.html b/index.html index 66d0266..1ad837b 100644 --- a/index.html +++ b/index.html @@ -3,4 +3,4 @@ layout: home title: "jekyll-theme-bluelib" --- -Appearently, Jekyll needs index.html to exist. \ No newline at end of file +This is the example home page of jekyll-theme-bluelib.