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