Permalink
Browse files

Support for a profile picture on home page (closes #29)

  • Loading branch information...
calintat committed Dec 14, 2017
1 parent c151a10 commit 3bc4a26bae7cd8e9687e19dc001299a2de2128c3
Showing with 10 additions and 2 deletions.
  1. +2 −0 layouts/index.html
  2. +8 −2 static/css/main.css
View
@@ -4,6 +4,8 @@
<div class="intro">
{{ with .Site.Params.profilePic }} <img class="profile" src="{{ . }}"> {{ end }}
<h1>{{ .Site.Title }}</h1>
<h2>{{ markdownify .Site.Params.Description }}</h2>
View
@@ -25,7 +25,7 @@ main {
/*home page*/
.intro {
margin: 25vh 0;
transform: translateY(22vh);
}
.intro > h1 {
@@ -38,6 +38,12 @@ main {
font-size: 3vmin;
}
.intro > .profile {
width: 10vh;
height: 10vh;
border-radius: 50%;
}
/*apply accent colour to links*/
a:link, a:visited {
@@ -91,4 +97,4 @@ footer {
img {
max-width: 100%;
}
}

0 comments on commit 3bc4a26

Please sign in to comment.