Portfolio items live in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/academicpages/academicpages.github.io/llms.txt
Use this file to discover all available pages before exploring further.
_portfolio/ directory. Unlike some other collections, portfolio files can be written as either Markdown (.md) or HTML (.html) — Jekyll parses each file according to its extension. This flexibility lets you write simple item descriptions in Markdown or build richly structured entries using raw HTML when you need finer control over layout.
File naming
Portfolio files have no required date-based naming convention. Use descriptive slugs that reflect the project:/portfolio/ page are rendered in the order Jekyll encounters them. Using a numeric or alphabetical prefix in the filename gives you predictable ordering.
Front matter fields
Portfolio files use a minimal set of front matter fields:| Field | Required | Description |
|---|---|---|
title | ✅ | Name of the portfolio project. Displayed as the item heading. |
collection | ✅ | Must be exactly portfolio. |
excerpt | — | Short description shown in the portfolio grid. Supports inline HTML, which is useful for embedding a thumbnail image. |
The
permalink field is not required for portfolio items. The collection’s permalink is automatically set to /:collection/:path/ in _config.yml, so the URL is derived from the filename.Embedding a thumbnail image in the excerpt
Theexcerpt field supports inline HTML. The standard pattern for including a preview image alongside the description is:
<br/> creates a line break between the text description and the image tag. Place your image file in the /images/ directory and reference it with an absolute path starting with /images/.
Markdown vs HTML files
.mdfiles — Write the file body in standard Markdown. Jekyll converts it to HTML at build time..htmlfiles — Write the file body directly in HTML. Jekyll passes the content through without conversion.
How portfolio items are displayed
The/portfolio/ page iterates over site.portfolio and renders a card for each entry using the archive-single include. Each card shows the title and the excerpt (including any inline HTML such as an image). Clicking the card title opens the individual portfolio item page, where the full body of the file is rendered.
Complete examples
A Markdown portfolio item:_portfolio/portfolio-1.md
_portfolio/portfolio-2.html
Step-by-step: adding a portfolio item
Choose a file format
Decide whether to use
.md (Markdown) or .html (raw HTML) depending on how much control you need over the item’s layout.Create the file
Add a new file to
_portfolio/ with a descriptive slug, e.g. _portfolio/my-research-tool.md.Fill in the front matter
Set
title, collection: portfolio, and optionally an excerpt. If you want a thumbnail, include an <img> tag in the excerpt string.Write the body
Below the closing
---, write the item description. In a .md file, use Markdown syntax. In an .html file, use HTML.Add images
Place any images referenced by the item in the
/images/ directory and use absolute paths (starting with /images/) to reference them.