Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wider body in a GitHub Pages site

My GitHub Pages site looks like this:

pages site

I don't like how thin the body is (it's padded with blank space on both sides, each making up 33% of the page). This is theme-independent, as it was happening before I activated my current Jekyll theme. I can't find any information on how to expand the part of the body that actually has content.

As is usual with Jekyll, I use Markdown for the webpages, so I can't manually edit any HTML to remove the whitespace.

How can I make the amount of blank space on the sides of the body smaller?

like image 260
MD XF Avatar asked Jan 14 '18 03:01

MD XF


People also ask

Why does my website look different on GitHub Pages?

You are requesting a file served over HTTP while your website (GitHub pages) is using HTTPS. This is not allowed by browsers for security purposes. Because of that, the yui CSS file is not loaded, and your layout breaks.

Is there a size limit to GitHub Pages?

GitHub Pages source repositories have a recommended limit of 1 GB. For more information, see "What is my disk quota?" Published GitHub Pages sites may be no larger than 1 GB. GitHub Pages sites have a soft bandwidth limit of 100 GB per month.

What should we be careful of before deploying to GitHub Pages?

Even if the repository is private, the site is still publicly available on the internet — so the developer should always check for any sensitive data before deployment. Naturally, sending sensitive data (e.g. passwords or credit card information) is also unsafe.

Where are GitHub Pages settings?

Under your repository name, click Settings. In the "Code and automation" section of the sidebar, click Pages. To see your published site, under "GitHub Pages", click your site's URL. Note: It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub.


1 Answers

Create a file /docs/assets/style.scss with this content at the top of the file:

---
---

@import "{{ site.theme }}";

.inner {
  max-width: 75%;
}

Change 75% to the desired width of the body.

Found with help from ceejayoz.

like image 155
MD XF Avatar answered Oct 09 '22 15:10

MD XF