-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shrunk picture size, added last revision, changes to analytics code.
- Loading branch information
Showing
13 changed files
with
151 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<!-- Sidebar --> | ||
<section id="sidebar"> | ||
|
||
<!-- Intro --> | ||
<section id="intro"> | ||
{{ $pic := .Site.Params.intro.pic }} | ||
{{ with $pic.src }} | ||
{{ if $pic.circle }} | ||
<img src="{{ . }}" class="intro-circle" width="{{ $pic.width }}" alt="{{ $pic.alt }}" /> | ||
{{ else if $pic.imperfect }} | ||
<a href="/" class="logo"><img src="{{ . }}" alt="{{ $pic.alt }}" /></a> | ||
{{ else }} | ||
<img src="{{ . }}" width="{{ $pic.width }}" alt="{{ $pic.alt }}" /> | ||
{{ end }} | ||
{{ end }} | ||
{{ with .Site.Params.intro }} | ||
<header> | ||
<h2>{{ .header | safeHTML }}</h2> | ||
<p>{{ .paragraph | safeHTML }}</p> | ||
</header> | ||
{{ end }} | ||
<ul class="icons"> | ||
{{ if .RSSLink }} | ||
<li><a href="{{ .RSSLink }}" type="application/rss+xml" | ||
target="_blank" title="RSS" class="fa fa-rss"></a></li> | ||
{{ end }} | ||
{{ if .Site.Params.socialAppearAtTop }} | ||
{{ partial "social" . }} | ||
{{ end }} | ||
</ul> | ||
</section> | ||
|
||
<!-- Posts List --> | ||
<section id="recent-posts"> | ||
<ul class="posts"> | ||
<header> | ||
<h3>Recent Posts</h3> | ||
</header> | ||
{{ if .Site.Params.orderByPublishDate }} | ||
{{ $.Scratch.Set "recentPosts" .Site.Pages.ByPublishDate.Reverse }} | ||
{{ else }} | ||
{{ $.Scratch.Set "recentPosts" .Site.Pages }} | ||
{{ end }} | ||
|
||
{{ with .Site.Params.postAmount.sidebar }} | ||
{{ $.Scratch.Set "postLimit" . }} | ||
{{ else }} | ||
{{ $.Scratch.Set "postLimit" 5 }} | ||
{{ end }} | ||
|
||
{{ range first ($.Scratch.Get "postLimit") (where ($.Scratch.Get "recentPosts") "Type" "post") }} | ||
<li> | ||
<article> | ||
<header> | ||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> | ||
{{ if .Site.Params.orderByPublishDate }} | ||
{{ $.Scratch.Set "dateType" .PublishDate }} | ||
{{ else }} | ||
{{ $.Scratch.Set "dateType" .Date }} | ||
{{ end }} | ||
<time class="published" datetime= | ||
'{{ ($.Scratch.Get "dateType").Format "2006-01-02" }}'> | ||
{{ ($.Scratch.Get "dateType").Format "January 2, 2006" }}</time> | ||
</header> | ||
</article> | ||
</li> | ||
{{ end }} | ||
|
||
{{ if ge (len (where .Site.Pages "Type" "post")) ($.Scratch.Get "postLimit") }} | ||
<li> | ||
<ul class="actions"> | ||
<li><a href= | ||
{{ with .Site.Params.viewMorePostLink }} | ||
{{ . }} | ||
{{ else }} | ||
"/post/" | ||
{{ end }} | ||
class="button">View more posts</a></li> | ||
</ul> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</section> | ||
|
||
<!-- This if statement only applies if someone goes to the /categories url --> | ||
<!-- Otherwise this section is shown for all other links --> | ||
{{ if ne ($.Scratch.Get "showCategories") false }} | ||
<!-- Categories List --> | ||
<section id="categories"> | ||
<ul class="posts"> | ||
<header> | ||
<h3><a href="/categories/">Categories</a></h3> | ||
</header> | ||
|
||
{{ if .Site.Params.categoriesByCount }} | ||
{{ $.Scratch.Set "categories" .Site.Taxonomies.categories.ByCount }} | ||
{{ else }} | ||
{{ $.Scratch.Set "categories" .Site.Taxonomies.categories.Alphabetical }} | ||
{{ end }} | ||
|
||
{{ range $key, $value := $.Scratch.Get "categories" }} | ||
<li> | ||
<article> | ||
<header> | ||
<a href="/categories/{{ $value.Name | urlize }}/">{{ $value.Name }}</a> | ||
<span style="float:right;">{{ $value.Count }}</span> | ||
</header> | ||
</article> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</section> | ||
{{ end }} | ||
|
||
<!-- About --> | ||
{{ with .Site.Params.intro.about }} | ||
<section class="blurb"> | ||
<h2>About</h2> | ||
<p> {{ . }}</p> | ||
<ul class="actions"> | ||
<li><a href="/about/" class="button">Learn More</a></li> | ||
</ul> | ||
</section> | ||
{{ end }} | ||
|
||
<!-- Footer --> | ||
<section id="footer"> | ||
<ul class="icons"> | ||
{{ if .RSSLink }} | ||
<li><a href="{{ .RSSLink }}" type="application/rss+xml" | ||
target="_blank" title="RSS" class="fa fa-rss"></a></li> | ||
{{ end }} | ||
{{ if .Site.Params.socialAppearAtBottom }} | ||
{{ partial "social" . }} | ||
{{ end }} | ||
</ul> | ||
|
||
<p class="copyright">© {{ .Site.Title }}. Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a>. Ported by <a href="//github.com/jpescador" target="_blank">Julio Pescador</a>. Powered by <a href="//gohugo.io" target="_blank">Hugo</a></p> | ||
<p class="copyright">Last revision: {{ .Lastmod.Format "Mon Jan _2 15:04:05 2006" }} {{ with .GitInfo }} | <a href="https://github.com/vibbix/vibbix.github.io/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end}}</p> | ||
</section> | ||
|
||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ with .GitInfo }} | ||
<p>{{ .AbbreviatedHash }}</p> | ||
{{ end }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters