Concatenate all scripts

This commit is contained in:
Ryan Watters
2017-03-06 13:40:35 -06:00
parent 67c60f4806
commit fb9012d549
27 changed files with 165 additions and 284 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ See what's coming next in the [Hugo roadmap][].
[Shortcodes]: /content-management/shortcodes/
[sort content]: /templates/
[supported formats]: /content-management/formats/
[Syntax highlighting]: /developer-tools/syntax-highlighting/
[Syntax highlighting]: /tools/syntax-highlighting/
[table of contents]: /content-management/toc/
[taxonomies]: /content-management/taxonomies/
[URLs]: /content-management/urls/
+1 -1
View File
@@ -35,7 +35,7 @@ Feel free to [contribute to Hugo's development][devcontribute], [improve Hugo's
[devcontribute]: /contribute/development/
[doccontribute]: /contribute/documentation/
[hosting and deployment]: /hosting-and-deployment/
[migrate]: /developer-tools/migrate-to-hugo/
[migrate]: /tools/migrations/
[newissue]: https://github.com/spf13/hugo/issues/
[related Discuss thread]: https://discuss.gohugo.io/t/web-based-editor/155
[themes]: /themes/
+2 -2
View File
@@ -269,7 +269,7 @@ Themes section organization has only changed slightly in that the 6 content page
* Scratch. Has it's own devoted function page at [/functions/scratch/](/functions/scratch/), and is therefore in the [Functions Quick Reference](/functions/). Also mentioned in an admonition in [/variables/page-variables/](/variables/page-variables/).
* Shortcodes. Now split into two pages, one a [/content-management/shortcodes/](/content-management/shortcodes/) and the templating portion (i.e. "create your own shortcodes") at [/templates/shortcode-templates/]
* URLS. Now combined with permalinks and others as a heading/subsection of [/content-management/urls/](/content-management/urls/)
* Syntax Highlighting. The shortcode is featured and explained with usage examples at [/content-management/shortcodes/](/content-management/shortcodes/), as well as expaned upon in it's own page under [/developer-tools/syntax-highlighting/](/developer-tools/syntax-highlighting/). I did this under the assumption that *developers* are most interested in adding code blocks to their content.
* Syntax Highlighting. The shortcode is featured and explained with usage examples at [/content-management/shortcodes/](/content-management/shortcodes/), as well as expaned upon in it's own page under [/tools/syntax-highlighting/](/tools/syntax-highlighting/). I did this under the assumption that *developers* are most interested in adding code blocks to their content.
* Table of Contents. This is now it's own page under [/content-management/toc](/content-management/toc/) and referenced in [/variables/page-variables](/variables/page-variables/).
* Traversing Local Files. This is now split into [/templates/local-file-templates/](/templates/local-file-templates/) and variables delimited at [/variables/other/](/variables/other/).
@@ -425,7 +425,7 @@ Apache License - 60
* Hosting on Github - 40
* Hosting on Gitlab - 50
### "developer-tools" Ordering
### "tools" Ordering
* _index.md - 01
* migrate to hugo - 10
+2 -2
View File
@@ -104,10 +104,10 @@ Because additional format are external commands---with the exception of org mode
[bfconfig]: /getting-started/configuration/#configuring-blackfriday-rendering
[blackfriday]: https://github.com/russross/blackfriday
[config]: /getting-started/configuration/
[developer tools]: /developer-tools/
[developer tools]: /tools/
[fireball]: https://daringfireball.net/projects/markdown/
[helperssource]: https://github.com/spf13/hugo/blob/77c60a3440806067109347d04eb5368b65ea0fe8/helpers/general.go#L65
[hl]: /developer-tools/syntax-highlighting/
[hl]: /tools/syntax-highlighting/
[hlsc]: /content-management/shortcodes/#highlight
[hugocss]: /css/style.min.css
[mdcheatsheet]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
+2 -2
View File
@@ -140,7 +140,7 @@ To demonstrate the remarkably efficiency of Hugo's shortcode feature, we have em
### `highlight`
This shortcode will convert the source code provided into syntax-highlighted HTML. Read more on [highlighting](/developer-tools/syntax-highlighting/). `highlight` takes exactly one required parameter of _language_ and requires a closing shortcode.
This shortcode will convert the source code provided into syntax-highlighted HTML. Read more on [highlighting](/tools/syntax-highlighting/). `highlight` takes exactly one required parameter of _language_ and requires a closing shortcode.
#### Example `highlight` Input
@@ -177,7 +177,7 @@ The `highlight` shortcode example above would produce the following HTML when th
{{% /output %}}
{{% note "More on Syntax Highlighting" %}}
To see even more options for adding syntax-highlighted code blocks to your website, see [Syntax Highlighting](/developer-tools/syntax-highlighting/) in Developer Tools.
To see even more options for adding syntax-highlighted code blocks to your website, see [Syntax Highlighting](/tools/syntax-highlighting/) in Developer Tools.
{{% /note %}}
### `instagram`
+12 -15
View File
@@ -108,7 +108,7 @@ that specifies three taxonomies (the default two, plus `series`).
Notice the format is `singular key = "plural value"` for TOML and `singular key: "plural value"` for YAML:
### TOML Taxonomy Configuration
### Example: TOML Taxonomy Configuration
```toml
[taxonomies]
@@ -117,7 +117,7 @@ Notice the format is `singular key = "plural value"` for TOML and `singular key:
series = "series"
```
### YAML Taxonomy Configuration
### Example: YAML Taxonomy Configuration
```yaml
taxonomies:
@@ -128,29 +128,26 @@ taxonomies:
### Overriding Hugo's Default Taxonomies
If you do not specify any taxonomies in your site configuration file *and* your content already includes front matter with `tags:` or `categories`, Hugo will automatically create taxonomy pages. To override this behavior, set the key-value pairs for both of the default taxonomies to empty strings in your `config` file.
If you do not specify any taxonomies in your site configuration file *and* your content already includes front matter with `tags:` or `categories`, Hugo will automatically create taxonomy pages. To override this behavior, set the key-value pairs for both of the default taxonomies to empty strings in your `config` file:
{{% code file="remove-default-taxonomies-config.toml" %}}
```toml
[taxonomies]
tag = ""
category = ""
```
{{% /code %}}
{{% code file="remove-default-taxonomies-config.yml" %}}
```yaml
taxonomies:
tag: ""
category: ""
```
{{% /code %}}
### Preserving Taxonomy Values
By default, taxonomy names are hyphenated, lower-cased, normalized, and then fixed and title-ized within.
Therefore, if you want to have a taxonomy value with special characters such as `Gérard Depardieu` instead of `Gerard Depardieu`, you need to set the value for `preserveTaxonomyNames` in your [site configuration][config] to `true`. Hugo will then preserve special characters in taxonomy values but will still title-ize the values for titles and normalize them in URLs.
Therefore, if you want to have a taxonomy value with special characters such as `Gérard Depardieu` instead of `Gerard Depardieu`, set the value for `preserveTaxonomyNames` to `true` in your [site configuration][config]. Hugo will then preserve special characters in taxonomy values but will still title-ize the values for titles and normalize them in URLs.
Note that if you use `preserveTaxonomyNames` and intend to manually construct URLs to the archive pages, you will need to pass the taxonomy values through the [`urlize` template function][].
@@ -164,7 +161,7 @@ Assigning content to a taxonomy is done in the [front matter][]. Simply create a
If you would like the ability to quickly generate content files with preconfigured taxonomies or terms, read the docs on [Hugo archetypes](/content-management/archetypes/).
{{% /note %}}
### TOML Front Matter with Taxonomies Example
### Example: TOML Front Matter with Taxonomies
```toml
+++
@@ -177,7 +174,7 @@ project_url = "https://github.com/spf13/hugo"
+++
```
### YAML Front Matter with Taxonomies Example
### Example: YAML Front Matter with Taxonomies
```yaml
---
@@ -190,7 +187,7 @@ project_url: "https://github.com/spf13/hugo"
---
```
### JSON Front Matter with Taxonomies Example
### Example: JSON Front Matter with Taxonomies
```json
{
@@ -218,7 +215,7 @@ A content file can assign weight for each of its associate taxonomies. Taxonomic
The following TOML and YAML examples show a piece of content that has a weight of 22, which can be used for ordering purposes when rendering the pages assigned to the "a", "b" and "c" values of the `tags` taxonomy. It has also been assigned the weight of 44 when rendering the "d" category page.
### TOML Taxonomic `weight` Example
### Example: TOML Taxonomic `weight`
```toml
+++
@@ -230,16 +227,16 @@ categories_weight = 44
+++
```
### YAML Taxonomic `weight` Example
### Example: YAML Taxonomic `weight`
```yaml
+++
---
title: foo
tags: [ "a", "b", "c" ]
tags_weight: 22
categories: ["d"]
categories_weight: 44
+++
---
```
By using taxonomic weight, the same piece of content can appear in different positions in different taxonomies.
+1 -1
View File
@@ -24,4 +24,4 @@ See [Installing Hugo][installpygments] for more information on Pygments or [Synt
[highlight]: /content-management/shortcodes/#highlight
[installpygments]: /getting-started/installing/#installing-pygments-optional
[syntax]: /developer-tools/syntax-highlighting/
[syntax]: /tools/syntax-highlighting/
+1 -1
View File
@@ -247,7 +247,7 @@ The rendered output of the HTML example code block will be as follows:
{{% /output %}}
{{% note %}}
The preceding shortcode makes use of a Hugo-specific template function called `highlight`, which uses [Pygments](http://pygments.org) to add syntax highlighting to the example HTML code block. See the [developer tools page on syntax highlighting](/developer-tools/syntax-highlighting/) for more information.
The preceding shortcode makes use of a Hugo-specific template function called `highlight`, which uses [Pygments](http://pygments.org) to add syntax highlighting to the example HTML code block. See the [developer tools page on syntax highlighting](/tools/syntax-highlighting/) for more information.
{{% /note %}}
## More Shortcode Examples
+5 -4
View File
@@ -22,7 +22,7 @@ Hugo provides multiple ways to use taxonomies throughout your project:
* Order the way the terms for a taxonomy are displayed in a [taxonomy terms template](#taxonomy-terms-template)
* Order the way content associated with a taxonomy term are display in a [taxonomy list template](#taxonomy-list-template)
* List a single content's taxonomy terms within a [single page template]()
* List a single content's taxonomy terms within a [single page template][]
## Taxonomy List Templates
@@ -223,7 +223,7 @@ To list such taxonomies, use the following:
Alternatively, you may use the [delimit template function][delimit] as a shortcut if the taxonomies should just be listed with a separator. See {{< gh 2143 >}} on GitHub for discussion.
## 2. Listing content with the Same Taxonomy Term
## Listing content with the Same Taxonomy Term
First, you may be asking why you would use this. If you are using a taxonomy for something like a series of posts, this is exactly how you would do it. Its also a quick and dirty way to show some related content.
@@ -237,7 +237,7 @@ First, you may be asking why you would use this. If you are using a taxonomy for
</ul>
```
## 3. Listing all content in a given taxonomy
## Listing all content in a given taxonomy
This would be very useful in a sidebar as “featured content”. You could even have different sections of “featured content” by assigning different terms to the content.
@@ -258,7 +258,7 @@ This would be very useful in a sidebar as “featured content”. You could even
</section>
```
## 4. Rendering a Site's Taxonomies
## Rendering a Site's Taxonomies
If you wish to display the list of all keys for your site's taxonomy, you can retrieve them from the [`.Site` variable][sitevars] available on every page.
@@ -312,4 +312,5 @@ This example will list all taxonomies, each of their keys, and all the content a
[delimit]: /functions/delimit/
[renderlists]: /templates/lists/
[single page template]: /templates/single-page-templates/
[sitevars]: /variables/site-variables/
@@ -17,4 +17,4 @@ One of Hugo's greatest strengths is it's passionate---and always evolving---deve
[See the popularity of Hugo compared with other static site generators.][staticgen]
[staticgen]: https://staticgen.com
[syntax]: /developer-tools/syntax-highlighting/
[syntax]: /tools/syntax-highlighting/
@@ -1,6 +1,6 @@
---
title: Migrate to Hugo
linktitle: Migrate to Hugo
linktitle: Migrations
description: A list of community-developed tools for migrating from your existing static site generator or content management system to Hugo.
date: 2017-02-01
publishdate: 2017-02-01
@@ -22,7 +22,7 @@ The following starter kits are developed by active members of the Hugo community
* [Blaupause][]. Blaupause is a developer-friendly Hugo starter kit based on Gulp tasks. It comes ES6-ready with several helpers for SVG and fonts and basic structure for HTML, SCSS, and JavaScript.
* [hugulp][]. hugulp is a tool to optimize the assets of a Hugo website. The main idea is to recreate the famous Ruby on Rails Asset Pipeline, which minifies, concatenates and fingerprints the assets used in your website.
[addkit]: https://github.com/spf13/hugo/edit/master/docs/content/developer-tools/starter-kits.md
[addkit]: https://github.com/spf13/hugo/edit/master/docs/content/tools/starter-kits.md
[Blaupause]: https://github.com/fspoettel/blaupause
[hugulp]: https://github.com/jbrodriguez/hugulp
[Victor Hugo]: https://github.com/netlify/victor-hugo
-209
View File
@@ -1,209 +0,0 @@
[[quotes]]
name = "Execute"
twitter_handle = "@executerun"
quote = "Hah, #gohugo. I was working with #gohugo on #linux but now I realised how easy is to set-up it on #windows. Just need to add binary to #path!"
link = "https://twitter.com/executerun/status/809753145270272005"
date = 2016-12-16T00:00:00Z
[[quotes]]
name = "Janez Čadež‏"
twitter_handle = "@jamziSLO"
quote = "Building @garazaFRI website in #hugo. This static site generator is soooo damn fast!"
link = "https://twitter.com/jamziSLO/status/817720283977183234"
date = 2017-01-07T00:00:00Z
[[quotes]]
name = "Hans Beck"
twitter_handle = "@EnrichedGamesHB"
quote = "Diving deeper into @GoHugoIO . A lot of docs there, top work! But I've the impressed that #gohugo is far easier than its feels from the docs!"
link = "https://twitter.com/EnrichedGamesHB/status/836854762440130560"
date = 2017-03-01T00:00:00Z
[[quotes]]
name = "Alan Richardson"
twitter_handle = "@eviltester"
quote = "I migrated the <a href='https://twitter.com/BlackOpsTesting'> @BlackOpsTesting </a> .com website from docpad to Hugo last weekend. http://gohugo.io/ Super Fast HTML Generation <a href='https://twitter.com/spf13'> @spf13 </a>"
link = "https://twitter.com/eviltester/status/553520335115808768"
date = 2015-01-09T00:00:00Z
[[quotes]]
name = "Baron Schwartz"
twitter_handle = "@xaprb"
quote = "Hugo is impressively capable. It's a static site generator by <a href='https://twitter.com/spf13'> @spf13 </a> written in <a href='https://twitter.com/hashtag/golang?src=hash'> #golang </a> . Just upgraded to latest release; very powerful. "
link = "https://twitter.com/xaprb/status/556894866488455169"
date = 2015-01-18T00:00:00Z
[[quotes]]
name = "Dave Cottlehuber"
twitter_handle = "@dch__"
quote = "I just fell in love with #hugo, a static site/blog engine written by @spf13 in #golang + stellar docs"
link = "https://twitter.com/dch__/status/460158115498176512"
date = 2014-04-26T00:00:00Z
[[quotes]]
name = "David Caunt"
twitter_handle = "@dcaunt"
quote = "I had a play with Hugo and it was good, uses Markdown files for content"
link = "https://twitter.com/dcaunt/statuses/406466996277374976"
date = 2013-11-29T00:00:00Z
[[quotes]]
name = "David Gay"
twitter_handle = "@oddshocks"
quote = "Hugo is super-rad."
link = "https://twitter.com/oddshocks/statuses/405083217893421056"
date = 2013-11-25T00:00:00Z
[[quotes]]
name = "Diti"
twitter_handle = "@DitiPengi"
quote = "The dev version of Hugo is AWESOME! &lt;3 I promise, I will try to learn go ASAP and help contribute to the project! Just too great!"
link = "https://twitter.com/DitiPengi/status/472470974051676160"
date = 2014-05-30T00:00:00Z
[[quotes]]
name = "Douglas Stephen "
twitter_handle = "@DougStephenJr"
quote = "Even as a long-time Octopress fan, Ive gotta admit that this project Hugo looks very very cool"
link = "https://twitter.com/DougStephenJr/statuses/364512471660249088"
date = 2013-08-05T00:00:00Z
[[quotes]]
name = "Hugo Rodger-Brown"
twitter_handle = "@hugorodgerbrown"
quote = "Finally someone builds me my own static site generator"
link = "https://twitter.com/hugorodgerbrown/statuses/364417910153818112"
date = 2013-05-08T00:00:00Z
[[quotes]]
name = "Hugo Roy"
twitter_handle = "@hugoroyd"
quote = "Finally the answer to the question my parents have been asking: What does Hugo do?"
link = "https://twitter.com/hugoroyd/status/501704796727173120"
date = 2014-08-19T00:00:00Z
[[quotes]]
name = "Daniel Miessler"
twitter_handle = "@DanielMiessler"
quote = "Websites for named vulnerabilities should run on static site generator platforms like Hugo. Read-only + burst traffic = static."
link = "https://twitter.com/DanielMiessler/status/704703841673957376"
date = 2016-03-01T00:00:00Z
[[quotes]]
name = "Javier Segura"
twitter_handle = "@jsegura"
quote = "Another site generated with Hugo here! I'm getting in love with it."
link = "https://twitter.com/jsegura/status/465978434154659841"
date = 2014-05-12T00:00:00Z
[[quotes]]
name = "Jim Biancolo"
twitter_handle = "@jimbiancolo"
quote = "Im loving the static site generator renaissance we are currently enjoying. Hugo is new, looks great, written in Go"
link = "https://twitter.com/jimbiancolo/statuses/408678420348813314"
date = 2013-05-12T00:00:00Z
[[quotes]]
name = "Jip J. Dekker"
twitter_handle = "@jipjdekker"
quote = "Building a personal website in Hugo. Works like a charm. And written in @golang!"
link = "https://twitter.com/jipjdekker/status/413783548735152131"
date = 2013-12-19T00:00:00Z
[[quotes]]
name = "Jose Gonzalvo"
twitter_handle = "@jgonzalvo"
quote = "Checking out Hugo; Loving it so far. Like Jekyll but not so blog-oriented and written in go"
link = "https://twitter.com/jgonzalvo/statuses/408177855819173888"
date = 2013-12-04T00:00:00Z
[[quotes]]
name = "Josh Matz"
twitter_handle = "@joshmatz"
quote = "A static site generator without the long build times? Yes, please!"
link = "https://twitter.com/joshmatz/statuses/364437436870696960"
date = 2013-08-05T00:00:00Z
[[quotes]]
name = "Kieran Healy"
twitter_handle = "@kjhealy"
quote = "OK, so in today's speed battle of static site generators, @spf13's hugo is kicking everyone's ass, by miles."
link = "https://twitter.com/kjhealy/status/437349384809115648"
date = 2014-02-22T00:00:00Z
[[quotes]]
name = "Ludovic Chabant"
twitter_handle = "@ludovicchabant"
quote = "Good work on Hugo, Im impressed with the speed!"
link = "https://twitter.com/ludovicchabant/statuses/408806199602053120"
date = 2013-12-06T00:00:00Z
[[quotes]]
name = "Luke Holder"
twitter_handle = "@lukeholder"
quote = "this is AWESOME. a single little executable and so fast."
link = "https://twitter.com/lukeholder/status/430352287936946176"
date = 2014-02-03T00:00:00Z
[[quotes]]
name = "Markus Eliasson"
twitter_handle = "@markuseliasson"
quote = "Hugo is fast, dead simple to setup and well documented"
link = "https://twitter.com/markuseliasson/status/501594865877008384"
date = 2014-08-19T00:00:00Z
[[quotes]]
name = "mercime"
twitter_handle = "@mercime_one"
quote = "Hugo: Makes the Web Fun Again"
link = "https://twitter.com/mercime_one/status/500547145087205377"
date = 2014-08-16T00:00:00Z
[[quotes]]
name = "Michael Whatcott"
twitter_handle = "@mdwhatcott"
quote = "One more satisfied #Hugo blogger. Thanks @spf13 and friends!"
link = "https://twitter.com/mdwhatcott/status/469980686531571712"
date = 2014-05-23T00:00:00Z
[[quotes]]
name = "Nathan Toups"
twitter_handle = "@rojoroboto"
quote = "I love Hugo! My site is generated with it now http://rjrbt.io"
link = "https://twitter.com/rojoroboto/status/423439915620106242"
date = 2014-01-15T00:00:00Z
[[quotes]]
name = "Ruben Solvang"
twitter_handle = "@messo85"
quote = "#Hugo is the new @jekyllrb / @middlemanapp! Faster, easier and runs everywhere."
link = "https://twitter.com/messo85/status/472825062027182081"
date = 2014-05-31T00:00:00Z
[[quotes]]
name = "Ryan Martinsen"
twitter_handle = "@popthestack"
quote = "Also, I re-launched my blog (it looks the same as before) using Hugo, a *fast* static engine. Very happy with it. <a href='http://gohugo.io/'>gohugo.io</a>"
link = "https://twitter.com/popthestack/status/549972754125307904"
date = 2014-12-30T00:00:00Z
[[quotes]]
name = "The Lone Cuber"
twitter_handle = "@TheLoneCuber"
quote = "Jekyll is dead to me these days though... long live Hugo! Hugo is *by far* the best in its field. Thanks for making it happen."
link = "https://twitter.com/TheLoneCuber/status/495716684456398848"
date = 2014-08-02T00:00:00Z
[[quotes]]
name = "The Lone Cuber"
twitter_handle = "@TheLoneCuber"
quote = "Finally, a publishing platform that's a joy to use. #NoMoreBarriers"
link = "https://twitter.com/TheLoneCuber/status/495731334711488512"
date = 2014-08-02T00:00:00Z
[[quotes]]
name = "WorkHTML"
twitter_handle = "@workhtml"
quote = "<a href='https://twitter.com/hashtag/Hugo?src=hash'> #Hugo </a> A very good alternative for <a href='https://twitter.com/hashtag/wordpress?src=hash'> #wordpress </a> !!! A fast and modern static website engine <a href='http://gohugo.io/'> gohugo.io </a>"
link = "https://twitter.com/workhtml/status/563064361301053440"
date = 2015-02-04T00:00:00Z
+3 -3
View File
@@ -33,7 +33,7 @@ functions:
haschildren: false
sortsubpagesby: "title"
desc: "Comprehensive list of Hugo templating functions, including basic and advanced usage examples"
variablesandparams:
variables:
order: 6
title: "Variables"
url: "variables"
@@ -61,10 +61,10 @@ tutorials:
haschildren: true
sortsubpagesby: "title"
desc: "Community-aggregated articles and code examples for approaching different projects with Hugo"
developertools:
tools:
order: 10
title: "Developer Tools"
url: "developer-tools"
url: "tools"
haschildren: true
sortsubpagesby: "weight"
desc: "Syntax highlighting, site search, text editor plug-ins, and migration tools"
-3
View File
@@ -33,7 +33,4 @@
</div>
</div>
</main>
{{ end }}
{{ define "addscripts" }}
<script src="{{ "js/homepage.js" | relURL }}" async defer></script>
{{ end }}
@@ -1,7 +1,7 @@
<div class="half half-content">
<h2>Focus on your content and design.</h2>
<hr class="hr">
<p>Forget databases, security updates, and cofee breaks spent waiting for your site to rebuild.</p>
<p>Forget databases, security updates, and cofee breaks spent starting at your command line while you wait for your static site to build.</p>
<p>Golang's speed combined with markdown's elegant simplicity mean Hugo is the first static site generator fast enough to keep up with your creativity.</p>
</div>
<div class="focus-svgs">
+117
View File
@@ -0,0 +1,117 @@
$(document).ready(function() {
let isHome = document.getElementById('homepage') ? true : false;
if (!isHome) {
return;
} else {
$('#homepage-nav > ul.animated').addClass('fadeInDown');
$('.home-row.hero.animated').addClass('fadeIn');
var
scrolled = false,
atTop = true,
terminal = $('.homepage-terminal'),
gopher = $('#gopher'),
cape = $('.gopher-cape'),
badge = $('.gopher-badge'),
installrow = $('.home-row.install');
$(window).scroll(function() {
let scroll = $(this).scrollTop(),
offset = installrow.offset().top - 120;
console.log(scrolled, atTop);
if (scroll > 20 && atTop == true) {
$('#homepage-nav').addClass('shadow');
atTop = false;
} else
if (scroll < 20) {
$('#homepage-nav').removeClass('shadow');
atTop = true;
} else if (scroll > offset && scrolled == false) {
terminal.blast({ delimiter: "letter" }).velocity("transition.fadeIn", {
display: null,
customClass: "visible",
duration: 0,
stagger: 60,
delay: 0,
complete: function() {
gopher.velocity('callout.tada', {
duration: 800,
complete: function() {
badge.addClass('bounceIn');
cape.addClass('fadeIn');
}
});
}
});
scrolled = true;
}
// else if (scroll > offset3)
});
}
});
// var mySequence = [
// { e: $element1, p: { translateX: 100 }, o: { duration: 1000 } },
// /* The call below will run at the same time as the first call. */
// { e: $element2, p: { translateX: 200 }, o: { duration: 1000, sequenceQueue: false },
// /* As normal, the call below will run once the second call is complete. */
// { e: $element3, p: { translateX: 300 }, o: { duration: 1000 }
// ];
// $.Velocity.RunSequence(mySequence);
// terminalElements = document.querySelectorAll('span.terminal-line');
// function terminals_init() {
// var elements = terminalElements;
// for (var i = 0; i < elements.length; i++) {
// var e = elements[i]
// e.completeHTML = e.innerHTML
// e.innerHTML = ""
// e.i = 0
// }
// }
// function terminals_start() {
// //terminalIntervalFunction = function(){ terminals_next() }
// // setInterval(terminalIntervalFunction, 1000/60);
// terminals_next()
// }
// function terminals_next() {
// var done = true
// var elements = terminalElements;
// for (var i = 0; i < elements.length && done == true; i++) {
// var e = elements[i]
// e.i++
// if (e.innerHTML.length >= e.completeHTML.length) {
// e.innerHTML = e.completeHTML
// } else {
// var s = e.completeHTML.substring(0, e.i)
// if (s.slice(-1) == " ") {
// if (e.innerHTML.length % 6 == 0) { s = s + "" } else { s = s + "|" }
// } else {
// s = s + "|"
// }
// e.innerHTML = s
// e.parentNode.style.display = 'none'
// e.parentNode.style.display = 'block'
// done = false
// }
// }
// if (!done) {
// //window.clearInterval(terminalIntervalFunction)
// setTimeout(terminals_next, 1600 / 15)
// }
// }
// terminals_init()
// window.onload = function() { terminals_start() };
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -222,7 +222,7 @@ ul.animated {
text-align: center;
font-weight: 500;
line-height: 1.3;
margin-top: 40px;
// margin-top: 40px;
@include MQ(M) {
margin-top: 0px;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
File diff suppressed because one or more lines are too long
+8 -13
View File
@@ -1,10 +1,12 @@
//IIFE to remove all third-level li's from TOC so as not to negatively affect scrollspy
//IIFE to remove all third-level li's from TOC so as not to negatively affect scrollspy (these are currently hidden anyway)
(function() {
// let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li ul');
let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li > ul > li > ul');
if (levelFours) {
for (var i = 0; i < levelFours.length; i++) {
levelFours[i].remove();
let toc = document.getElementById('toc') ? true : false;
if (toc) {
let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li > ul > li > ul');
if (levelFours) {
for (var i = 0; i < levelFours.length; i++) {
levelFours[i].remove();
}
}
}
})();
@@ -24,13 +26,9 @@ $(document).ready(function() {
return item;
}
});
// Bind to scroll
$(window).scroll(function(evt) {
evt.preventDefault();
// checks for top of page
// var isTop = $(window).scrollTop() == 0;
// console.log("Top of page?: " + isTop);
var isBottom = $(window).scrollTop() + $(window).height() == $(document).height();
// Get container scroll position
var fromTop = $(this).scrollTop() + headerHeight + 100;
@@ -42,9 +40,6 @@ $(document).ready(function() {
// Get the id of the current element
cur = cur[cur.length - 1];
var id = cur && cur.length ? cur[0].id : "";
if (lastId !== id) {
lastId = id;
// Set/remove active class