Skip to content

Commit d361e0a

Browse files
AbstractGeekalshedivat
authored andcommitted
Added Jekyll-Archives (for tags, categories) and Jekyll site-map (alshedivat#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 <[email protected]>
1 parent 364d7c4 commit d361e0a

8 files changed

+30
-3
lines changed

_config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,21 @@ jekyll-archives:
282282
display_tags: ['formatting', 'images', 'links', 'math', 'code'] # these tags will be displayed on the front page of your blog
283283
display_categories: ['blockquotes'] # these categories will be displayed on the front page of your blog
284284

285+
# -----------------------------------------------------------------------------
286+
# Jekyll Archives
287+
# -----------------------------------------------------------------------------
288+
289+
jekyll-archives:
290+
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
291+
layouts:
292+
year: archive-year
293+
tag: archive-tag
294+
category: archive-category
295+
permalinks:
296+
year: '/blog/:year/'
297+
tag: '/blog/tag/:name/'
298+
category: '/blog/category/:name/'
299+
285300
# -----------------------------------------------------------------------------
286301
# Jekyll Scholar
287302
# -----------------------------------------------------------------------------

_posts/2015-03-15-formatting-and-links.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: post
33
title: a post with formatting and links
44
date: 2015-03-15 16:40:16
55
description: march & april, looking forward to summer
6+
tags: formatting links
7+
categories: sample-posts
68
---
79
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.
810

_posts/2015-05-15-images.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: post
33
title: a post with images
44
date: 2015-05-15 21:01:00
55
description: this is what included images could look like
6+
tags: formatting images
7+
categories: sample-posts
68
---
79
This is an example post with image galleries.
810

_posts/2015-07-15-code.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: post
33
title: a post with code
44
date: 2015-07-15 15:09:00
55
description: an example of a blog post with some code
6+
tags: formatting code
7+
categories: sample-posts
68
---
79
This theme implements a built-in Jekyll feature, the use of Rouge, for syntax highlighting.
810
It supports more than 100 languages.

_posts/2015-10-20-comments.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ title: a post with comments
44
date: 2015-10-20 11:59:00-0400
55
description: an example of a blog post with comments
66
comments: true
7+
categories: sample-posts external-services
78
---
89
This post shows how to add DISQUS comments.

_posts/2015-10-20-math.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: post
33
title: a post with math
44
date: 2015-10-20 11:12:00-0400
55
description: an example of a blog post with some math
6+
tags: formatting math
7+
categories: sample-posts
68
---
79
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/) engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$.
810

_posts/2020-09-28-github-metadata.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ layout: post
33
title: a post with github metadata
44
date: 2020-09-28 21:01:00
55
description: a quick run down on accessing github metadata.
6+
categories: sample-posts external-services
67
---
78

89
A sample blog page that demonstrates the accessing of github meta data.
910

1011
## What does Github-MetaData do?
1112
* Propagates the site.github namespace with repository metadata
12-
* Setting site variables :
13+
* Setting site variables :
1314
* site.title
1415
* site.description
1516
* site.url
@@ -28,7 +29,7 @@ A sample blog page that demonstrates the accessing of github meta data.
2829
* URL : {{ site.github.url }}
2930
* BaseURL : {{ site.github.baseurl }}
3031
* Archived : {{ site.github.archived}}
31-
* Contributors :
32+
* Contributors :
3233
{% for contributor in site.github.contributors %}
3334
* {{ contributor.login }}
34-
{% endfor %}
35+
{% endfor %}

_posts/2020-09-28-twitter.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: post
33
title: a post with twitter
44
date: 2020-09-28 11:12:00-0400
55
description: an example of a blog post with twitter
6+
tags: formatting
7+
categories: sample-posts external-services
68
---
79
A sample blog page that demonstrates the inclusion of Tweets/Timelines/etc.
810

0 commit comments

Comments
 (0)