Skip to content

Commit ecafb65

Browse files
committed
Add profile property to about.md
1 parent 8a3e818 commit ecafb65

File tree

3 files changed

+50
-12
lines changed

3 files changed

+50
-12
lines changed

_layouts/about.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
---
4+
5+
{% if page.profile %}
6+
<div class="profile col one {{ page.profile.align }}">
7+
{% if page.profile.image %}
8+
<img class="one" src="/img/{{ page.profile.image }}">
9+
{% endif %}
10+
{% if page.profile.address %}
11+
<div class="address">
12+
{{ page.profile.address }}
13+
</div>
14+
{% endif %}
15+
</div>
16+
{% endif %}
17+
18+
{{ content }}

_pages/about.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
---
2-
layout: page
2+
layout: about
33
permalink: /
44
title: your name
55
description: <a href="">Affiliations</a>. Address. Contacts. Moto. Etc.
6+
7+
profile:
8+
align: right
9+
image: prof_pic.jpg
10+
address: >
11+
<p>555 your office number</p>
12+
<p>123 your address street</p>
13+
<p>Your City, State 12345</p>
14+
615
news: true
716
social: true
817
---
918

10-
<img class="col one right" src="/img/prof_pic.jpg">
19+
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com). You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.
1120

12-
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com). You can put a picture in, too. The code is already in, just name your picture "prof_pic.jpg" and put it in the img folder.
21+
Put your address / P.O. box / other info right below your picture. You can also disable any these elements by editing `profile` property of the YAML header of your `about.md`.
1322

1423
Link to your social media connections, too. This theme is set up to use [Font Awesome icons](http://fortawesome.github.io/Font-Awesome/){:target="\_blank"} and [Academicons](https://jpswalsh.github.io/academicons/){:target="\_blank"}, like the ones below. Add your Facebook, Twitter, LinkedIn, Google Scholar, or just disable all of them.

_sass/_layout.scss

+20-9
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ display: line;
7070
}
7171
}
7272

73+
/**
74+
* Profile
75+
*/
76+
.profile {
77+
margin-right: 20px;
78+
img { width: 100%; }
79+
}
80+
.address {
81+
p { margin: 0; }
82+
}
83+
7384
/**
7485
* News block **********************************************************
7586
*/
@@ -111,17 +122,17 @@ width: 100%;
111122
* Pagination **********************************************************
112123
*/
113124
.pagination{
114-
max-width: -webkit-calc(800px - (#{$horizontal-spacing-unit} * 2));
115-
text-align: center;
116-
width: 100%;
117-
position: fixed;
118-
bottom: 50px;
125+
max-width: -webkit-calc(800px - (#{$horizontal-spacing-unit} * 2));
126+
text-align: center;
127+
width: 100%;
128+
position: fixed;
129+
bottom: 50px;
119130
}
120131
.paginationicon {
121-
font-size: 50px;
122-
a {
123-
color: $theme-color;
124-
}
132+
font-size: 50px;
133+
a {
134+
color: $theme-color;
135+
}
125136
}
126137

127138
/**

0 commit comments

Comments
 (0)