Skip to content

Commit

Permalink
fidling with some new features
Browse files Browse the repository at this point in the history
  • Loading branch information
comraderoyce committed Feb 27, 2018
1 parent d107835 commit b9fc7cc
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 13 deletions.
4 changes: 4 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ title = "royce wells"
PluralizeListTitles = false
theme = "hyde-royce"
rssLimit = 23
enableGitInfo = true
footnoteReturnLinkContents = ""


[taxonomies]
tag = "tags"
Expand All @@ -16,6 +19,7 @@ rssLimit = 23
disqusShortname = "roycewells-io"
author = "Royce Wells"
images = ["https://source.unsplash.com/1600x900/?nature,water"]
blogRepo = "https://github.com/comraderoyce/and-wells/"

[[menu.main]]
name = "about"
Expand Down
12 changes: 6 additions & 6 deletions content/reading.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ date = "2018-02-19"
type = "page"
title = "Reading List"
description = "What I am reading"
books = [
"978-0062316097",
"9780029059807",

]
layout = "reading"

+++

Currently reading:
<!--more-->

- Sapiens
- Finite and Infinte Games
4 changes: 2 additions & 2 deletions content/writing/conversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
date = "2018-02-18"
title = "Business Models of Conversation"
author = "Royce"

categories = [ "reference" ]
+++

Ideas around how to build business by packaging conversations.
Ideas around how to build business by packaging conversations.

<!--more-->

Expand Down
1 change: 1 addition & 0 deletions content/writing/measurement.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ date = "2017-12-04"
title = "How Advertising is Measured"
author = "Royce"
draft = false
categories = [ "reference" ]

+++

Expand Down
13 changes: 11 additions & 2 deletions themes/hyde-royce/layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
{{ partial "sidebar.html" . }}

<div class="content container">
<h1>404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
<h1>404!</h1>
<p class="">Sorry, there's nothing here. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding your way again.</p>
<ul>
{{ $urlPre := "https://api.github.com" }}
{{ $gistJ := getJSON $urlPre "/users/comraderoyce/gists" }}
{{ range first 5 $gistJ }}
{{ if .description }}
<li><a href="{{ .html_url }}" target="_blank">{{ .description }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>

</body>
Expand Down
26 changes: 26 additions & 0 deletions themes/hyde-royce/layouts/categories/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ partial "head.html" . }}
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
{{ partial "sidebar.html" . }}

<div class="content container">
<div class="post">
<h1 class="mt0">{{ .Title }}</h1>
{{ if .Params.categories }}
<span class="post-date">posted {{ .Date.Format "Mon, Jan 2, 2006" }} in
{{ range .Params.categories }}
<a class="tag" href="/categories/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
</span>
{{ else }}
<span class="post-date">posted {{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ end }}
{{ .Content }}
</div>

<h2>Comments</h2>
{{ partial "disqus" . }}
</div>

</body>
{{ partial "ga.html" . }}
</html>
4 changes: 2 additions & 2 deletions themes/hyde-royce/layouts/categories/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<div class="content container">
<h1 class="mt0">{{ .Title }}</h1>
<div class="posts">

{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<a href="/categories/{{ $name | urlize }}">#{{ $name | humanize }}</a> ({{ $taxonomy.Count }})</div>
<a href="/categories/{{ $name | urlize }}">#{{ $name }}</a> ({{ $taxonomy.Count }})</div>
{{end}}
</div>

Expand Down
16 changes: 16 additions & 0 deletions themes/hyde-royce/layouts/page/reading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ partial "head.html" . }}
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">

{{ partial "sidebar.html" . }}

<div class="content container">
<h1 class="mt0">{{ .Title }}</h1>
<div class="posts">
{{ range .Params.books }}
<img style="width: 23%; padding: 1%; float: left" src="http://covers.openlibrary.org/b/isbn/{{ . }}-M.jpg" />
{{ end }}
</div>

</body>
{{ partial "ga.html" . }}
</html>
5 changes: 4 additions & 1 deletion themes/hyde-royce/layouts/writing/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ <h1 class="mt0">{{ .Title }}</h1>
<span class="post-date">posted {{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ end }}
{{ .Content }}
{{ if .GitInfo }}
<a class="commit-note" target="_blank" href="{{ .Site.Params.blogRepo }}commit/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>
{{ end }}
</div>

<h2>Comments</h2>
{{ partial "disqus" . }}
</div>
Expand Down
5 changes: 5 additions & 0 deletions themes/hyde-royce/static/hyde.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ h1.tag {
display: inline-block;
}

.commit-note {
font-size: 10px;
float: right;
}

/* Contact Form */

input#first_5 {
Expand Down

0 comments on commit b9fc7cc

Please sign in to comment.