-
-
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.
- Loading branch information
init
committed
Nov 18, 2024
1 parent
a12645b
commit 9060c26
Showing
8 changed files
with
216 additions
and
109 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,35 @@ | ||
|
||
<div class="news"> | ||
{% if site.latest_posts != blank -%} | ||
{%- assign latest_posts_size = site.posts | size -%} | ||
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 60vw"{% endif %}> | ||
<table class="table table-sm table-borderless"> | ||
{%- assign latest_posts = site.posts -%} | ||
{% if site.latest_posts.limit %} | ||
{% assign latest_posts_limit = site.latest_posts.limit %} | ||
{% else %} | ||
{% assign latest_posts_limit = latest_posts_size %} | ||
{% endif %} | ||
{% for item in latest_posts limit: latest_posts_limit %} | ||
<tr> | ||
<th scope="row" style="width: 20%">{{ item.date | date: "%b %-d, %Y" }}</th> | ||
<td> | ||
{% if item.redirect == blank %} | ||
<a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a> | ||
{% elsif item.redirect contains '://' %} | ||
<a class="news-title" href="{{ item.redirect }}" target="_blank">{{ item.title }}</a> | ||
<svg width="2rem" height="2rem" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path> | ||
</svg> | ||
{% else %} | ||
<a class="news-title" href="{{ item.redirect | relative_url }}">{{ item.title }}</a> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{%- endfor %} | ||
</table> | ||
</div> | ||
{%- else -%} | ||
<p>No posts so far...</p> | ||
{%- endif %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% assign have_related_posts = false %} | ||
|
||
{% for post in site.related_posts | limit: site.related_blog_posts.max_related %} | ||
{% unless have_related_posts %} | ||
{% assign have_related_posts = true %} | ||
<br> | ||
<hr> | ||
<br> | ||
<ul class="list-disc pl-8"></ul> | ||
|
||
<!-- Adds related posts to the end of an article --> | ||
<h2 class="text-3xl font-semibold mb-4 mt-12">Enjoy Reading This Article?</h2> | ||
<p class="mb-2">Here are some more articles you might like to read next:</p> | ||
{% endunless %} | ||
|
||
<li class="my-2"> | ||
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> | ||
</li> | ||
{% endfor %} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
<div class="publications"> | ||
<h2>publications</h2> | ||
<h2>selected publications</h2> | ||
{% bibliography -f papers -q @*[selected=true]* %} | ||
</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
Oops, something went wrong.