-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added a blog hub - Added a LICENCE - Generalized some post layout through _config.yaml - Posts now have tags - Posts now have excerpts
- Loading branch information
1 parent
f7bdefb
commit e032289
Showing
12 changed files
with
727 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<link rel="stylesheet" href="/src/styles/posts-hub.css"></link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
{% include themes-style.html %} | ||
{% include trees-style.html %} | ||
{% include post-style.html %} | ||
{% if page.style %} | ||
{% include {{page.style}}-style.html %} | ||
{% endif %} | ||
{% if page.katex %} | ||
<!--KaTeX loading--> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"> | ||
|
@@ -30,6 +33,9 @@ | |
</div> | ||
<div id="content"> | ||
<h1>{{ page.title }}</h1> | ||
{% if page.tag %} | ||
<p class="tag">{{ page.tag }}</p> | ||
{% endif %} | ||
{{ content }} | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
layout: post | ||
title: Posts Hub | ||
style: posts-hub | ||
--- | ||
|
||
<div id="posts-list"> | ||
{% for post in site.posts %} | ||
<div class="post"> | ||
<div class="post-header"> | ||
<a href="{{ post.url }}">{{ post.title }} - {{post.date | date_to_string}}</a> | ||
<p class="tag">{{ post.tag }}</p> | ||
</div> | ||
<div class="post-content"> | ||
{{ post.excerpt }} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.post { | ||
margin-bottom: 4em; | ||
border-left: var(--border-thickness) solid var(--current-text-color); | ||
padding-left: 2em; | ||
} | ||
|
||
.post-content { | ||
font-style: italic; | ||
} |