Move all files to theme
@ -12,4 +12,9 @@ I originally posed a source reorganization of the current website in this Discus
|
||||
|
||||
I reorganized the docs content and realized it did very little to make the documentation more intelligible or intuitive.
|
||||
|
||||
So, I'm running with it...
|
||||
So, I'm running with it...
|
||||
|
||||
TODO:
|
||||
Fix theme /content/content-management/archetypes.md where theme is indicated
|
||||
Fix theme /content/contribute/documentation.md where theme is indicated
|
||||
Fix theme /content/templates/files.md where theme is indicated
|
||||
|
@ -31,7 +31,7 @@ stepAnalysis = true
|
||||
# This is the top-level, global site title
|
||||
title = "Hugo"
|
||||
# Change this once you've created your theme
|
||||
theme = ""
|
||||
theme = "hugo-docs-concept"
|
||||
# Set to true to convert mysite/section/ to mysite/section.html
|
||||
uglyURLs = false
|
||||
verbose = false
|
||||
|
@ -175,7 +175,7 @@ As an example of archetypes in practice, the following is the `functions` archet
|
||||
|
||||
{{% code file="archetypes/functions.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/archetypes/functions.md" >}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/archetypes/functions.md" >}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -192,4 +192,4 @@ The preceding archetype is kept up to date with every Hugo build by using Hugo's
|
||||
[RFC 3339 format]: https://www.ietf.org/rfc/rfc3339.txt
|
||||
[taxonomies]: /content-management/taxonomies/
|
||||
[lookup]: /templates/lookup/
|
||||
[templates]: /templates/
|
||||
[templates]: /templates/
|
||||
|
@ -51,7 +51,7 @@ The archetype for the `functions` content type is as follows:
|
||||
|
||||
{{% code file="archetypes/functions.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/archetypes/functions.md">}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/archetypes/functions.md">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -103,7 +103,7 @@ The archetype for the `showcase` content type is as follows:
|
||||
|
||||
{{% code file="archetypes/showcase.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/archetypes/showcase.md">}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/archetypes/showcase.md">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -143,7 +143,7 @@ The archetype for the `tutorials` content type is as follows:
|
||||
|
||||
{{% code file="archetypes/tutorials.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/archetypes/tutorials.md">}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/archetypes/tutorials.md">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -392,4 +392,4 @@ Similar to [contributing to Hugo development](/contribute/development/), the Hug
|
||||
[hugodev]: /contribute/development/
|
||||
[shortcodeparams]: content-management/shortcodes/#shortcodes-without-markdown
|
||||
[sourceforge]: http://docutils.sourceforge.net/docs/ref/rst/directives.html#admonitions
|
||||
[templating function]: /functions/
|
||||
[templating function]: /functions/
|
||||
|
@ -33,7 +33,7 @@ This shortcode creates a link to each of the files in a directory---display as t
|
||||
|
||||
{{% code file="layouts/shortcodes/directoryindex.html" download="directoryindex.html" %}}
|
||||
```html
|
||||
{{< readfile file="/layouts/shortcodes/directoryindex.html" >}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/layouts/shortcodes/directoryindex.html" >}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -45,7 +45,7 @@ You can then call the shortcode as follows inside of your content's markup:
|
||||
|
||||
The above shortcode [is part of the code for the Hugo docs][dirindex]. Here it lists this site's CSS files:
|
||||
|
||||
{{< directoryindex path="/static/css" pathURL="/css" >}}
|
||||
{{< directoryindex path="/themes/hugo-docs-concept/static/css" pathURL="/css" >}}
|
||||
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ Here is the templating for our new `readfile` shortcode:
|
||||
|
||||
{{% code file="layouts/shortcodes/readfile.html" download="readfile.html" %}}
|
||||
```
|
||||
{{< readfile file="/layouts/shortcodes/readfile.html">}}
|
||||
{{< readfile file="/themes/hugo-docs-concept/layouts/shortcodes/readfile.html">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -108,4 +108,4 @@ And here is the result as [called directly in the Hugo docs][] and rendered for
|
||||
[sc]: /content-management/shortcodes/
|
||||
[sct]: /templates/shortcode-templates/
|
||||
[readfilesource]: https://github.com/spf13/hugo/blob/master/docs/layouts/shortcodes/readfile.html
|
||||
[testfile]: https://github.com/spf13/hugo/blob/master/docs/testfile
|
||||
[testfile]: https://github.com/spf13/hugo/blob/master/docs/testfile
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 172 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |