Skip to content

Commit

Permalink
Shrunk picture size
Browse files Browse the repository at this point in the history
Shrunk picture size, added last revision, changes to analytics code.
  • Loading branch information
vibbix committed Jan 29, 2017
1 parent efcbf74 commit 4fb90fd
Show file tree
Hide file tree
Showing 13 changed files with 151 additions and 99 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ disqusShortname = "mtechnic-me"
googleAnalytics = "UA-90762825-1"
enableGitInfo = true
enableEmoji = true
enablerobotsTXT = true
config = "config.toml"

[params]
Expand Down
2 changes: 1 addition & 1 deletion content/blog/helloworld.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ author = "Mark Beznos"
Hello world! This is my new blog. It's still a work-in-progress. There are a ton of changes I have to make to the
theme, including fixing that nasty flexbox categories/tags misalignment in the CSS, tidying up the projects page,
and documenting my work. I'm going to try to keep the site updated often. I also have a custom theme in the works thats
much more aesthetic.
much more aesthetic.
142 changes: 142 additions & 0 deletions layouts/partials/sidebar.html
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">&copy; {{ .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>
3 changes: 3 additions & 0 deletions layouts/shortcodes/gitinfo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ with .GitInfo }}
<p>{{ .AbbreviatedHash }}</p>
{{ end }}
22 changes: 0 additions & 22 deletions public/blog/index.xml

This file was deleted.

21 changes: 0 additions & 21 deletions public/categories/tech/index.xml

This file was deleted.

22 changes: 0 additions & 22 deletions public/index.xml

This file was deleted.

32 changes: 0 additions & 32 deletions public/sitemap.xml

This file was deleted.

Binary file modified static/pics/Hapcapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/pics/LG3D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/pics/matchp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/pics/pic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion themes/hugo-future-imperfect/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@

<!--[if lte IE 9]><link rel="stylesheet" href="/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="/css/ie8.css" /><![endif]-->
{{ if ne (printf "%v" $.Site.BaseURL) "http://localhost:1313/" }}
{{ if ne (printf "%v" $.Site.BaseURL) "http://localhost:1313/" }}
<!-- rendered analyctics-->
{{ template "_internal/google_analytics_async.html" . }}
{{else}}
<!-- Not rendered, Analyctics-->
{{ end }}
</head>
<body>
Expand Down

0 comments on commit 4fb90fd

Please sign in to comment.