Initial Commit
commit
3052e25c6d
@ -0,0 +1,7 @@
|
||||
---
|
||||
layout: default
|
||||
permalink: /404.html
|
||||
---
|
||||
|
||||
# 404
|
||||
Page not found :(
|
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "jekyll-theme-console"
|
||||
gem 'jekyll-seo-tag'
|
||||
|
||||
gem "webrick", "~> 1.7"
|
@ -0,0 +1,75 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
addressable (2.8.1)
|
||||
public_suffix (>= 2.0.2, < 6.0)
|
||||
colorator (1.1.0)
|
||||
concurrent-ruby (1.1.10)
|
||||
em-websocket (0.5.3)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0)
|
||||
eventmachine (1.2.7)
|
||||
ffi (1.15.5)
|
||||
forwardable-extended (2.6.0)
|
||||
http_parser.rb (0.8.0)
|
||||
i18n (1.12.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (4.2.2)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
em-websocket (~> 0.5)
|
||||
i18n (~> 1.0)
|
||||
jekyll-sass-converter (~> 2.0)
|
||||
jekyll-watch (~> 2.0)
|
||||
kramdown (~> 2.3)
|
||||
kramdown-parser-gfm (~> 1.0)
|
||||
liquid (~> 4.0)
|
||||
mercenary (~> 0.4.0)
|
||||
pathutil (~> 0.9)
|
||||
rouge (~> 3.0)
|
||||
safe_yaml (~> 1.0)
|
||||
terminal-table (~> 2.0)
|
||||
jekyll-sass-converter (2.2.0)
|
||||
sassc (> 2.0.1, < 3.0)
|
||||
jekyll-seo-tag (2.8.0)
|
||||
jekyll (>= 3.8, < 5.0)
|
||||
jekyll-theme-console (0.4.0)
|
||||
jekyll (>= 3.5)
|
||||
jekyll-seo-tag
|
||||
jekyll-watch (2.2.1)
|
||||
listen (~> 3.0)
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.7.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.4.0)
|
||||
pathutil (0.16.2)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (5.0.0)
|
||||
rb-fsevent (0.11.1)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.2.5)
|
||||
rouge (3.30.0)
|
||||
safe_yaml (1.0.5)
|
||||
sassc (2.4.0)
|
||||
ffi (~> 1.9)
|
||||
terminal-table (2.0.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
unicode-display_width (1.8.0)
|
||||
webrick (1.7.0)
|
||||
|
||||
PLATFORMS
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll-seo-tag
|
||||
jekyll-theme-console
|
||||
webrick (~> 1.7)
|
||||
|
||||
BUNDLED WITH
|
||||
2.3.20
|
@ -0,0 +1,28 @@
|
||||
# pickmy.org Jekyll source
|
||||
|
||||
This is the main repository for pickmy.org's website. All the posts and custom code Jekyll uses to build the site.
|
||||
|
||||
The site is automatically built when I push stuff to the repository.
|
||||
|
||||
## Modifications To Theme
|
||||
|
||||
This uses [jekyll-theme-console by b2a3e8](https://github.com/b2a3e8/jekyll-theme-console) with a few modifications:
|
||||
|
||||
- main.scss has list bulleting code removed
|
||||
- list.scss now contains the list bullet code
|
||||
- head.html modified to search for "list: bullet" in front matter
|
||||
- header.html modified to look for page titled "/git" to display non-relative URL.
|
||||
|
||||
All other changes are made in the markdown.
|
||||
|
||||
## Organization Of Site
|
||||
|
||||
The concept of posts and pages the way they were with Wordpress are out the window. All posts are posts. All pages are posts.
|
||||
|
||||
I'm taking advantage of the fact I can make a folder, put a _posts folder under it, and Jekyll automatically categorizes those posts. This means there are three main types/categories of posts/pages:
|
||||
|
||||
- /blog: all general blogging type posts
|
||||
- /pbx: all Asterisk related stuff
|
||||
- /dev: all development based stuff
|
||||
|
||||
Post images or external resources ***ARE NOT*** stored in this repository.
|
@ -0,0 +1,20 @@
|
||||
# Example Site settings
|
||||
|
||||
#google_analytics: UA-NNNNNNNN-N
|
||||
|
||||
header_pages:
|
||||
- index.md
|
||||
- blog.md
|
||||
- pbx.md
|
||||
- dev.md
|
||||
- git.md
|
||||
- about.md
|
||||
|
||||
footer: 'powered by linux | twitter: <a href="https://twitter.com/music_onhold">@Music_OnHold</a>'
|
||||
|
||||
theme: jekyll-theme-console
|
||||
style: hacker # dark (default) or light
|
||||
#listen_for_clients_preferred_style: true # true or false (default)
|
||||
|
||||
plugins:
|
||||
- jekyll-seo-tag
|
@ -0,0 +1,30 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>{{ page.title }}</title>
|
||||
{%- seo title=false -%}
|
||||
|
||||
{% if page.robots %}
|
||||
<meta name="robots" content="{{page.robots}}" />
|
||||
{% endif %}
|
||||
|
||||
{%- if site.listen_for_clients_preferred_style -%}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/main.css" | relative_url }}">
|
||||
{%- else -%}
|
||||
{%- if site.style == 'light' -%}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/main-light.css" | relative_url }}">
|
||||
{%- elsif site.style == 'hacker' -%}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/main-hacker.css" | relative_url }}">
|
||||
{%- else -%}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/main-dark.css" | relative_url }}">
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- if page.list == 'bullet' -%}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/css/list.css" }}">
|
||||
{%- endif -%}
|
||||
|
||||
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
||||
{%- include google-analytics.html -%}
|
||||
{%- endif -%}
|
||||
</head>
|
@ -0,0 +1,15 @@
|
||||
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
||||
<header>
|
||||
<div class="menu">
|
||||
<ul>
|
||||
{%- for path in page_paths -%}
|
||||
{%- assign my_page = site.pages | where: "path", path | first -%}
|
||||
{%- if my_page.title == '/git' -%}
|
||||
<li><a href="https://git.pickmy.org">/git</a></li>
|
||||
{%- else -%}
|
||||
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
POSTS=$(find . -type f -exec stat -c '%Y %n' {} \; | sort -nr | awk 'NR==1,NR==3 {print $2}')
|
||||
echo $POSTS
|
||||
for FILE in $POSTS; do
|
||||
|
||||
cp -R $FILE $(pwd)/../
|
||||
|
||||
done
|
||||
|
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
DAY=18
|
||||
SOURCE="2022-08-21-welcome-to-jekyll.markdown"
|
||||
OUT="2022-08-$DAY-$i.markdown"
|
||||
for i in {1..15}; do
|
||||
cp "$SOURCE" "OUT"
|
||||
DAY = $((DAY - 1))
|
||||
done
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
:not(.menu) > ul > li:before { content: "-"; margin-right: 9px; }
|
@ -0,0 +1,132 @@
|
||||
@charset "utf-8";
|
||||
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700');
|
||||
|
||||
/**
|
||||
* Style variables
|
||||
*/
|
||||
$base-font-family: 'Source Code Pro', monospace !default;
|
||||
$base-font-size: 12.5px !default;
|
||||
$mobile-font-size: 12px !default;
|
||||
$base-line-height: 1.5 !default;
|
||||
$container-width: 90% !default;
|
||||
$container-max-width: 600px !default;
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
body { background-color: var(--background-color); margin: 0 auto; padding: 0; font-family: $base-font-family; font-size: $base-font-size; color: var(--text-color); text-align: left; line-height: $base-line-height !important; }
|
||||
h1, h2, h3, h4, h5, h6 { font-size: $base-font-size; margin: 0px; margin-top: 22px; font-weight: bold; color: var(--text-color); }
|
||||
p, ul, ol { margin: 0px; color: var(--text-color); }
|
||||
a { text-decoration: underline; color: var(--link-color); }
|
||||
a:hover { color: var(--background-color); background-color: var(--base-color); }
|
||||
@media only screen and (max-device-width: 500px) { * { font-size: $mobile-font-size !important; } }
|
||||
|
||||
/**
|
||||
* Layout
|
||||
*/
|
||||
.container { width: $container-width; max-width: $container-max-width; margin-right: auto; margin-left: auto; }
|
||||
p { word-wrap: break-word; word-break: break-word; white-space: pre-wrap; margin-bottom: 15px; }
|
||||
footer { color: var(--text-color); border-top: var(--border); margin: 20px auto 15px; padding-top: 10px; text-align: right; }
|
||||
header { margin-top: 25px; margin-bottom: 10px; }
|
||||
header p { text-align: left; margin: 0; }
|
||||
footer { margin-bottom: 20px; }
|
||||
|
||||
/**
|
||||
* Highlight/Markup
|
||||
*/
|
||||
::selection { background: var(--selection-background); color: var(--selection-text); }
|
||||
::-moz-selection { background: var(--selection-background); color: var(--selection-text); }
|
||||
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
:not(.menu) > ul { list-style: none; padding-left: 0; }
|
||||
:not(.menu) > ul { list-style-type: none; }
|
||||
|
||||
/**
|
||||
* Header/Navigation
|
||||
*/
|
||||
.menu { border-top: var(--border); border-bottom: var(--border); margin-bottom: 25px; }
|
||||
.menu ul { margin-top: 12px; margin-bottom: 12px; padding-left: 0px; list-style-type: none; text-align: right; }
|
||||
.menu ul li { display: inline; margin-left: 10px; }
|
||||
.menu ul li a { text-decoration: none; color: var(--text-color); }
|
||||
.menu ul li a:hover { text-decoration: none; color: var(--background-color); background-color: var(--base-color); }
|
||||
|
||||
/**
|
||||
* Form
|
||||
*/
|
||||
input, select, textarea { padding: 0; margin: 0; -webkit-appearance: none; -webkit-border-radius: 0; border: none; }
|
||||
input[type=text], select, textarea { width: 100%; resize: none; background-color: var(--background-color); color: var(--text-color); caret-color: var(--text-color); font-size: $base-font-size; font-family: $base-font-family; line-height: $base-line-height; }
|
||||
input, select, textarea, textarea::-webkit-input-placeholder { text-indent: 0px; }
|
||||
::placeholder { color: var(--placeholder-color); opacity: 1; }
|
||||
:-ms-input-placeholder { color: var(--placeholder-color); }
|
||||
::-ms-input-placeholder { color: var(--placeholder-color); }
|
||||
input[type=submit] { font-size: $base-font-size; font-family: $base-font-family; line-height: $base-line-height; cursor: pointer; color: var(--link-color); background-color: var(--background-color); }
|
||||
input[type=submit]:hover { color: var(--background-color); background-color: var(--base-color); }
|
||||
*:focus { outline: none; }
|
||||
textarea { vertical-align: top; }
|
||||
|
||||
/**
|
||||
* Code and syntax highlighting
|
||||
*/
|
||||
.lineno { color: var(--code-color-1); margin-right: 15px; }
|
||||
figure.highlight { margin: 5px 0; }
|
||||
pre { background-color: var(--background-color); border: none; padding: 0; margin: 0; overflow:auto; font-size: $base-font-size; color: var(--text-color); line-height: 1.7 !important; font-family: $base-font-family !important; }
|
||||
.highlight .hll { background-color: var(--code-color-2); }
|
||||
.highlight .c { color: var(--code-color-1); font-style: italic } /* Comment */
|
||||
.highlight .err { color: var(--code-color-3); background-color: var(--code-color-4); } /* Error */
|
||||
.highlight .k { color: var(--code-color-5); } /* Keyword */
|
||||
.highlight .cm { color: var(--code-color-1); font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: var(--code-color-6); } /* Comment.Preproc */
|
||||
.highlight .c1 { color: var(--code-color-1); font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: var(--code-color-5); font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: var(--code-color-7); } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: var(--code-color-7); } /* Generic.Error */
|
||||
.highlight .gh { color: var(--code-color-8); font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: var(--code-color-9); } /* Generic.Inserted */
|
||||
.highlight .go { color: var(--code-color-10); } /* Generic.Output */
|
||||
.highlight .gp { color: var(--code-color-11); } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: var(--code-color-12); font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: var(--code-color-7); } /* Generic.Traceback */
|
||||
.highlight .kc { color: var(--code-color-5); } /* Keyword.Constant */
|
||||
.highlight .kd { color: var(--code-color-5); } /* Keyword.Declaration */
|
||||
.highlight .kn { color: var(--code-color-5); } /* Keyword.Namespace */
|
||||
.highlight .kp { color: var(--code-color-5); } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: var(--code-color-5); } /* Keyword.Reserved */
|
||||
.highlight .kt { color: var(--code-color-13); } /* Keyword.Type */
|
||||
.highlight .m { color: var(--code-color-14); } /* Literal.Number */
|
||||
.highlight .s { color: var(--code-color-15); } /* Literal.String */
|
||||
.highlight .na { color: var(--code-color-16); } /* Name.Attribute */
|
||||
.highlight .nb { color: var(--code-color-13); } /* Name.Builtin */
|
||||
.highlight .nc { color: var(--code-color-9); text-decoration: underline } /* Name.Class */
|
||||
.highlight .no { color: var(--code-color-7); } /* Name.Constant */
|
||||
.highlight .nd { color: var(--code-color-10); } /* Name.Decorator */
|
||||
.highlight .ni { color: var(--code-color-17); font-weight: bold } /* Name.Entity */
|
||||
.highlight .nf { color: var(--code-color-9); } /* Name.Function */
|
||||
.highlight .nn { color: var(--code-color-13); text-decoration: underline } /* Name.Namespace */
|
||||
.highlight .nt { color: var(--code-color-16); font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: var(--code-color-7); } /* Name.Variable */
|
||||
.highlight .ow { color: var(--code-color-5); } /* Operator.Word */
|
||||
.highlight .w { color: var(--code-color-18); } /* Text.Whitespace */
|
||||
.highlight .mf { color: var(--code-color-14); } /* Literal.Number.Float */
|
||||
.highlight .mh { color: var(--code-color-14); } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: var(--code-color-14); } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: var(--code-color-14); } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: var(--code-color-15); } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: var(--code-color-15); } /* Literal.String.Char */
|
||||
.highlight .sd { color: var(--code-color-15); } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: var(--code-color-15); } /* Literal.String.Double */
|
||||
.highlight .se { color: var(--code-color-15); } /* Literal.String.Escape */
|
||||
.highlight .sh { color: var(--code-color-15); } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: var(--code-color-15); } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: var(--code-color-15); } /* Literal.String.Other */
|
||||
.highlight .sr { color: var(--code-color-14); } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: var(--code-color-15); } /* Literal.String.Single */
|
||||
.highlight .ss { color: var(--code-color-5); } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: var(--code-color-13); } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: var(--code-color-7); } /* Name.Variable.Class */
|
||||
.highlight .vg { color: var(--code-color-7); } /* Name.Variable.Global */
|
||||
.highlight .vi { color: var(--code-color-7); } /* Name.Variable.Instance */
|
||||
.highlight .il { color: var(--code-color-14); } /* Literal.Number.Integer.Long */
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: /blog
|
||||
layout: default
|
||||
permalink: /blog
|
||||
list: bullet
|
||||
---
|
||||
|
||||
# pickmy.org:~/blog$
|
||||
|
||||
This is a master list of blog posts written since the new site (24-AUG) or imported from the old data. At some point this may have additional organization or fancier output. You get what you get.
|
||||
|
||||
<ul>
|
||||
{% for post in site.categories.blog %}
|
||||
<li>
|
||||
<a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Blogpost 1"
|
||||
---
|
||||
|
||||
This is a sample blog post.
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Blogpost 2"
|
||||
---
|
||||
|
||||
This is a sample blog post 2.
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: /dev
|
||||
layout: default
|
||||
permalink: /dev
|
||||
list: bullet
|
||||
---
|
||||
|
||||
# pickmy.org:~/dev$
|
||||
|
||||
All documentation related development that's not on my [Git](https://git.pickmy.org) will go here; and some of this may go more in depth than [Git](https://git.pickmy.org).
|
||||
|
||||
<ul>
|
||||
{% for post in site.categories.dev %}
|
||||
{% if post.url %}
|
||||
<li><a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "dev test"
|
||||
---
|
||||
|
||||
This is a test of a /dev post. It should automatically category as dev.
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "DevTest2"
|
||||
---
|
||||
|
||||
This is another /dev post.
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
title: pickmy.org:~$
|
||||
layout: default
|
||||
permalink: /
|
||||
list:
|
||||
---
|
||||
# Welcome to the new pickmy.org
|
||||
|
||||
We've ditched Wordpress and are now running Jekyll. I tried Hugo but I couldn't get it to do what I wanted easily. I still had to make some consessions with this site, but nothing that I can't work around. Everything is now static generated everytime I push a post to the repository.
|
||||
|
||||
I will slowly work on getting the original content over to the new site. I will likely be archiving the old site in some fashion as well. I have everything exported to Jekyll, but I have a lot of manual editing and checking to do.
|
||||
|
||||
# ***Recent Posts:***
|
||||
<ul>
|
||||
{% for post in site.posts limit:3 %}
|
||||
<li>
|
||||
<a href="{{ post.url }}">{{ post.title }} - /{{ post.categories }}</a>
|
||||
{{ post.excerpt }}
|
||||
<a href="{{ post.url }}">Posted: {{ post.date | date: "%d-%^b-%Y" }} | Read More...</a>
|
||||
</li><br>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
# *Less Recent Posts:*
|
||||
|
||||
<ul>
|
||||
{% assign counter = 0 %}
|
||||
{% for post in site.posts limit:6 %}
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
{% if counter > 3 %}
|
||||
<li>
|
||||
/{{ post.categories }}: <a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: /pbx
|
||||
layout: default
|
||||
permalink: /pbx
|
||||
list: bullet
|
||||
---
|
||||
|
||||
# pickmy.org:~/pbx$
|
||||
|
||||
All documentation related Asterisk that's not on my [Git](https://git.pickmy.org) will go here; and some of this may go more in depth than [Git](https://git.pickmy.org).
|
||||
|
||||
<ul>
|
||||
{% for post in site.categories.pbx %}
|
||||
{% if post.url %}
|
||||
<li><a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Asterisk PBX"
|
||||
---
|
||||
|
||||
This is a test of the /pbx.
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: post
|
||||
title: "PBX2"
|
||||
---
|
||||
|
||||
This is another /pbx post.
|
Loading…
Reference in New Issue