Below is my minimal mistakes website, main.scss configuration. How can I make the font…
- User
Below is my minimal mistakes website, main.scss configuration. How can I make the font of the sidebar smaller?
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin }}"; @import "minimal-mistakes";
// Custom font and spacing - apply to body AND main content areas body { font-family: "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
// Target multiple content areas to ensure coverage .page__content, .page__content p, .archive__item-body, .archive__item-excerpt, .page__inner-wrap { font-family: "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.6; // Increased from 1.5 font-size: 18px; // Increased from 15px }
// Better spacing for paragraphs p { margin-bottom: 1.5em; }
// Make sure the main content area inherits the font .single .page__content { font-family: "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.author__avatar { display: table-cell; vertical-align: top; width: 36px;
@include breakpoint($large) { display: block; width: auto; height: auto; }
img { max-width: 175px; border-radius: 50%;
@include breakpoint($large) { padding: 5px; border: 1px solid $border-color; }} }
.author__bio { font-size: 0.8rem; line-height: 1.0; color: #333; }
// Social media icons in a single line without text .author__urls { display: flex; flex-wrap: wrap; gap: 15px; // Space between icons margin-top: 10px; }
.author__urls li { display: inline-block; margin: 0; }
.author__urls a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; transition: background-color 0.2s ease; }
// Make the actual icons larger .author__urls a i, .author__urls a .fab, .author__urls a .fas { font-size: 20px !important; // Force larger icon size }
// Hide the text, keep only icons .author__urls .label { display: none; }
// Optional: Add hover effects .author__urls a:hover { background-color: rgba(0,0,0,0.1); }
// Center all author profile elements .author__avatar, .author__content, .author__urls-wrapper { text-align: center; }
// Center the avatar image specifically .author__avatar { display: block; margin: 0 auto; }
// Center the name and bio .author__name { text-align: center; }
.author__bio { text-align: center; font-size: 1.3rem; line-height: 1.4; color: #333; }
// Center the social icons (keep your existing social icon styles) .author__urls { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 10px; justify-content: center; // This centers the icons horizontally }
.author__urls li { display: inline-block; margin: 0; }
.author__urls a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; transition: background-color 0.2s ease; }
- Assistant
To make the sidebar font smaller in your Minimal Mistakes Jekyll site, you need to target the appropriate sidebar elements in your main.scss. Minimal Mistakes typically uses the .sidebar class and its child elements such as .author__content, .author__bio, .author__urls, etc., for the sidebar. ✅ Here's how you can update your main.scss: Add the following at the end of your current SCSS file: scssCopyEdit// Make sidebar font smaller .sidebar { font-size: 0.85rem; // Adjust as needed (e.g., 0.75rem or 14px) }
// Optionally, you can fine-tune specific sidebar elements .sidebar .author__name { font-size: 1rem; // Smaller name }
.sidebar .author__bio { font-size: 0.75rem; line-height: 1.2; }
.sidebar .author__urls a i { font-size: 16px !important; // Smaller icon size }
💡 Tips:
rem is relative to the root font size, usually 16px, so 0.85rem ≈ 13.6px.
If you want to target only the left sidebar and not the mobile menu or other areas, .sidebar is the correct class.
You can inspect your site with browser dev tools to identify more specific sidebar elements to customize further.
Let me know if you want to change the sidebar heading sizes or navigation links too.
- User
Can I allow newlines in the bio? bio: "NLP Data Scientistfor Digital Humanities"
- Assistant
Yes, you can allow newlines in the bio by using HTML tags like in the YAML front matter. However, the key point is that you must ensure the bio string is interpreted correctly as a multiline string or HTML, especially when writing it in _config.yml or a data file. ✅ Option 1: Use double quotes with inline (what you're doing now) yamlCopyEditbio: "NLP Data Scientistfor Digital Humanities"
This works fine as long as:
The HTML is being rendered in the template (which it usually is in Minimal Mistakes).
You're not escaping HTML elsewhere in the layout or with filters like {{ bio | escape }}.
✅ Option 2: Use a multiline YAML block with | yamlCopyEditbio: | NLP Data Scientist for Digital Humanities
This is cleaner if you expect more complex formatting or want better readability in the YAML.
Important: Make sure your _includes/author-profile.html or wherever {{ site.author.bio }} is rendered does not escape HTML. You want it rendered like this: liquidCopyEdit{{ author.bio | markdownify }}
or just: liquidCopyEdit{{ author.bio }}
If you're using escape, like {{ author.bio | escape }}, it will show the as plain text.
- User
Yes. Its not working
- Assistant
Thanks for the follow-up! If your in the bio: field isn’t producing a line break in the sidebar, here's how to troubleshoot and fix it in the Minimal Mistakes theme.
✅ 1. Confirm bio is not being escaped Open or check your _includes/author-profile.html (or wherever the bio is rendered) and find the line that looks like this: liquidCopyEdit{{ author.bio }}
If it instead looks like: liquidCopyEdit{{ author.bio | escape }}
or: liquidCopyEdit{{ author.bio | xml_escape }}
→ Remove the escape, because that prevents HTML like from being rendered.
✅ 2. Try using markdownify (recommended) If you want to use Markdown or HTML (like ), wrap the bio in markdownify: liquidCopyEdit{{ author.bio | markdownify }}
This allows:
to render as a line break
bold, italic, etc., if you choose
✅ 3. Format your YAML correctly In _config.yml or wherever you're defining the bio, use this structure for readability and safety: yamlCopyEditauthor: name : "Jane Doe" bio : | NLP Data Scientist for Digital Humanities
- User
I need help. What should I send you?
- Assistant
Great — I can definitely help you fix this. To diagnose and solve the issue properly, please send me the following:
🔧 1. Your _config.yml or authors.yml section Send the part where you define the author or bio. Example: yamlCopyEditauthor: name: "Jane Doe" bio: "NLP Data Scientistfor Digital Humanities"
or if you're using _data/authors.yml, send the relevant author's entry.
🧱 2. The file (or part of it) that renders the author bio Most likely:
_includes/author-profile.html, or
_includes/sidebar.html, or
_layouts/default.html
Find the part where it says something like: liquidCopyEdit{{ author.bio }}
Copy and paste that portion (5–10 lines above and below is perfect).
🖼️ 3. What you see on the site vs. what you expect Let me know:
Is the showing as literal text? (NLP Data Scientistfor Digital Humanities)
Or is it all on one line with no break?
Or is it blank?
Once I have those, I’ll guide you through the exact fix. If you're not sure where the bio is rendered, tell me if you're using the sidebar, a custom layout, or the default Minimal Mistakes setup.
- User
author: name : "Esther Shizgal" avatar : "/assets/images/me_far.jpeg" avatar_class: "avatar-circle" bio : | NLP Data Scientist for Digital Humanities
I have no _indludes dir
- Assistant
Perfect — thanks! Since you're not seeing an _includes/ directory, it means you're likely using Minimal Mistakes as a remote theme (via GitHub Pages or remote_theme: in _config.yml). In this case, the theme's internal files like author-profile.html are not directly visible in your repo, but you can still override them locally.
✅ Goal We want to allow the in your bio to render as an actual line break, not as raw HTML text. The issue is that Minimal Mistakes' default template escapes HTML in the bio.
🛠️ Solution: Override the author-profile.html include Step 1: Create a local _includes/ folder In your project root (where _config.yml is), create a new folder: CopyEdit_includes/
Step 2: Add author-profile.html from the theme Copy this official file into your _includes/ directory: 📄 View source on GitHub (Minimal Mistakes) Click "Raw", then copy the whole file into a new file named: bashCopyEdit_includes/author-profile.html
- User
It already has:
<div class="author__bio p-note" itemprop="description"> {{ author.bio | markdownify }} </div> - Assistant
Thanks — that’s really helpful. Since you already have: liquidCopyEdit{{ author.bio | markdownify }}
…and the still isn’t rendering as a line break, here's what's likely happening and how to fix it:
❓Why isn’t working with markdownify Jekyll’s markdownify is meant to process Markdown, not raw HTML. In many cases, if your string is short or doesn't include Markdown-style line breaks, the output gets wrapped in tags — and your may be escaped or ignored depending on how it's parsed.
✅ Solution: Use double space for Markdown line break Instead of using , try this in your _config.yml: yamlCopyEditbio: | NLP Data Scientist
for Digital HumanitiesNote the two spaces at the end of the first line — this is the Markdown spec's official line break syntax. Why this works:
You're already using markdownify
Markdown renders two spaces + newline as a line break