Browse Source

Added profile.html partial

master
digitalcraftsman 10 years ago
parent
commit
e128a8bb19
  1. 1
      layouts/_default/single.html
  2. 15
      layouts/index.html
  3. 11
      layouts/partials/profile.html

1
layouts/_default/single.html

@ -15,7 +15,6 @@
</section>
</article>
<footer id="post-meta" class="clearfix">
<!-- TODO: Add support for twitter with conditional behavior -->
{{ with .Site.Params.twitter }}<a href="http://twitter.com/{{ . }}">{{ end }}
<img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
<div>

15
layouts/index.html

@ -8,18 +8,9 @@
<a href='/about'>About </a>
<a class="cta" href="/feed.xml">Subscribe</a>
</nav>
<div class="profile">
<section id="wrapper">
<header id="header">
<a href='/about'>
<img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/profile.png" />
</a>
<h1>Nick Balestra</h1>
<!-- <h2>Software engineer</h2> -->
<h2>Try. Fail. Learn. Repeat. </h2>
</header>
</section>
</div>
{{ partial "profile.html" . }}
<section id="wrapper" class="home">
<ul id="post-list">
<li>

11
layouts/partials/profile.html

@ -0,0 +1,11 @@
<div class="profile">
<section id="wrapper">
<header id="header">
<a href='{{ .Site.BaseURL }}about'>
<img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/avatar.png"/>
</a>
<h1>{{ .Site.Params.name }}</h1>
<h2>{{ .Site.Params.bio }}</h2>
</header>
</section>
</div>
Loading…
Cancel
Save