Skip to content

Commit 43a047b

Browse files
authored
Merge pull request #1 from BlueHuskyStudios/feature/MVP
I think it's ready for a 1.0.0
2 parents a66d5dc + 57ec974 commit 43a047b

5 files changed

Lines changed: 285 additions & 0 deletions

File tree

default.html

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{%- comment -%}
2+
3+
The bit of Liquid below is meant to be a way to simplify what icon goes in the top-right of the app
4+
bar. So far I've just got GitHub, but since I'd like to push this as a generalized component, I
5+
figured I should think of a generalized solution that'll work going forward.
6+
7+
{%- endcomment -%}
8+
{%- if page.app-bar.trailing-control.target -%}
9+
{%- case page.app-bar.trailing-control.target -%}
10+
{%- when 'github' -%}
11+
{%- capture app-bar-trailing-control-url -%}
12+
https://GitHub.com/{{ site.social.github }}
13+
{%- endcapture -%}
14+
{%- capture app-bar-trailing-control-icon -%}
15+
<i class="fab fa-github fa-2x"></i>
16+
{%- endcapture -%}
17+
{%- endcase -%}
18+
19+
{%- endif -%}
20+
21+
22+
23+
<!--
24+
25+
👋🏼 Hey, there! Thanks for checking out the code!
26+
27+
{% if site.author %}
28+
{%- if site.author.name -%}
29+
This site was made by {{ site.author.name }}
30+
{%- else -%}
31+
This site was made by:
32+
{{ site.author }}
33+
{%- endif %}
34+
{%- endif %}
35+
{% if site.source-code.url %}
36+
If you want to check out the actual source code of this site, it's published at
37+
{{ site.source-code.url }}
38+
{%- endif %}
39+
40+
---
41+
42+
This particular piece of this site came from the Neon Jekyll Layouts repo, which is part of a framework for Jekyll
43+
sites like this! Neon is a theme I (Ben Leggiero) invented, which is heavily inspired by Google's Material Design. I
44+
tweaked it for my needs, and is written in plain CSS as much as possible.
45+
46+
If you want to browse through all the current source code or see the history, check these out:
47+
- Neon Jekyll Basics: https://github.com/BlueHuskyStudios/Neon-Jekyll-Basics
48+
- Neon Jekyll Layouts: https://github.com/BlueHuskyStudios/Neon-Jekyll-Layouts
49+
- Neon Jekyll Components: https://github.com/BlueHuskyStudios/Neon-Jekyll-Components
50+
- Neon: https://github.com/BlueHuskyStudios/stylesheets/tree/master/assets/v2/neon
51+
52+
Since I wrote Neon from scratch, I decided to place it under the BH-1-PS license:
53+
https://github.com/BlueHuskyStudios/Licenses/blob/master/Licenses/BH-1-PS.txt
54+
55+
Remember that this site might have a different license, so check for that before doing anything that might go against
56+
it. As for Neon, feel free to take this code and use it for your own stuff! Just make sure you let everyone know I
57+
wrote the original 😉
58+
59+
-->
60+
<!DOCTYPE html>
61+
<html class="brightness-dark">
62+
<head>
63+
{% include Neon-Jekyll-Basics/header-meta.html %}
64+
65+
{% include Neon-Jekyll-Basics/header-stylesheets.html %}
66+
67+
{% include Neon-Jekyll-Basics/header-scripts.html %}
68+
<!-- See also the git repository at {{ site.git-url | default: "https://github.com/BlueHuskyStudios/Neon-Jekyll-Layouts" }} -->
69+
</head>
70+
71+
<body>
72+
<header class="app-bar">
73+
{%- if page.nav-button-kind == 'sidebar' or page.sidebar or site.sidebar %}
74+
<a href="#" class="flat button show-sidebar-button" onclick="return false;"><i class="material-icons">menu</i></a>
75+
<a href="/" class="flat button back-to-root-link"><h1 class="title"><span class="title-text">{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</span></h1></a>
76+
{%- else -%}
77+
<a href="/" class="flat button back-to-root-link"><i class="material-icons back-to-root-icon">arrow_back</i></a>
78+
<h1 class="title"><span class="title-text">{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</span></h1>
79+
{%- endif %}
80+
81+
{%- if page.app-bar.trailing-control.kind == 'link' %}
82+
<a href="{{ app-bar-trailing-control-url }}" class="button back-to-root-link">{{ app-bar-trailing-control-icon }}</a>
83+
{%- elsif page.app-bar.trailing-control.kind == 'menu' %}
84+
Menus not yet supported
85+
{%- else %}
86+
<span class="layout-placeholder"></span>
87+
{%- endif %}
88+
</header>
89+
90+
91+
92+
<main id="main" role="main" class="container">
93+
{{ content }}
94+
</main>
95+
96+
97+
98+
<footer class="centered widest-desktop-small">
99+
<section class="show-print text-centered">
100+
{{ site.url }}{{ page.url }}
101+
</section>
102+
103+
<aside class="text-center">
104+
{% if page.date-modified %}
105+
Last tweaked <time datetime="{{ page.date-modified | date_to_xmlschema }}">{{ page.date-modified | date: "%F (a %A) at %R %Z" }}</time>
106+
{% elsif page.date %}
107+
Created <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%F (a %A) at %R %Z" }}</time>
108+
{% endif %}
109+
</aside>
110+
</footer>
111+
112+
113+
114+
{% include Neon-Jekyll-Components/Sidebar/sidebar.html %}
115+
</body>
116+
</html>

page.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="page">
6+
{{ content }}
7+
</article>

portal.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
layout: default
3+
---
4+
5+
<nav class="portal">
6+
{% for portalSection in page.portal.sections %}
7+
<section {%- if portalSection.id %} id="{{ portalSection.id }}" {%- endif %}>
8+
{%- if portalSection.title %}
9+
<h1>{{ portalSection.title }}</h1>
10+
{% endif %}
11+
<ol class="figure-cards flex-row flex-wrap flex-horiz-space-around">
12+
{%- for portalItem in portalSection.items %}
13+
{%- case portalItem.style | default: 'card' %}
14+
{%- when 'card' %}
15+
{%- include portal/card-big-button.html
16+
title=portalItem.title
17+
description=portalItem.description
18+
url=portalItem.url
19+
thumbnailUrl=portalItem.thumbnailUrl
20+
thumbnailUrl-light=portalItem.thumbnailUrl-light
21+
thumbnailUrl-dark=portalItem.thumbnailUrl-dark
22+
openNewTab=portalItem.openNewTab
23+
%}
24+
25+
{%- when 'mediumEmphasisButton' %}
26+
{%- include portal/medium-emphasis-button.html
27+
title=portalItem.title
28+
url=portalItem.url
29+
fontAwesomeIcon=portalItem.fontAwesomeIcon
30+
materialIcon=portalItem.materialIcon
31+
openNewTab=portalItem.openNewTab
32+
%}
33+
34+
{%- when 'titledLink' %}
35+
{%- include portal/titled-link.html
36+
title=portalItem.title
37+
url=portalItem.url
38+
display=portalItem.display
39+
note=portalItem.note
40+
fontAwesomeIcon=portalItem.fontAwesomeIcon
41+
materialIcon=portalItem.materialIcon
42+
openNewTab=portalItem.openNewTab
43+
%}
44+
45+
{%- else %}
46+
Unknown portal item style: {{ portalItem.style }}
47+
{%- endcase %}
48+
{%- endfor %}
49+
</ol>
50+
</section>
51+
{% endfor %}
52+
</nav>
53+
54+
{{ content }}

post-list.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}
6+
7+
<div class="posts link-style-underline-on-hover flex-row flex-wrap flex-horiz-stretch flex-horiz-center">
8+
{%- for post in site.posts %}
9+
{% if post.categories contains 'Separator' %}
10+
<article class="post separator">
11+
<h1>{{ post.title }}</h1>
12+
<div class="entry">
13+
{{ post.excerpt }}
14+
</div>
15+
</article>
16+
{%- else %}
17+
<article class="post flex-column flex-vert-space-between card">
18+
<section>
19+
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
20+
21+
<div class="entry">
22+
{%- if post.categories contains 'Micro' %}
23+
{{ post.content }}
24+
{%- else %}
25+
{{ post.excerpt }}
26+
{%- endif %}
27+
</div>
28+
</section>
29+
30+
<footer class="flex-row flex-wrap flex-horiz-space-around flex-vert-center">
31+
<time class="date" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%a. %F at %R" }}</time>
32+
33+
<ol class="chips plain flex-row flex-wrap flex-horiz-center flex-vert-center">
34+
{%- for category in post.categories %}
35+
{%- if site.post-list.categories-to-display contains category %}
36+
<li><span class="chip" disabled data-category-name="{{ category }}">{{ category }}</span></li>
37+
{%- endif %}
38+
{%- endfor %}
39+
</ol>
40+
41+
{%- unless post.categories contains 'Micro' %}
42+
<a href="{{ site.baseurl }}{{ post.url }}" class="small low-emphasis button">{{ page.read-more-button-text | default: "Read More" }}</a>
43+
{%- else %}
44+
<span class="placeholder"></span>
45+
{%- endunless %}
46+
</footer>
47+
</article>
48+
{% endif %}
49+
50+
{%- endfor %}
51+
</div>

post.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="post">
6+
{{ content }}
7+
8+
<footer class="card">
9+
<ol class="chips flex-row flex-wrap flex-horiz-center flex-vert-center">
10+
{% for tag in page.categories %}
11+
<li><span class="chip" data-tag-name="{{ tag }}">{{ tag }}</span></li>
12+
{% endfor %}
13+
</ol>
14+
15+
<ol class="plain dates-and-times">
16+
<li>
17+
<time class="date" datetime="{{ page.date | date_to_xmlschema }}">
18+
{% if page.date or page.date %}Originally posted{% else %}Posted{% endif %} {{ page.date | date: "%F (a %A) at %R %Z" }}
19+
</time>
20+
</li>
21+
{% if page.date-migrated %}
22+
<li>
23+
<time class="date" datetime="{{ page.date-migrated | date_to_xmlschema }}">
24+
Migrated {{ page.date-migrated | date: "%F (a %A) at %R %Z" }}
25+
</time>
26+
</li>
27+
{% endif %}
28+
{% if page.date-modified %}
29+
<li>
30+
<time class="date" datetime="{{ page.date-modified | date_to_xmlschema }}">
31+
Updated {{ page.date-modified | date: "%F (a %A) at %R %Z" }}
32+
</time>
33+
</li>
34+
{% endif %}
35+
</ol>
36+
37+
<footer class="oss-links">
38+
{% if page.original-url %}
39+
<a href="{{ page.original-url }}" title="View Original" target="_blank" class="small material-icons button">import_contacts</a>
40+
{% endif %}
41+
{% if site.source-code.url %}
42+
{% case site.source-code.service %}
43+
{% when "GitHub" %}
44+
<a href="{{ site.source-code.url }}/commits/master/{{ page.path }}" title="Post History" target="_blank" class="low-emphasis button"><i class="material-icons">history</i> <span>History</span></a>
45+
<a href="{{ site.source-code.url }}/edit/master/{{ page.path }}" title="Suggest an Edit" target="_blank" class="low-emphasis button"><i class="material-icons">edit</i> <span>Suggest an Edit</span></a>
46+
47+
{% else %}
48+
<!--
49+
This version of Neon Jekyll Layouts doesn't support {{ site.source-code.service }} repos.
50+
If you're on the latest version and nobody's reported this yet, you can request it here:
51+
https://github.com/BlueHuskyStudios/Neon-Jekyll-Layouts/issues
52+
-->
53+
{% endcase %}
54+
{% endif %}
55+
</footer>
56+
</footer>
57+
</article>

0 commit comments

Comments
 (0)