Skip to content

Commit 65e65e5

Browse files
authored
Initial commit
0 parents  commit 65e65e5

17 files changed

+865
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

_config.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
title: "My Blogs Name"
2+
author: "Default Author Name"
3+
description: "Some short description of your blog can go here." # This will show up in places like twitter, linkedin, etc, if you share your sites url as a post.
4+
5+
# Email / Social media user names used by the minima theme:
6+
# All of these are optional and can be removed or commented out
7+
8+
twitter_username: "twitteruser"
9+
github_username: "githubuser"
10+
linkedin_username: "linkedinuser"
11+
#facebook_username: username
12+
#flickr_username: username
13+
#instagram_username: username
14+
#pinterest_username: username
15+
#youtube_username: username
16+
#googleplus_username: +username
17+
18+
#########################################################################################
19+
######### Nothing below needs to be changed (unless you know what you're doing) #########
20+
#########################################################################################
21+
theme: "minima"
22+
23+
rss: rss
24+
25+
kramdown:
26+
syntax_highlighter_opts:
27+
disable: true
28+
29+
plugins:
30+
- jekyll-feed
31+
- jekyll-sitemap
32+
33+
titles_from_headings:
34+
strip_title: true
35+
collections: true
36+
37+
defaults:
38+
- scope:
39+
path: ""
40+
type: post
41+
values:
42+
tags: Other

_includes/head.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
<!-- Site build date: {{ "now" | date: "%FT%T%z" }} -->
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<!-- Begin SEO -->
9+
{% seo %}
10+
<!-- End SEO -->
11+
12+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
13+
<link rel="stylesheet" type="text/css" href="/css/override.css">
14+
15+
{% feed_meta %}
16+
17+
{% if jekyll.environment == 'production' and site.google_analytics -%}
18+
<!-- Begin Google Analytics -->
19+
{% include google-analytics.html %}
20+
<!-- End Google Analytics -->
21+
{%- endif %}
22+
23+
<!-- Begin highlight.js support -->
24+
<link rel="stylesheet" href="/js/highlightjs/styles/github.css">
25+
<link rel="stylesheet" href="/js/highlightjs/styles/ssms.css" />
26+
27+
<script type="text/javascript" src="/js/highlightjs/highlight.min.js"></script>
28+
29+
<script type="text/javascript" src="/js/highlightjs/languages/plaintext.min.js"></script>
30+
<script type="text/javascript" src="/js/highlightjs/languages/powershell.min.js"></script>
31+
<script type="text/javascript" src="/js/highlightjs/languages/tsql.min.js"></script>
32+
33+
<script type="text/javascript"> hljs.highlightAll(); </script>
34+
<!-- end highlight.js support -->
35+
</head>

_includes/navlinks.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<hr>
2+
<div class="post_navi">
3+
{%- if page.previous.url -%}
4+
<a class="post_navi-item nav_prev" href="{{ page.previous.url }}" title="{{ page.previous.title }}">
5+
<div class="post_navi-arrow">&lt;</div><div class="post_navi-label">Previous Post</div><div><span>{{ page.previous.title }}</span></div>
6+
</a>
7+
{%- else -%}
8+
<a class="post_navi-item nav_prev" href="{{ 'archive.html' | absolute_url }}" title="Blog Archive">
9+
<div class="post_navi-arrow">&lt;</div><div class="post_navi-label">Blog Archive</div><div><span>Archive of all previous blog posts</span></div>
10+
</a>
11+
{%- endif -%}
12+
{%- if page.next.url -%}
13+
<a class="post_navi-item nav_next" href="{{ page.next.url }}" title="{{ page.next.title }}">
14+
<div class="post_navi-arrow">&gt;</div><div class="post_navi-label">Next Post</div><div><span>{{ page.next.title }}</span></div>
15+
</a>
16+
{%- else -%}
17+
<a class="post_navi-item nav_next" href="{{ 'archive.html' | absolute_url }}" title="Blog Archive">
18+
<div class="post_navi-arrow">&gt;</div><div class="post_navi-label">Blog Archive</div><div><span>Archive of all previous blog posts</span></div>
19+
</a>
20+
{%- endif -%}
21+
</div>

