From 0b1c31fe2a752fb36075a7d60d048fbbbefd250d Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Thu, 2 Mar 2017 11:59:06 -0600 Subject: [PATCH] Add section lookup order change for v0.20 --- content/about-hugo/_index.md | 2 +- content/about-hugo/benefits.md | 12 ++++++------ content/about-hugo/features.md | 12 +++++------- content/about-hugo/license.md | 2 +- content/templates/section-templates.md | 2 ++ 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/content/about-hugo/_index.md b/content/about-hugo/_index.md index 8bfa351d1..68f573582 100644 --- a/content/about-hugo/_index.md +++ b/content/about-hugo/_index.md @@ -1,7 +1,7 @@ --- title: About Hugo linktitle: Overview -description: Hugo's features, roadmap, and license, as well as the motivation behind creating Hugo. +description: Hugo's features, roadmap, license, and motivation. date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/about-hugo/benefits.md b/content/about-hugo/benefits.md index bad44d608..4c8b4eedd 100644 --- a/content/about-hugo/benefits.md +++ b/content/about-hugo/benefits.md @@ -12,23 +12,23 @@ aliases: [] toc: false --- -Website generators render content into HTML files. Most are "dynamic site generators." That means the HTTP server (i.e., the program that communicates with your end user's browser) runs the generator to create a new HTML file every time an end user requests a page. +The purpose of website generators is to render content into HTML files. Most are "dynamic site generators." That means the HTTP server---i.e., the program that files to the browser to be viewed---runs the generator to create a new HTML file every time an end user requests a page. Creating the page dynamically requires the HTTP server to have enough memory and CPU to effectively run the generator nonstop. If not, your end user will wait in a queue for the page to be generated. -To prevent unnecessary delays in delivering pages to end users, dynamic site generators were programmed to cache their HTML files. A cached page is a copy that is temporarily stored on the computer. Sending a cached copy is faster than generating a new page at the time of request because the majority of the work is already done. +Over time, dynamic site generators were programmed to cache their HTML files to prevent unnecessary delays in delivering pages to end users. A cached page is a static version of a web page that is temporarily stored on a server for. Sending a cached copy of a web page is faster than generating a new page at the time of request because the majority of the work is already done. -Hugo and other static site generators take caching a step further. All HTML files are rendered on your computer. You can review the files before you copy them to the computer hosting the HTTP server. Since the HTML files aren't generated dynamically, we say that Hugo is a "static site generator." +Hugo is in a family of generators that take caching a step further. All HTML files are rendered on your computer. You can review the files locally before copying them to the computer hosting the HTTP server. Since the HTML files aren't generated dynamically, we say that Hugo is a *static site generator*. -Not running a website generator on your HTTP server has many benefits. The most noticeable is performance---HTTP servers are very good at sending files. So good that you can effectively serve the same number of pages with a fraction of the memory and CPU needed for a dynamic site. +Not running a website generator on your HTTP server has many benefits. The most noticeable is performance. HTTP servers are *very* good at sending files---so good, in fact, that you can effectively serve the same number of pages with a fraction of the memory and CPU needed for a dynamic site. -## More Information on the Benefits of Static Site Generators +## More on Static Site Generators * ["An Introduction to Static Site Generators", David Walsh][] +* ["Hugo vs. Wordpress page load speed comparison: Hugo leaves WordPress in its dust", GettingThingsTech][hugovwordpress] * ["Static Site Generators", O-Reilly][] * [StaticGen: Top Open-Source Static Site Generators (GitHub Stars)][] * ["Top 10 Static Website Generators", Netlify blog][] -* ["Hugo vs. Wordpress page load speed comparison: Hugo leaves WordPress in its dust", GettingThingsTech][hugovwordpress] * ["The Resurgence of Static", dotCMS][dotcms] diff --git a/content/about-hugo/features.md b/content/about-hugo/features.md index 34f3bb0b9..542ec1b67 100644 --- a/content/about-hugo/features.md +++ b/content/about-hugo/features.md @@ -15,10 +15,10 @@ notesforauthors: ## General * [Extremely fast][] build times (< .7 ms per page) -* Completely cross platform, with easy installation on [Mac OSX][], [Linux][], [Windows][], and more +* Completely cross platform, with [easy installation][install] on Mac OSX, Linux, Windows, and more * Renders changes on the fly with [LiveReload][] as you develop * [Powerful theming][] -* [Host your site anywhere][] +* [Host your site anywhere][hostanywhere] ## Organization @@ -66,11 +66,10 @@ See what's coming next in the [Hugo roadmap][]. [Golang]: http://golang.org/pkg/html/template/ [Google Analytics]: https://google-analytics.com/ [homepage]: /templates/homepage/ -[Host your site anywhere]: /hosting-and-deployment/ +[hostanywhere]: /hosting-and-deployment/ [Hugo roadmap]: /about-hugo/roadmap -[Linux]: /getting-started/install-on-mac/ +[install]: /getting-started/installing/ [LiveReload]: /getting-started/using-hugo/ -[Mac OSX]: /getting-started/install-of-pc/ [organization for your projects]: /getting-started/directory-structure/ [pagevars]: /variables/page-variables/ [Permalink]: /content-management/urls/#permalinks @@ -84,5 +83,4 @@ See what's coming next in the [Hugo roadmap][]. [Syntax highlighting]: /developer-tools/syntax-highlighting/ [table of contents]: /content-management/toc/ [taxonomies]: /content-management/taxonomies/ -[URLs]: /content-management/urls/ -[Windows]: /getting-started/install-on-linux/ \ No newline at end of file +[URLs]: /content-management/urls/ \ No newline at end of file diff --git a/content/about-hugo/license.md b/content/about-hugo/license.md index 90910e75c..70094f5b6 100644 --- a/content/about-hugo/license.md +++ b/content/about-hugo/license.md @@ -1,7 +1,7 @@ --- title: Apache License linktitle: License -description: Hugo v0.15 and later are released under the Apache 2.0 license. Earlier versions of Hugo were released under the Simple Public License. +description: Hugo v0.15 and later are released under the Apache 2.0 license. date: 2016-02-01 publishdate: 2016-02-01 lastmod: 2016-02-01 diff --git a/content/templates/section-templates.md b/content/templates/section-templates.md index 13d3aebc2..cb4c5cd12 100644 --- a/content/templates/section-templates.md +++ b/content/templates/section-templates.md @@ -25,9 +25,11 @@ To effectively leverage section page templates, you should first understand the The [lookup order][lookup] for section pages is as follows: 1. `/layouts/section/
.html` +2. `/layouts/
/list.html` 2. `/layouts/_default/section.html` 3. `/layouts/_default/list.html` 4. `/themes//layouts/section/
.html` +5. `/themes//layouts/
/list.html` 5. `/themes//layouts/_default/section.html` 6. `/themes//layouts/_default/list.html`