-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
224 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
svg: | ||
for file in asset_sources/icons/*.svg; do scour $$file _includes/svg/`basename $$file` --strip-xml-prolog --enable-id-stripping --remove-metadata --enable-comment-stripping --enable-viewboxing --shorten-ids --shorten-ids-prefix=`basename $$file .svg`_; done | ||
for file in asset_sources/includes/*.svg; do scour $$file _includes/svg/`basename $$file` --strip-xml-prolog --enable-id-stripping --remove-metadata --enable-comment-stripping --enable-viewboxing --shorten-ids --shorten-ids-prefix=`basename $$file .svg`_; done | ||
local-test: | ||
bundle exec jekyll serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<nav id="nav"> | ||
{%- assign page_paths = site.nav_links | default: default_paths -%} | ||
{%- for path in page_paths -%} | ||
{%- assign my_page = site.pages | where: "path", path | first -%} | ||
{%- if my_page.menu_title -%} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.menu_title | escape }}</a> | ||
{%- endif -%} | ||
{%- endfor -%} | ||
<div class="menu"> | ||
{%- assign page_paths = site.nav_links | default: default_paths -%} | ||
{%- for path in page_paths -%} | ||
{%- assign my_page = site.pages | where: "path", path | first -%} | ||
{%- if my_page.menu_title -%} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.menu_title | escape }}</a> | ||
{%- endif -%} | ||
{%- endfor -%} | ||
</div> | ||
</nav> |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
window.addEventListener( 'load', resize_header ); | ||
window.addEventListener( 'resize', resize_header ); | ||
window.addEventListener( 'load', init ); | ||
|
||
function init( ) { | ||
window.addEventListener( 'resize', resize_header ); | ||
resize_header(); | ||
|
||
nav = document.getElementById( 'nav' ); | ||
nav.addEventListener( 'click', click_nav ); | ||
} | ||
|
||
function resize_header( ) { | ||
header = document.getElementById( 'header_main' ); | ||
logo = document.getElementById( 'logo' ); | ||
nav = document.getElementById( 'nav' ); | ||
|
||
header.classList.remove( 'compact' ); | ||
logo_width = 144; | ||
|
||
if( ( nav.offsetWidth + logo.offsetWidth ) > header.offsetWidth ) { | ||
if( ( nav.offsetWidth + logo_width ) > header.offsetWidth ) { | ||
header.classList.add( 'compact' ); | ||
} | ||
} | ||
|
||
function click_nav( event ) { | ||
this.classList.toggle( 'open' ); | ||
} |