Skip to content

Commit a9ae287

Browse files
Merge pull request #3 from ShardulJunagade/testing
Testing (see description) - add support for giscus comments - link external blog website (development ongoing using Quarto) - use exclude in config file instead of deleting unnecessary files to avoid merge conflicts while updating complete repo from al-folio (credits: alshedivat/al-folio#2933 (comment)) - undo livereload (wasnt needed in first place)
2 parents 194e8dc + 2e977a9 commit a9ae287

File tree

9 files changed

+62
-33
lines changed

9 files changed

+62
-33
lines changed

_config.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ related_blog_posts:
102102
# Giscus comments (RECOMMENDED)
103103
# Follow instructions on https://giscus.app/ to setup for your repo to fill out the information below.
104104
giscus:
105-
repo: # <your-github-user-name>/<your-github-repo-name>
106-
repo_id: # leave empty or specify your repo_id (see https://giscus.app/)
107-
category: Comments # name of the category under which discussions will be created
108-
category_id: # leave empty or specify your category_id (see https://giscus.app/)
109-
mapping: title # identify discussions by post title
105+
repo: "ShardulJunagade/giscus" # <your-github-user-name>/<your-github-repo-name>
106+
repo_id: "R_kgDOOHUBgA" # leave empty or specify your repo_id (see https://giscus.app/)
107+
category: "Personal Website" # name of the category under which discussions will be created
108+
category_id: "DIC_kwDOOHUBgM4Cn55X" # leave empty or specify your category_id (see https://giscus.app/)
109+
mapping: pathname # title - identify discussions by post title
110110
strict: 1 # use strict identification mode
111111
reactions_enabled: 1 # enable (1) or disable (0) emoji reactions
112-
input_position: bottom # whether to display input form below (bottom) or above (top) the comments
112+
input_position: top # whether to display input form below (bottom) or above (top) the comments
113113
theme: preferred_color_scheme # name of the color scheme (preferred works well with al-folio light/dark mode)
114114
emit_metadata: 0
115115
lang: en
@@ -121,18 +121,24 @@ disqus_shortname: al-folio # put your disqus shortname
121121
# External sources.
122122
# If you have blog posts published on medium.com or other external sources,
123123
# you can display them in your blog by adding a link to the RSS feed.
124-
# external_sources:
125-
# # - name: medium.com
126-
# # rss_url: https://medium.com/@al-folio/feed
127-
# # - name: Google Blog
128-
# # posts:
129-
# # - url: https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/
130-
# # published_date: 2024-05-14
124+
external_sources:
125+
- name: medium.com
126+
rss_url: https://medium.com/@al-folio/feed
127+
- name: Google Blog
128+
posts:
129+
- url: https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/
130+
published_date: 2024-05-14
131+
# - name: Shardul's Blog
132+
# posts:
133+
# - url: https://sharduljunagade.github.io/blog/posts/histogram_matching/histogram_matching.html
134+
# published_date: 2024-05-14
131135

132-
# - name: Shardul's Blog
133-
# posts:
134-
# - url: https://sharduljunagade.github.io/blog/posts/histogram_matching/histogram_matching.html
135-
# published_date: 2024-05-14
136+
# -----------------------------------------------------------------------------
137+
# External Blog
138+
# -----------------------------------------------------------------------------
139+
140+
external_blog_url: "https://quarto.org/docs/websites/website-blog.html" # Replace with your actual external blog URL
141+
external_blog_title: "blog" # The text that will appear in the navigation menu
136142

137143
# -----------------------------------------------------------------------------
138144
# Newsletter
@@ -196,6 +202,13 @@ exclude:
196202
- README.md
197203
- readme_preview/
198204
- vendor
205+
- _news/announcement_*.md # Excludes all markdown files starting with 'announcement_'
206+
- _projects/?_project.md # Excludes files like 'a_project.md', '1_project.md' but NOT '_project.md'
207+
- _pages/profiles.md # Excludes the profiles page
208+
- _pages/teaching.md # Excludes the teaching page
209+
- _pages/blog.md # Excludes the blog page
210+
- _posts/ # Excludes everything in the "_posts" directory
211+
- _pages/publications.md # Excludes the publications page
199212
keep_files:
200213
- CNAME
201214
- .nojekyll
@@ -344,6 +357,7 @@ external_links:
344357
rel: external nofollow noopener
345358
target: _blank
346359
exclude:
360+
- "https://sharduljunagade.github.io/blog/"
347361

348362
# -----------------------------------------------------------------------------
349363
# Responsive WebP Images
@@ -643,8 +657,3 @@ jsonresume:
643657
- positions
644658
- courses
645659
- achievements
646-
647-
# -----------------------------------------------------------------------------
648-
# LiveReload Settings
649-
# -----------------------------------------------------------------------------
650-
livereload: true

_includes/header.liquid

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@
5656
</a>
5757
</li>
5858

59+
<!-- External Blog -->
60+
{% if site.external_blog_url %}
61+
<li class="nav-item {% if page.url contains '/blog/' %}active{% endif %}">
62+
<a class="nav-link" href="{{ site.external_blog_url }}" target="_self">
63+
{{- site.external_blog_title }}
64+
{% if page.url contains '/blog/' %}
65+
<span class="sr-only">(current)</span>
66+
{% endif %}
67+
</a>
68+
</li>
69+
{% endif %}
70+
5971
<!-- Other pages -->
6072
{% assign sorted_pages = site.pages | sort: 'nav_order' %}
6173
{% for p in sorted_pages %}

_news/announcement_1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<!-- ---
1+
---
22
layout: post
33
date: 2015-10-22 15:59:00-0400
44
inline: true
55
related_posts: false
66
---
77

8-
A simple inline announcement with Markdown emoji! :sparkles: :smile: -->
8+
A simple inline announcement.

_news/announcement_2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- ---
1+
---
22
layout: post
33
title: A long announcement with details
44
date: 2015-11-07 16:11:00-0400
@@ -30,4 +30,4 @@ Pug heirloom High Life vinyl swag, single-origin coffee four dollar toast taxide
3030
> We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another.
3131
> —Anais Nin
3232
33-
Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual. -->
33+
Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual.

_news/announcement_3.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: post
3+
date: 2016-01-15 07:59:00-0400
4+
inline: true
5+
related_posts: false
6+
---
7+
8+
A simple inline announcement with Markdown emoji! :sparkles: :smile:

_pages/profiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- ---
1+
---
22
layout: profiles
33
permalink: /people/
44
title: people
@@ -25,4 +25,4 @@ profiles:
2525
<p>555 your office number</p>
2626
<p>123 your address street</p>
2727
<p>Your City, State 12345</p>
28-
--- -->
28+
---

_pages/projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permalink: /projects/
55
description: A growing collection of your cool projects.
66
nav: true
77
nav_order: 3
8-
display_categories: [work, fun, research, course project]
8+
display_categories: [ml, dev, fun, research]
99
horizontal: false
1010
---
1111

_pages/publications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- ---
1+
---
22
layout: page
33
permalink: /publications/
44
title: publications
@@ -18,4 +18,4 @@ nav_order: 2
1818

1919
{% bibliography %}
2020

21-
</div> -->
21+
</div>

_pages/teaching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- ---
1+
---
22
layout: page
33
permalink: /teaching/
44
title: teaching
@@ -9,4 +9,4 @@ nav_order: 6
99

1010
For now, this page is assumed to be a static description of your courses. You can convert it to a collection similar to `_projects/` so that you can have a dedicated page for each course.
1111

12-
Organize your courses by years, topics, or universities, however you like! -->
12+
Organize your courses by years, topics, or universities, however you like!

0 commit comments

Comments
 (0)