Commit dc11779c authored by Morgan McMillian's avatar Morgan McMillian

Intial site commit

parents
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
languageCode = "en-us"
theme = "blackburn"
baseurl = "https://thrrgilag.net/" # Make sure to end baseurl with a '/'
title = "Morgan McMillian"
author = "Morgan McMillian"
# Shown in the side menu
copyright = "© 2018. All rights reserved."
canonifyurls = true
paginate = 10
[indexes]
tag = "tags"
topic = "topics"
[params]
# Shown in the home page
subtitle = "software development and other random bits"
brand = "thrrgilag"
# CSS name for highlight.js
highlightjs = "androidstudio"
highlightjs_extra_languages = ["yaml"]
dateFormat = "02 Jan 2006, 15:04"
# Include any custom CSS and/or JS files
# (relative to /static folder)
custom_css = ["custom.css"]
# custom_js = ["js/my.js"]
[menu]
# Shown in the side menu.
[[menu.main]]
name = "Home"
pre = "<i class='fa fa-home fa-fw'></i>"
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
pre = "<i class='fa fa-list fa-fw'></i>"
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 3
identifier = "about"
url = "/about/"
[[menu.main]]
name = "Topics"
pre = "<i class='fa fa-folder fa-fw'></i>"
weight = 4
identifier = "topic"
url = "/topics/"
[[menu.main]]
name = "Tags"
pre = "<i class='fa fa-tags fa-fw'></i>"
weight = 5
identifier = "tag"
url = "/tags/"
[[menu.main]]
name = "Contact"
pre = "<i class='fa fa-phone fa-fw'></i>"
weight = 6
url = "/contact/"
[social]
# Link your social networking accounts to the side menu
# by entering your username or ID.
# Techie
github = "thrrgilag"
gitlab = "https://gitlab.dreamfall.space/thrrgilag"
mastodon = "https://mastodon.social/@thrrgilag"
pnut = "thrrgilag"
diaspora = "https://shrekislove.us/u/thrrgilag"
---
title: "About"
date: 2018-11-22T06:37:58-08:00
draft: true
---
I am thrrgilag, also known as Morgan McMillian. You might stumble across my small open source projects or even my contributions here and there to various other projects where possible. My day job is in the design and development of email security infrastructure. I love software development and get to do a little bit of it in my day job it's mostly a hobby in my spare time.
&nbsp;
### Software development
The majority of the code I write is either in Python, JavaScript, or C++. I've also worked in Perl and Java in the past although not much in recent years. I like learning new languages and started working with Go and Rust and hope to start some new projects in the near future. You can find my work on both GitLab and GitHub.
---
title: "Contact"
date: 2018-11-22T06:40:38-08:00
draft: true
---
My preferred way of keeping in touch is using one of the chat services listed below. You can also reach me by email to gilag at monkeystew dot com.
&nbsp;
<table class="yoda">
<tr>
<th>[matrix]</th>
<td><a href="https://matrix.to/#/@thrrgilag:monkeystew.net" target="_blank">@thrrgilag:monkeystew.net</a></td>
</tr>
<tr>
<th>xmpp</th>
<td><a href="xmpp:thrrgilag@monkeystew.net">thrrgilag@monkeystew.net</a></td>
</tr>
<tr>
<th>Telegram</th>
<td><a href="https://t.me/thrrgilag" target="_blank">@thrrgilag</a></td>
</tr>
</table>
---
title: "Goober 0.7.0"
date: 2018-11-23T13:56:31-08:00
topics:
- Goober
- Development
tags:
- pnut
- android
draft: true
---
The latest Goober for Android has been released to the Google Play store.
This update adds the ability to hide images in the timeline by default and a
new profile view allowing you to view a users posts, follow, mute, or block. I
also added a couple of tweaks to the post actions menu mostly for myself but
perhaps others might find them useful as well.
<!--more-->
As usual if you have questions or issues you can find me in the Goober chat on
[pnut](https://patter.chat/room/934), [matrix](https://matrix.to/#/#goober:monkeystew.net), or [xmpp](xmpp:goober@chat.monkeystew.net?join).
You can also find more information, checkout the source, and file issues on my
[GitLab](https://gitlab.dreamfall.space/thrrgilag/Goober) project site.
### Roadmap
Goober will be undergoing some significant changes over the next series of
updates to strip away the native device dependencies and become more of a true
cross-platform mobile application. The two big goals I have in mind will be to
support more mobile platforms and to have live automatic updates. Here are some
of the things I have in mind in no particular order.
- Live automatic updates
- Expanded OS support (iOS, Ubuntu Touch, & others)
- Accessibility
- Additional rich post capabilities
- Message channel support
- Notification support?
---
title: "Hello World! (again)"
date: 2018-11-22T06:14:21-08:00
draft: true
---
I finally made the jump to using a site generator for my blog along with a new domain name. Rather than migrating the old site I've decided to leave it in place and just place my new posts here. Now that this post is out of the way, on with the show!
.yoda table {
border-spacing: 10px;
}
.yoda th {
text-align: right;
padding-right: 10px;
}
The MIT License (MIT)
Copyright (c) 2016 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Blackburn
Blackburn is a clear and responsive theme for [Hugo](//gohugo.io).
## Overview
* Based on Yahoo's [Pure CSS](http://purecss.io/) (v1.0.0)
* Fixed sidebar with social links:
* Twitter
* GNU social
* Facebook
* Google+
* Weibo
* Tumblr
* Instagram
* Flickr
* 500px
* Pinterest
* YouTube
* Vimeo
* Vine
* SlideShare
* LinkedIn
* Xing
* Reddit
* Hacker News
* GitHub
* GitLab
* Bitbucket
* Stack Overflow
* Server Fault
* Steam
* MobyGames
* Last.fm
* Discogs
* Keybase
* Client-side syntax highlighting by [Highlight.js](//highlightjs.org) (v9.12.0)
* Web analytics by Google Analytics
* Comments by Disqus
* Icons by Font Awesome (v4.7.0)
## Demo
* [Demo](http://themes.gohugo.io/theme/blackburn/)
* You can also see it in action on my personal website [here](http://yoshiharuyamashita.com/)
## Screenshots
![screenshot](https://raw.githubusercontent.com/yoshiharuyamashita/blackburn/master/images/screenshot.png)
## Installation
In your Hugo site directory, run:
```shell
$ mkdir themes
$ cd themes
$ git clone https://github.com/yoshiharuyamashita/blackburn.git
```
or download from [here](//github.com/yoshiharuyamashita/blackburn/archive/master.zip).
See [Hugo Quickstart Guide](//gohugo.io/overview/quickstart/) for more information.
## Configuration
Example config.toml:
```toml
baseurl = "https://www.example.com/" # Make sure to end baseurl with a '/'
title = "Your site title"
author = "Your name"
# Shown in the side menu
copyright = "&copy; 2016. All rights reserved."
canonifyurls = true
paginate = 10
[indexes]
tag = "tags"
topic = "topics"
[params]
# Shown in the home page
subtitle = "A Hugo Theme"
brand = "Blackburn"
googleAnalytics = "Your Google Analytics tracking ID"
disqus = "Your Disqus shortname"
# CSS name for highlight.js
highlightjs = "androidstudio"
highlightjs_extra_languages = ["yaml"]
dateFormat = "02 Jan 2006, 15:04"
# Include any custom CSS and/or JS files
# (relative to /static folder)
custom_css = ["css/my.css"]
custom_js = ["js/my.js"]
[params.piwikAnalytics]
siteid = 2
piwikroot = "//analytics.example.com/"
[menu]
# Shown in the side menu.
[[menu.main]]
name = "Home"
pre = "<i class='fa fa-home fa-fw'></i>"
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
pre = "<i class='fa fa-list fa-fw'></i>"
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 3
identifier = "about"
url = "/about/"
[[menu.main]]
name = "Contact"
pre = "<i class='fa fa-phone fa-fw'></i>"
weight = 4
url = "/contact/"
[social]
# Link your social networking accounts to the side menu
# by entering your username or ID.
# SNS microblogging
twitter = "*"
gnusocial = "*" # Specify href (e.g. https://quitter.se/yourusername)
facebook = "*"
googleplus = "*"
weibo = "*"
tumblr = "*"
# SNS photo/video sharing
instagram = "*"
flickr = "*"
photo500px = "*"
pinterest = "*"
youtube = "*"
vimeo = "*"
vine = "*"
slideshare = "*"
# SNS career oriented
linkedin = "*"
xing = "*"
# SNS news
reddit = "*"
hackernews = "*"
# Techie
github = "yoshiharuyamashita"
gitlab = "*"
bitbucket = "*"
stackoverflow = "*"
serverfault = "*"
# Gaming
steam = "*"
mobygames = "*"
# Music
lastfm = "*"
discogs = "*"
# Other
keybase = "*"
```
## Usage
* Write Markdown files in `content/post`
* Add fixed pages (e.g., about.md) to the side menu by defining them under `[menu]` in the config.toml:
```toml
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 2
identifier = "about"
url = "/about/"
```
* Override the theme by linking to custom CSS files or URLs:
```toml
[params]
custom_css = ["css/my.css"]
```
* Add new behaviours by linking to custom JS files or URLs:
```toml
[params]
custom_js = ["js/my.js", "https://cdnjs.cloudflare.com/ajax/libs/zooming/1.4.2/zooming.min.js"]
```
## Shortcodes
### pure_table
```
{{< pure_table
"columnName1|columnName2|...|columnName99"
"dataValue1|dataValue2|...|dataValue99"
"dataValue1|dataValue2|...|dataValue99"
"dataValue1|dataValue2|...|dataValue99"
"... and so on"
>}}
```
where each positional parameter is separated by the vertical bar (i.e., |). The resulting `<table>` is set to have `class="pure-table pure-table-striped"`.
### fluid_imgs
```
{{< fluid_imgs
"class|src|alt"
"class|src|alt"
"... and so on"
>}}
```
where each positional parameter is separated by the vertical bar (i.e., |).
- `class`: specifies a Pure CSS unit class name (**required**)
- `src`: specifies the URL of an image (**required**)
- `alt`: specifies an alternate text for an image (optional)
See [here](http://yoshiharuyamashita.com/post/hugo-shortcode-to-show-multiple-images/) for examples.
### fluid_img (obsolete)
#### Positional
```
{{% fluid_img "/path/to/img" %}}
```
#### Named
```
{{% fluid_img class="pure-u-1-2" src="/path/to/img" alt="img description" %}}
{{% fluid_img class="pure-u-1-3" src="/path/to/img" caption="img description" %}}
```
* `class`, `alt` and `caption` are optional.
* See [Pure CSS Grids](http://purecss.io/grids/) for possible `class` values.
## License
* [MIT](//opensource.org/licenses/MIT)
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
draft = true
tags = []
topics = []
description = ""
+++
<li><time>{{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04" }}{{ end }}</time> - <a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ partial "header.html" . }}
<div class="header">
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</div>
<div class="content">
{{ .Content }}
</div>
{{ partial "footer.html" . }}
<article>
<header>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "post_meta.html" . }}
</header>
<p>
{{ .Summary }}
</p>
{{ if .Truncated }}
<footer>
<a href="{{ .RelPermalink }}">Read more<i class="fa fa-angle-double-right fa-fw"></i></a>
</footer>
{{ end }}
</article>
{{ partial "header.html" . }}
<div class="header">
<h1>{{ .Title }}</h1>
</div>
<div class="content">
<ul>
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
<li>
<a href="{{ $value.Name | urlize }}">{{ $value.Name }}</a>
<span>&#40;{{ $value.Count }}&#41;</span>
</li>
{{ end }}
</ul>
</div>
{{ partial "footer.html" . }}
\ No newline at end of file
{{ partial "header.html" . }}
<div class="header">
<h1>{{ .Title }}</h1>
<h2>{{ .Site.Params.subtitle }}</h2>
</div>
<div class="content">
{{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }}
{{ .Render "summary"}}
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ partial "footer.html" . }}
{{ with .Site.Params.brand }}
<a class="pure-menu-heading brand" href="/">{{ . | safeHTML }}</a>
{{ end }}
\ No newline at end of file
<div>
<div class="small-print">
<small>{{ .Site.Copyright | safeHTML }}</small>
</div>
<div class="small-print">
<small>Built with&nbsp;<a href="https://gohugo.io/" target="_blank">Hugo</a></small>
<small>Theme&nbsp;<a href="https://github.com/yoshiharuyamashita/blackburn" target="_blank">Blackburn</a></small>
</div>
</div>
{{ with .Site.Params.disqus }}
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = '{{ . }}';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{{ end }}
\ No newline at end of file
<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon" />
\ No newline at end of file
</div>
</div>
<script src="{{ .Site.BaseURL }}js/ui.js"></script>
<script src="{{ .Site.BaseURL }}js/menus.js"></script>
{{ partial "google_analytics.html" . }}
{{ partial "piwik_analytics.html" . }}
</body>
</html>
{{ with .Site.Params.googleAnalytics }}
<script>
// Never report traffic that originates from local testing.
if (window.location.hostname != "localhost") {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
}
</script>
{{ end }}
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
{{.Hugo.Generator}}
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
<!-- CSS -->
{{ $purecss := "https://cdnjs.cloudflare.com/ajax/libs/pure/1.0.0/" }}
<link rel="stylesheet" href="{{ $purecss }}pure-min.css">
{{ "<!--[if lte IE 8]>" | safeHTML }}
<link rel="stylesheet" href="{{ $purecss }}grids-responsive-old-ie-min.css">
{{ "<![endif]-->" | safeHTML }}
{{ "<!--[if gt IE 8]><!-->" | safeHTML }}
<link rel="stylesheet" href="{{ $purecss }}grids-responsive-min.css">
{{ "<!--<![endif]-->" | safeHTML }}
{{ "<!--[if lte IE 8]>" | safeHTML }}
<link rel="stylesheet" href="/css/side-menu-old-ie.css">
{{ "<![endif]-->" | safeHTML }}
{{ "<!--[if gt IE 8]><!-->" | safeHTML }}
<link rel="stylesheet" href="/css/side-menu.css">
{{ "<!--<![endif]-->" | safeHTML }}
<link rel="stylesheet" href="/css/blackburn.css">
<!-- Icons -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
<!-- MathJax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- RSS -->
{{ if .RSSLink }}
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .RSSLink }}" />
{{ end }}
{{ with .Site.Params.highlightjs }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ . }}.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
{{ range $.Site.Params.highlightjs_extra_languages }}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{ . }}.min.js"></script>
{{ end }}
<script>hljs.initHighlightingOnLoad();</script>
{{ end }}
{{ partial "favicon.html" . }}
{{ range .Site.Params.custom_css }}
{{ if findRE "https?://" . }}
<link rel="stylesheet" href="{{ . }}">
{{ else }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
{{ end }}
{{ end }}
{{ range .Site.Params.custom_js }}
{{ if findRE "https?://" . }}
<script src="{{ . }}"></script>
{{ else }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{ end }}
{{ end }}
</head>
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
<div id="layout">
{{ partial "sidemenu.html" . }}
<div id="main">
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
{{ $prev := "fa fa-chevron-left"}}
{{ $next := "fa fa-chevron-right"}}
<nav class="pagination" role="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}"><i class="{{ $prev }}"></i></a>
{{ else }}
<i class="{{ $prev }}"></i>
{{ end }}
<span>&nbsp;{{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }}&nbsp;</span>
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}"><i class="{{ $next }}"></i></a>
{{ else }}
<i class="{{ $next }}"></i>
{{ end }}
</nav>
{{ end }}
{{ with .Site.Params.piwikAnalytics }}
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ .piwikroot }}";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', {{ .siteid }}]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
</