_includes/sharelinks.html

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<style>
2+
#share-buttons {display: inline-block; vertical-align: middle; }
3+
#share-buttons:after {content: ""; display: block; clear: both;}
4+
#share-buttons > div {position: relative; text-align: left; height: 36px; width: 32px; float: left; text-align: center;}
5+
#share-buttons > div > svg {height: 16px; fill: #d5d5d5; margin-top: 10px;}
6+
#share-buttons > div:hover {cursor: pointer;}
7+
#share-buttons > div.facebook:hover > svg {fill: #3B5998;}
8+
#share-buttons > div.twitter:hover > svg {fill: #55ACEE;}
9+
#share-buttons > div.linkedin:hover > svg {fill: #0077b5;}
10+
#share-buttons > div.gplus:hover > svg {fill: #dd4b39;}
11+
#share-buttons > div.mail:hover > svg {fill: #7D7D7D;}
12+
#share-buttons > div.instagram:hover > svg {fill: #C73B92;}
13+
#share-buttons > div.facebook > svg {height: 18px; margin-top: 9px;}
14+
#share-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
15+
#share-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
16+
#share-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
17+
#share-buttons > div.gplus > svg {height: 17px; margin-top: 9px; position: relative; left: 1px;}
18+
#share-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
19+
</style>
20+
21+
{% assign safeurl = site.url | append: page.url | url_encode %}
22+
{% assign safetitle = page.title | url_encode %}
23+
{% assign safetitlepre = "[Blog] " | append: page.author | append: " - " | url_encode %}
24+
25+
<span style="color: silver;">Share on: </span><div id="share-buttons">
26+
<div class="facebook" title="Share this on Facebook" onclick="window.open('http://www.facebook.com/share.php?u={{ safeurl }}','popup','width=600,height=600'); return false;">
27+
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>
28+
<div class="twitter" title="Share this on Twitter" onclick="window.open('https://twitter.com/intent/tweet?url={{ safeurl }}&text={{ safetitle }}&via={{ site.twitter_username }}','popup','width=600,height=600'); return false;">
29+
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>
30+
<div class="linkedin" title="Share this on Linkedin" onclick="window.open('https://www.linkedin.com/sharing/share-offsite/?url={{ safeurl }}','popup','width=600,height=600'); return false;">
31+
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>
32+
<div class="gplus" title="Share this on Google Plus" onclick="window.open('https://plus.google.com/share?url={{ safeurl }}','popup','width=600,height=600'); return false;">
33+
<svg viewBox="0 0 2304 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1437 913q0 208-87 370.5t-248 254-369 91.5q-149 0-285-58t-234-156-156-234-58-285 58-285 156-234 234-156 285-58q286 0 491 192l-199 191q-117-113-292-113-123 0-227.5 62t-165.5 168.5-61 232.5 61 232.5 165.5 168.5 227.5 62q83 0 152.5-23t114.5-57.5 78.5-78.5 49-83 21.5-74h-416v-252h692q12 63 12 122zm867-122v210h-209v209h-210v-209h-209v-210h209v-209h210v209h209z"/></svg></div>
34+
<div class="mail" title="Share this through Email" onclick="window.open('mailto:?&body={{ safeurl }}&subject={{ safetitlepre }}{{ safetitle }}','popup','width=600,height=600'); return false;">
35+
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"/></svg></div>
36+
</div>

_layouts/post.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: default
3+
---
4+
<link href="/css/override.css" rel="stylesheet" type="text/css">
5+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
6+
7+
<header class="post-header">
8+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
9+
<p class="post-meta">
10+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
12+
{{ page.date | date: date_format }}
13+
</time>
14+
{% assign author = page.author | default: site.author %}
15+
{%- if author -%}
16+
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ author }}</span></span>
17+
{%- endif -%}</p>
18+
</header>
19+
20+
<div class="share-links">
21+
{% include sharelinks.html %}
22+
</div>
23+
24+
<div class="post-content e-content" itemprop="articleBody">
25+
{{ content }}
26+
{% include navlinks.html %}
27+
</div>
28+
29+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
30+
</article>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Blog Post Title From First Header
2+
3+
Due to a plugin called `jekyll-titles-from-headings` which is supported by GitHub Pages by default. The above header (in the markdown file) will be automatically used as the pages title.
4+
5+
If the file does not start with a header, then the post title will be derived from the filename.
6+
7+
This is a sample blog post. You can talk about all sorts of fun things here.
8+
9+
---
10+
11+
### This is a header
12+
13+
#### Some T-SQL Code
14+
15+
```tsql
16+
SELECT This, [Is], A, Code, Block -- Using SSMS style syntax highlighting
17+
, REVERSE('abc')
18+
FROM dbo.SomeTable s
19+
CROSS JOIN dbo.OtherTable o;
20+
```
21+
22+
#### Some PowerShell Code
23+
24+
```powershell
25+
Write-Host "This is a powershell Code block";
26+
27+
# There are many other languages you can use, but the style has to be loaded first
28+
29+
ForEach ($thing in $things) {
30+
Write-Output "It highlights it using the GitHub style"
31+
}
32+
```

archive.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: page
3+
title: Blog Archive
4+
---
5+
6+
{% for tag in site.tags %}
7+
<h3>{{ tag[0] }}</h3>
8+
<ul>
9+
{% for post in tag[1] %}
10+
<li><a href="{{ post.url }}">{{ post.date | date: "%B %Y" }} - {{ post.title }}</a></li>
11+
{% endfor %}
12+
</ul>
13+
{% endfor %}

css/override.css

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
hr {
2+
margin-top: 30px;
3+
margin-bottom: 20px;
4+
}
5+
6+
/* Post navigation links */
7+
.post_navi {
8+
display: flex;
9+
}
10+
11+
.post_navi-label {
12+
font-size: 0.8em;
13+
opacity: 0.5;
14+
}
15+
16+
.post_navi .post_navi-item {
17+
padding: 0 2.2em;
18+
width: 50%;
19+
position: relative;
20+
color: inherit !important;
21+
}
22+
23+
.post_navi .nav_prev {
24+
text-align: left;
25+
}
26+
27+
.post_navi .nav_next {
28+
text-align: right;
29+
}
30+
31+
.post_navi .nav_prev .post_navi-arrow {
32+
left: 0;
33+
}
34+
35+
.post_navi .nav_next .post_navi-arrow {
36+
right: 0;
37+
}
38+
39+
.post_navi .post_navi-arrow {
40+
position: absolute;
41+
top: 50%;
42+
transform: translateY(-50%);
43+
font-size: 2.5em;
44+
opacity: 0.3;
45+
}

index.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Here you can say lots of fun things about your site.
2+
3+
Maybe say a some things about yourself.
4+
5+
Or maybe what you plan to blog about.

0 commit comments

Comments
 (0)