|
| 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> |
0 commit comments