Skip to content

Commit 819d46f

Browse files
committed
Formatting, added blog & about page content, fixed title link, updated baseurl
Too many changes directly committing to master. In case of errors might end up cherrypicking changes however did a manual round of testing to confirm expected behavior Made some formatting changes (background color, line-height, font-family, etc.) Added Blog and About page content Fixed href attribute value for anchor tag in masthead-title Updated baseurl to "/" in _config.yml so footer and masthead-title can use it
1 parent c190d64 commit 819d46f

File tree

10 files changed

+88
-32
lines changed

10 files changed

+88
-32
lines changed

_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: Deep Sukhwani
33
# tagline: The Jekyll Butler
44
url: https://deeps.dev
55
paginate: 1
6-
baseurl: ""
76
permalink: pretty
87

98
# Gems

_data/navigation.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Order matters, that's how it will appear on homepage
2+
3+
- name: Blog
4+
link: /blog
5+
6+
- name: About
7+
link: /about
8+

_layouts/default.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<div id="spotlight">
99
{% if page.title != "Home" %}
1010
<header class="masthead">
11-
<h3 class="masthead-title">
12-
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
11+
<div class="masthead-title">
12+
<a href="{{ site.url }}" title="Home">{{ site.title }}</a>
1313
<small>{{ site.tagline }}</small>
14-
</h3>
14+
</div>
1515
</header>
1616
{% endif %}
1717

@@ -20,7 +20,7 @@ <h3 class="masthead-title">
2020
<div id="home-footer">
2121
<p>
2222
&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>.
23-
All rights reserved. <a href="{{ site.baseurl }}">{{ site.author.name }}</a>
23+
All rights reserved. <a href="{{ site.url }}" title="Home">{{ site.author.name }}</a>
2424
</p>
2525
</div>
2626
</div>

_layouts/page.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
---
44

55
<article class="page">
6-
<h1 class="page-title">{{ page.title }}</h1>
76
{{ content }}
87
</article>

_sass/_base.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body {
1111
font-family: var(--body-font);
1212
font-size: var(--body-font-size);
1313
line-height: var(--body-line-height);
14-
letter-spacing: .04em;
14+
letter-spacing: var(--body-letter-spacing);
1515
color: var(--body-color);
1616
background-color: var(--body-bg);
1717
-webkit-text-size-adjust: 100%;
@@ -21,6 +21,7 @@ body {
2121
// No `:visited` state is required by default (browsers will use `a`)
2222
a {
2323
color: var(--link-color);
24+
text-decoration: none;
2425

2526
// `:focus` is linked to `:hover` for basic accessibility
2627
&:hover,
@@ -102,3 +103,19 @@ mark {
102103
margin-top: 0;
103104
}
104105
}
106+
107+
#home-nav {
108+
opacity: .8;
109+
110+
a {
111+
display: block;
112+
text-align: center;
113+
margin-top: .5em;
114+
}
115+
}
116+
117+
.site-nav {
118+
display: inline-block;
119+
font-size: 1.5rem;
120+
opacity: .8;
121+
}

_sass/_variables.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--gray-500: #adb5bd;
88
--gray-600: #868e96;
99
--gray-700: #495057;
10-
--gray-800: #343a40;
10+
--gray-800: #494f5c;
1111
--gray-900: #212529;
1212

1313
--red: #fa5252;
@@ -26,11 +26,12 @@
2626
--blue-400: #4dabf7;
2727
--yellow-100: #fff3bf;
2828

29-
--body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
29+
--body-font: "trebuchet ms", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
3030
--body-font-size: 16px;
31-
--body-line-height: 1.5;
31+
--body-line-height: 1.6;
3232
--body-color: var(--gray-700);
3333
--body-bg: #fff;
34+
--body-letter-spacing: 0.06em;
3435

3536
--link-color: var(--blue);
3637
--link-hover-color: #1c7ed6;

about.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
---
22
layout: page
3-
title: About
43
---
54

6-
<p class="message">
7-
Hey there! This page is included as an example. Feel free to customize it for your own use upon downloading. Carry on!
8-
</p>
5+
![Hey it's me, Deep, at my childhood home.](/assets/profile.jpg)
6+
Hi, I am Deep Sukhwani
97

10-
In the novel, *The Strange Case of Dr. Jekyll and Mr. Hyde*, Mr. Poole is Dr. Jekyll's virtuous and loyal butler. Similarly, Poole is an upstanding and effective butler that helps you build Jekyll themes. It's made by [@mdo](https://twitter.com/mdo).
8+
I am a qualified Chartered Accountant from ACCA, UK. I pivoted into Software Engineering discipline after completing
9+
my accounting qualification.
1110

12-
There are currently two themes built on Poole:
11+
I am a Senior Software Engineer at [Springboard](https://springboard.com){:target="_blank"} working on their backend web development
12+
team. I have always been fascinated by technology and especially web frameworks and web focused innovations.
13+
14+
I want to use this website to share a bit about myself, my everyday learning as I go through my life as a software
15+
developer and hopefully get a chance to interact with like minded people.
1316

14-
- [Hyde](https://hyde.getpoole.com)
15-
- [Lanyon](https://lanyon.getpoole.com)
17+
It would be redundant to share my whole career journey here. I keep [my LinkedIn profile](https://www.linkedin.com/in
18+
/DeepSukhwani){:target="_blank"} fairly up to date.
1619

17-
Learn more and contribute on [GitHub](https://github.com/poole).
18-
19-
## Setup
20-
21-
Some fun facts about the setup of this project include:
22-
23-
- Built for [Jekyll](https://jekyllrb.com)
24-
- Developed on GitHub and hosted for free on [GitHub Pages](https://pages.github.com)
25-
- Coded with [Atom](https://atom.io), an amazing open source code editor
26-
27-
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/poole/poole/issues/new) or [ask me on Twitter](https://twitter.com/mdo).
28-
29-
Thanks for reading!
20+
If you like my website, you can follow or come say Hi to me on twitter [@deepsukhwani](https://twitter.com
21+
/deepsukhwani){:target="_blank"} and on [LinkedIn](https://www.linkedin.com/in/DeepSukhwani){:target="_blank"}.

assets/profile.jpg

37.2 KB
Loading

blog.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: page
3+
title: Posts
4+
---
5+
6+
<div class="posts">
7+
{% for post in paginator.posts %}
8+
<article class="post">
9+
<h1 class="post-title">
10+
<a href="{{ post.url | relative_url }}">
11+
{{ post.title }}
12+
</a>
13+
</h1>
14+
15+
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>
16+
17+
{{ post.content }}
18+
</article>
19+
{% endfor %}
20+
</div>
21+
22+
<div class="pagination">
23+
{% if paginator.next_page %}
24+
<a class="pagination-item older" href="{{ paginator.next_page_path | relative_url }}">Older</a>
25+
{% else %}
26+
<span class="pagination-item older">Older</span>
27+
{% endif %}
28+
{% if paginator.previous_page %}
29+
<a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: relative_url }}">Newer</a>
30+
{% else %}
31+
<span class="pagination-item newer">Newer</span>
32+
{% endif %}
33+
</div>

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ <h1 id="home-title">{{ site.author.name }}</h1>
1616
{% endif %}
1717
{% endfor %}
1818
{% endif %}
19+
</div>
1920

20-
</div>
21+
<div id="home-nav" class="site-nav">
22+
<nav>
23+
{% for item in site.data.navigation %}
24+
<a href="{{ item.link }}">{{ item.name }}</a>
25+
{% endfor %}
26+
</nav>
27+
</div>
2128
</div>

0 commit comments

Comments
 (0)