You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -278,6 +282,30 @@ What this means is, if there is no resume data defined in [\_config.yml](_config
278
282
279
283
The user and repository information is defined in [\_data/repositories.yml](_data/repositories.yml). You can add as many users and repositories as you want. Both informations are used in the `repositories` section.
280
284
285
+
### Configuring external service URLs
286
+
287
+
The repository page uses external services to display GitHub statistics and trophies. By default, these are:
288
+
289
+
-`github-readme-stats.vercel.app` for user stats and repository cards
290
+
-`github-profile-trophy.vercel.app` for GitHub profile trophies
291
+
292
+
**Important:** These default services are hosted by third parties and may not be available 100% of the time. For better reliability, privacy, and customization, you can self-host these services and configure your website to use your own instances.
293
+
294
+
To use your own instances of these services, configure the URLs in [\_config.yml](_config.yml):
Once deployed, update the URLs above to point to your custom deployment.
308
+
281
309
## Creating new pages
282
310
283
311
You can create new pages by adding new Markdown files in the [\_pages](_pages/) directory. The easiest way to do this is to copy an existing page and modify it. You can choose the layout of the page by changing the [layout](https://jekyllrb.com/docs/layouts/) attribute in the [frontmatter](https://jekyllrb.com/docs/front-matter/) of the Markdown file, and also the path to access it by changing the [permalink](https://jekyllrb.com/docs/permalinks/) attribute. You can also add new layouts in the [\_layouts](_layouts/) directory if you feel the need for it. To have the page be displayed for different languages, simply create one markdown file with the same name in each language. It is possible to [use different permalinks per language](https://github.com/untra/polyglot?tab=readme-ov-file#using-different-permalinks-per-language) if you want to.
@@ -300,19 +328,105 @@ You can add news in the about page by adding new Markdown files in the [\_news/L
300
328
301
329
## Adding Collections
302
330
303
-
This Jekyll theme implements [collections](https://jekyllrb.com/docs/collections/) to let you break up your work into categories. The theme comes with three default collections: `news`, `projects`, and `books`. Items from the `news` collection are automatically displayed on the home page, while items from the `projects` collection are displayed on a responsive grid on projects page and items from the `books` collection are displayed on its own `bookshelf` page inside `submenus`.
331
+
This Jekyll theme implements [collections](https://jekyllrb.com/docs/collections/) to let you break up your work into categories. The theme comes with three default collections: `news`, `projects`, and `books`. Items from the `news` collection are automatically displayed on the home page, while items from the `projects` collection are displayed on a responsive grid on the projects page, and items from the `books` collection are displayed on its own `bookshelf` page inside `submenus`.
332
+
333
+
You can easily create your own collections for any type of content—teaching materials, courses, apps, short stories, or whatever suits your needs.
334
+
335
+
### Creating a new collection
336
+
337
+
To create a new collection, follow these steps. We will create a `teaching` collection, but you can replace `teaching` with any name you prefer:
338
+
339
+
1. **Add the collection to `_config.yml`**
340
+
341
+
Open the `collections` section in [\_config.yml](_config.yml) and add your new collection:
342
+
343
+
```yaml
344
+
collections:
345
+
news:
346
+
defaults:
347
+
layout: post
348
+
output: true
349
+
projects:
350
+
output: true
351
+
teaching:
352
+
output: true
353
+
permalink: /teaching/:path/
354
+
```
355
+
356
+
- `output: true` makes the collection items accessible as separate pages
357
+
- `permalink`defines the URL path for each collection item (`:path` is replaced with the filename)
358
+
- Note: You can customize the [permalink structure](https://jekyllrb.com/docs/permalinks/#collections) as needed. If not set, it uses `/COLLECTION_NAME/:name/`.
359
+
360
+
2. **Create a folder for your collection items**
361
+
362
+
Create a new folder in the root directory with an underscore prefix, matching your collection name. For a `teaching` collection, create `_teaching/`:
304
363
305
-
You can easily create your own collections, apps, short stories, courses, or whatever your creative work is. To do this, edit the collections in the [\_config.yml](_config.yml) file, create a corresponding folder, and create a landing page for your collection, similar to [\_pages/LANG/projects.md](_pages/en-us/projects.md).
364
+
```text
365
+
_teaching/
366
+
├── course_1.md
367
+
├── course_2.md
368
+
└── course_3.md
369
+
```
370
+
371
+
3. **Create a landing page for your collection**
372
+
373
+
Add a Markdown file in `_pages/` (e.g., `teaching.md`) that will serve as the main page for your collection. You can use [\_pages/projects.md](_pages/projects.md) or [\_pages/books.md](_pages/books.md) as a template and adapt it for your needs.
374
+
375
+
In your landing page, access your collection using the `site.COLLECTION_NAME` variable:
Replace `COLLECTION_NAME` with your actual collection name (e.g., `site.teaching`).
387
+
388
+
4. **Add a link to your collection page**
389
+
390
+
Update [\_pages/dropdown.md](_pages/dropdown.md) or the navigation configuration in [\_config.yml](_config.yml) to add a menu link to your new page.
391
+
392
+
5. **Create collection items**
393
+
394
+
Add Markdown files in your new collection folder (e.g., `_teaching/`) with appropriate frontmatter and content.
395
+
396
+
For more information regarding collections, check [Jekyll official documentation](https://jekyllrb.com/docs/collections/) and [step-by=step guide](https://jekyllrb.com/docs/step-by-step/09-collections/).
397
+
398
+
### Using frontmatter fields in your collection
399
+
400
+
When creating items in your collection, you can define custom frontmatter fields and use them in your landing page. For example:
401
+
402
+
```markdown
403
+
---
404
+
layout: page
405
+
title: Introduction to Research Methods
406
+
importance: 1
407
+
category: methods
408
+
---
409
+
410
+
Course description and content here...
411
+
```
412
+
413
+
Then in your landing page template:
414
+
415
+
```liquid
416
+
{% if item.category == 'methods' %}
417
+
<span class="badge">{{ item.category }}</span>
418
+
{% endif %}
419
+
```
306
420
307
-
If you wish to create a collection with support for categories and tags, like the blog posts, you just need to add this collection to the `jekyll-archives` section of your [\_config.yml](_config.yml) file. You can check how this is done with the `books` collection. For more information about customizing the archives section or creating your own archives page, check the [jekyll-archives-v2 documentation](https://george-gca.github.io/jekyll-archives-v2/).
421
+
### Collections with categories and tags
308
422
309
-
To access the collections, you can use the `site.COLLECTION_NAME` variable in your templates.
423
+
If you want to add category and tag support (like the blog posts have), you need to configure the `jekyll-archives` section in [\_config.yml](_config.yml). See how this is done with the `books` collection for reference. For more details, check the [jekyll-archives-v2 documentation](https://george-gca.github.io/jekyll-archives-v2/).
310
424
311
425
## Adding a new publication
312
426
313
427
To add publications create a new entry in the [\_bibliography/papers.bib](_bibliography/papers.bib) file. You can find the BibTeX entry of a publication in Google Scholar by clicking on the quotation marks below the publication title, then clicking on "BibTeX", or also in the conference page itself. By default, the publications will be sorted by year and the most recent will be displayed first. You can change this behavior and more in the `Jekyll Scholar` section in [\_config.yml](_config.yml) file.
314
428
315
-
You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `annotation`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`.
429
+
You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `annotation`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `hal`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`.
316
430
317
431
### Author annotation
318
432
@@ -362,6 +476,7 @@ There are several custom bibtex keywords that you can use to affect how the entr
362
476
- `blog`: Adds a "Blog" button redirecting to the specified link
363
477
- `code`: Adds a "Code" button redirecting to the specified link
364
478
- `dimensions`: Adds a [Dimensions](https://www.dimensions.ai/) badge (Note: if DOI or PMID is provided just use `true`, otherwise only add the Dimensions' identifier here - the link is generated automatically)
479
+
- `hal`: Adds a link to the HAL website (Note: only add the hal identifier (hal-xxx or tel-xxx) here - the link is generated automatically)
365
480
- `html`: Inserts an "HTML" button redirecting to the user-specified link
366
481
- `pdf`: Adds a "PDF" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory)
367
482
- `poster`: Adds a "Poster" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory)
0 commit comments