-
Notifications
You must be signed in to change notification settings - Fork 199
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.gem | ||
.DS_Store | ||
.bundle | ||
.sass-cache | ||
_sass | ||
_site | ||
Gemfile.lock |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
url: "https://yous.github.io" # the base hostname & protocol for your site, e.g. http://example.com | ||
lang: en | ||
timezone: UTC | ||
|
@@ -72,3 +72,14 @@ jekyll-archives: | |
permalinks: | ||
category: /categories/:name/ | ||
tag: /tags/:name/ | ||
|
||
footer_links: | ||
- title: Twitter | ||
url: https://twitter.com/username | ||
icon: fab fa-twitter-square | ||
- title: YouTube | ||
url: https://www.youtube.com/channelURL | ||
icon: fab fa-youtube-square | ||
- title: Feed | ||
url: feed.xml | ||
icon: fas fa-rss-square |
Original file line number | Diff line number | Diff line 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> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this can be included only when
Suggested change
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,15 @@ | |
{% assign title = page.title | default: site.title | escape %} | ||
{% assign canonical = page.url | replace:'index.html','' | absolute_url %} | ||
{% assign description = page.description | default: page.excerpt | default: site.description | strip_html | normalize_whitespace | escape %} | ||
<title>{{ title }}</title> | ||
|
||
<title> | ||
{% if page.title == "Home" %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The index.html doesn't have <title>
{% if page.title %}
{{ page.title | escape }} · {{ site.title | escape }}
{% else %}
{{ site.title | escape }}
{% endif %}
</title> |
||
{{ site.title }} | ||
{% else %} | ||
{{ page.title }} · {{ site.title }} | ||
{% endif %} | ||
</title> | ||
|
||
<meta name="description" content="{{ description }}"> | ||
{% if page.keywords %} | ||
{% if page.keywords.first %} | ||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -3,6 +3,7 @@ | |||
*/ | ||||
.site-header { | ||||
min-height: 56px; | ||||
border-bottom: 1px solid #eee; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, but I removed the borders intentionally. |
||||
|
||||
// Positioning context for the mobile navigation icon | ||||
position: relative; | ||||
|
@@ -49,17 +50,31 @@ | |||
} | ||||
|
||||
|
||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this. |
||||
/** | ||||
* Site footer | ||||
*/ | ||||
.site-footer { | ||||
padding: $spacing-unit 0; | ||||
padding: 15px 0 30px; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the padding looks okay when the pagination is enabled. |
||||
font-size: 15px; | ||||
color: $grey-color; | ||||
text-align: center; | ||||
border-top: 1px solid #eee; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the border please. |
||||
} | ||||
|
||||
.social-icons { | ||||
text-align: center; | ||||
margin-bottom: 0.5em; | ||||
} | ||||
|
||||
.social-icon { | ||||
display: inline-block; | ||||
padding: 0 0.25em; | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
&, | ||||
&:visited { | ||||
color: $grey-color-dark; | ||||
} | ||||
} | ||||
|
||||
|
||||
/** | ||||
|
There was a problem hiding this comment.
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.