Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page margins and social icons in footer #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add page margins and social icons in footer #24

wants to merge 1 commit into from

Conversation

bradthornborrow
Copy link

This feature update includes the following:

  1. Add fontawesome support (in fonts.html) to allow the addition of Social media icons in the page footer (configured via _config.yml). Footer spacing is also adjusted in _layout.sass for new icons.
  2. Add margin on header and footer to better differentiate from page content.
  3. Adjust <title> code in head.html to include page name in title when not on home page.

Before accepting any of these changes, you can see them in action on my personal blog at https://thedeskofbrad.ca

Thanks for the great template.

Copy link
Owner

@yous yous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late response, and thanks for the contribution! Only few comments.

@@ -16,7 +16,7 @@
title: whiteglass theme
author: Yous
description: Minimal, responsive Jekyll theme for hackers.
baseurl: "/whiteglass" # the subpath of your site, e.g. /blog
baseurl: "/" # the subpath of your site, e.g. /blog
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for the demo site of this theme, so please revert the change.

@@ -1,2 +1,3 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Bitter:400,400i,700" rel="stylesheet">
<script src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be included only when site.footer_links exists. Also the script has been updated:

Suggested change
<script src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>
{% if site.footer_links %}<script defer src="https://use.fontawesome.com/releases/v5.8.2/js/all.js" integrity="sha384-DJ25uNYET2XCl5ZF++U8eNxPWqcKohUUBUpKGlNLMchM7q4Wjg2CUpjHLaL8yYPH" crossorigin="anonymous"></script>{% endif %}

<title>{{ title }}</title>

<title>
{% if page.title == "Home" %}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The index.html doesn't have page.title. So the logic would be:

<title>
  {% if page.title %}
    {{ page.title | escape }} &middot; {{ site.title | escape }}
  {% else %}
    {{ site.title | escape }}
  {% endif %}
</title>

@@ -3,6 +3,7 @@
*/
.site-header {
min-height: 56px;
border-bottom: 1px solid #eee;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but I removed the borders intentionally.

/**
* Site footer
*/
.site-footer {
padding: $spacing-unit 0;
padding: 15px 0 30px;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the padding looks okay when the pagination is enabled.

@@ -49,17 +50,31 @@
}



Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this.

.social-icon {
display: inline-block;
padding: 0 0.25em;

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

font-size: 15px;
color: $grey-color;
text-align: center;
border-top: 1px solid #eee;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the border please.

.bundle
.sass-cache
_sass
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repository has _sass directory for the theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants