Skip to content

Commit

Permalink
Install Jekyll theme Monos
Browse files Browse the repository at this point in the history
  • Loading branch information
williaml33moore committed Mar 8, 2024
1 parent d1a00b6 commit df45821
Show file tree
Hide file tree
Showing 50 changed files with 1,972 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GEM
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.8.0)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
jekyll (3.9.5)
addressable (~> 2.4)
Expand Down
48 changes: 48 additions & 0 deletions docs/_includes/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<article class="post">
<header class="post-header home">
<div class="post-title">Category - <span id='category-name'></span></div>
</header>

<div class="post-content">
{%- if site.posts.size > 0 -%}
<ul class="post-list">
{%- for post in site.posts -%}
<li class="post-list-item post-category-{{post.categories}}">
<!-- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%} -->
{%- assign date_format = "%Y/%m/%d" -%}
<span class="post-date">{{ post.date | date: date_format }}</span>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
{%- if site.show_excerpts -%}{{ post.excerpt }}{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
</article>

<script src="/public/js/jquery-3.4.1.slim.min.js"></script>
<script>
function removeCategory() {
if (window.location.hash) {
let hash = window.location.hash.substring(1);
$('#category-name').text(hash.substring(0, 1).toUpperCase() + hash.substring(1));
let category_class = '.post-category-' + hash;
let items = $('.post-list-item').each((i, e) => {
if (!$(e).hasClass('post-category-' + hash)) {
$(e).hide();
} else {
$(e).show();
}
});
}
}
$(window).on('hashchange', () => {
removeCategory();
});
$(document).ready(() => {
removeCategory();
})

</script>
19 changes: 19 additions & 0 deletions docs/_includes/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<style>@import url(/public/css/syntax/{{ site.highlighter-theme }}.css);</style>
<title>{{ site.title }}</title>
<!-- <link href="/public/css/bootstrap.min.css" rel="stylesheet"> -->

<link href="/public/css/style.css" rel="stylesheet">
<body>
<div class="container">
<div class="sidebar">
{% include sidebar.html %}
</div>
<div class="content">
{{ content }}
</div>
</div>
</body>
</html>
32 changes: 32 additions & 0 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>

<div class="wrapper">

<div class="footer-col-wrapper">
<div class="footer-col one-half">
<h2 class="footer-heading">{{ site.title | escape }}</h2>
<ul class="contact-list">
<li class="p-name">
{%- if site.author -%}
{{ site.author | escape }}
{%- endif -%}
</li>
{%- if site.email -%}
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
{%- endif -%}
</ul>
</div>

<div class="footer-col one-half">
<p>{{- site.description | escape -}}</p>
</div>

<div class="social-links">
{%- include social.html -%}
</div>
</div>

</div>

</footer>
9 changes: 9 additions & 0 deletions docs/_includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.google_analytics }}');
</script>
10 changes: 10 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- feed_meta -%}

{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}
</head>
31 changes: 31 additions & 0 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<header class="site-header">

<div class="wrapper">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>

{%- if titles_size > 0 -%}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>

<div class="trigger">
{%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title -%}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%}
</div>
</nav>
{%- endif -%}
</div>
</header>
27 changes: 27 additions & 0 deletions docs/_includes/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<article class="post">
<header class="post-header home">
<div class="post-title">Articles</div>
</header>

<div class="post-content">
{%- if site.posts.size > 0 -%}
<ul class="post-list">
{%- for post in site.posts -%}
<li class="post-list-item">
<!-- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%} -->
{%- assign date_format = "%Y/%m/%d" -%}
<span class="post-date">{{ post.date | date: date_format }}</span>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
{%- if site.show_excerpts -%}{{ post.excerpt }}{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
</article>



</div>
11 changes: 11 additions & 0 deletions docs/_includes/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<article class="post">
<header class="post-header home">
<div class="post-title">
{{ page.title | escape }}
</div>
</header>

<div class="post-content">
{{ content }}
</div>
</article>
15 changes: 15 additions & 0 deletions docs/_includes/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<article class="post">
<header class="post-header">
<div class="post-title">
{{ page.title | escape }}
</div>
<time class="post-date dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.date_forma | default: "%Y/%m/%d" -%}
{{ page.date | date: date_format }}
</time>
</header>

<div class="post-content">
{{ content }}
</div>
</article>
52 changes: 52 additions & 0 deletions docs/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<div class="sidebar-item sidebar-header">
<div class='sidebar-brand'>
<a href="/about/">{{ site.title }}</a>
</div>
<p class="lead">{{ site.description }}</p>
{%- if social.github -%}
<a rel="me" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}">
<svg class="svg-icon grey">
<use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}" />
</svg></a></li>
{%- endif -%}
</div>

<div class="sidebar-item sidebar-nav">
<ul class="nav">
<li class="nav-title">Pages</li>
<li>
<a class="nav-item" href="/">Articles</a>
</li>
{% assign pages_list = site.pages %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<li>
<a class="nav-item" href="{{ node.url }}">
{{ node.title }}
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</div>

<div class="sidebar-item sidebar-nav">
<ul class="nav">
<li class="nav-title">Categories</li>
{% for category in site.categories %}
<li>
<a class="nav-item" href="{{ root_url }}/{{ site.category_dir }}#{{ category | first }}">
<span class="name">{{ category | first }}</span>
<span class="badge">{{ category | last | size }}</span>
</a>
</li>
{% endfor %}
</nav>
</ul>
</div>

<div class="sidebar-item sidebar-footer">
<p>Powered by <a href="https://github.com/jekyll/jekyll">Jekyll</a></p>
</div>
19 changes: 19 additions & 0 deletions docs/_includes/social.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{%- assign social = site.minima.social_links -%}

<ul class="social-media-list">
{%- if social.dribbble -%}<li><a rel="me" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.facebook -%}<li><a rel="me" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.flickr -%}<li><a rel="me" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.github -%}<li><a rel="me" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.instagram -%}<li><a rel="me" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.linkedin -%}<li><a rel="me" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.pinterest -%}<li><a rel="me" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
{%- if social.twitter -%}<li><a rel="me" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.youtube -%}<li><a rel="me" href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.youtube_channel -%}<li><a rel="me" href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.telegram -%}<li><a rel="me" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.keybase -%}<li><a rel="me" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#keybase' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
{%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
</ul>
4 changes: 4 additions & 0 deletions docs/_layouts/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: default
---
{%- include category.html -%}
1 change: 1 addition & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- include default.html -%}
4 changes: 4 additions & 0 deletions docs/_layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: default
---
{% include home.html %}
4 changes: 4 additions & 0 deletions docs/_layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: default
---
{% include page.html %}
4 changes: 4 additions & 0 deletions docs/_layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: default
---
{% include post.html %}
Loading

0 comments on commit df45821

Please sign in to comment.