forked from alshedivat/al-folio
-
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 Jekyll-Archives (for tags, categories) and Jekyll site-map (als…
…hedivat#346) * Add webpage to academic pages list * adding panelbear analytics * added categories for projects and horizontal mode display for projects * rewrote the code to ensure it works properly with current project definitions * Style adjustments * added blockquote format, jekyll-archives, tag, year archive pages, and reading time. * added archive meta to blog posts list and individual posts. * added sitemap * stylistic modifications to jekyll-archive addition * Minor fixes Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
- Loading branch information
Showing
15 changed files
with
264 additions
and
9 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,27 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="post"> | ||
|
||
<header class="post-header"> | ||
<h1 class="post-title"> <i class="fas fa-tag fa-sm"></i> {{ page.title }} </h1> | ||
<p class="post-description"> an archive of posts in this category </p> | ||
</header> | ||
|
||
<article> | ||
<div class="table-responsive"> | ||
<table class="table table-sm table-borderless"> | ||
{% for post in page.posts %} | ||
<tr> | ||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th> | ||
<td> | ||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</article> | ||
|
||
</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,27 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="post"> | ||
|
||
<header class="post-header"> | ||
<h1 class="post-title"> <i class="fas fa-hashtag fa-sm"></i> {{ page.title }} </h1> | ||
<p class="post-description"> an archive of posts with this tag </p> | ||
</header> | ||
|
||
<article> | ||
<div class="table-responsive"> | ||
<table class="table table-sm table-borderless"> | ||
{% for post in page.posts %} | ||
<tr> | ||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th> | ||
<td> | ||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</article> | ||
|
||
</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,27 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="post"> | ||
|
||
<header class="post-header"> | ||
<h1 class="post-title"> <i class="fas fa-calendar fa-sm"></i> {{ page.date | date: "%Y" }} </h1> | ||
<p class="post-description"> an archive of posts from this year </p> | ||
</header> | ||
|
||
<article> | ||
<div class="table-responsive"> | ||
<table class="table table-sm table-borderless"> | ||
{% for post in page.posts %} | ||
<tr> | ||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th> | ||
<td> | ||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</article> | ||
|
||
</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
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,41 @@ | ||
--- | ||
layout: post | ||
title: a post with code | ||
date: 2015-07-15 15:09:00 | ||
description: an example of a blog post with some code | ||
tags: formatting code | ||
categories: sample-posts | ||
--- | ||
This theme implements a built-in Jekyll feature, the use of Rouge, for syntax highlighting. | ||
It supports more than 100 languages. | ||
This example is in C++. | ||
All you have to do is wrap your code in a liquid tag: | ||
|
||
{% raw %} | ||
{% highlight c++ linenos %} <br/> code code code <br/> {% endhighlight %} | ||
{% endraw %} | ||
|
||
The keyword `linenos` triggers display of line numbers. | ||
Produces something like this: | ||
|
||
{% highlight c++ linenos %} | ||
|
||
int main(int argc, char const \*argv[]) | ||
{ | ||
string myString; | ||
|
||
cout << "input a string: "; | ||
getline(cin, myString); | ||
int length = myString.length(); | ||
|
||
char charArray = new char * [length]; | ||
|
||
charArray = myString; | ||
for(int i = 0; i < length; ++i){ | ||
cout << charArray[i] << " "; | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
{% endhighlight %} |
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 @@ | ||
--- | ||
layout: post | ||
title: a post with comments | ||
date: 2015-10-20 11:59:00-0400 | ||
description: an example of a blog post with comments | ||
comments: true | ||
categories: sample-posts external-services | ||
--- | ||
This post shows how to add DISQUS comments. |
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
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