mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 06:05:15 -04:00
Move the theme to the new org
* Swap out old theme for new (moved/renamed) theme * Fix hardcoded links to theme assets See PR rdwatters/hugo-docs-concept#143
This commit is contained in:
parent
481850c9f5
commit
d4e8ea3e63
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "themes/gohugo-theme"]
|
||||
path = themes/gohugo-theme
|
||||
url = https://github.com/budparr/gohugo-theme.git
|
||||
[submodule "themes/gohugoioTheme"]
|
||||
path = themes/gohugoioTheme
|
||||
url = https://github.com/gohugoio/gohugoioTheme.git
|
||||
|
@ -31,7 +31,7 @@ stepAnalysis = true
|
||||
title = "Hugo"
|
||||
|
||||
# Change this once you've created your theme
|
||||
theme = "gohugo-theme"
|
||||
theme = "gohugoioTheme"
|
||||
|
||||
# Set to true to convert mysite/section/ to mysite/section.html
|
||||
uglyURLs = false
|
||||
|
@ -180,7 +180,7 @@ As an example of archetypes in practice, the following is the `functions` archet
|
||||
|
||||
{{% code file="archetypes/functions.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/themes/gohugo-theme/archetypes/functions.md" >}}
|
||||
{{< readfile file="/themes/gohugoioTheme/archetypes/functions.md" >}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
|
@ -56,7 +56,7 @@ The archetype for `functions` according to the Hugo theme is as follows:
|
||||
|
||||
{{% code file="archetypes/functions.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/themes/gohugo-theme/archetypes/functions.md">}}
|
||||
{{< readfile file="/themes/gohugoioTheme/archetypes/functions.md">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -108,7 +108,7 @@ The archetype for the `tutorials` content type is as follows:
|
||||
|
||||
{{% code file="archetypes/tutorials.md" %}}
|
||||
```yaml
|
||||
{{< readfile file="/themes/gohugo-theme/archetypes/tutorials.md">}}
|
||||
{{< readfile file="/themes/gohugoioTheme/archetypes/tutorials.md">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
|
@ -38,7 +38,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="/themes/gohugo-theme/layouts/shortcodes/directoryindex.html" >}}
|
||||
{{< readfile file="/themes/gohugoioTheme/layouts/shortcodes/directoryindex.html" >}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
@ -50,7 +50,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="/themes/gohugo-theme/static/dist" pathURL="/css" >}}
|
||||
{{< directoryindex path="/themes/gohugoioTheme/static/dist" pathURL="/css" >}}
|
||||
|
||||
{{% note "Slashes are Important" %}}
|
||||
The initial slash `/` in `pathURL` is important in the `directoryindex` shortcode. Otherwise, `pathURL` becomes relative to the current web page.
|
||||
@ -82,7 +82,7 @@ Here is the templating for our new `readfile` shortcode:
|
||||
|
||||
{{% code file="layouts/shortcodes/readfile.html" download="readfile.html" %}}
|
||||
```
|
||||
{{< readfile file="/themes/gohugo-theme/layouts/shortcodes/readfile.html">}}
|
||||
{{< readfile file="/themes/gohugoioTheme/layouts/shortcodes/readfile.html">}}
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit cc0576b7982694e5b3b8c7ba0ec9ac31c504ee49
|
1
themes/gohugoioTheme
Submodule
1
themes/gohugoioTheme
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit e0fa554815f403e973151ec84d958a63f46829fa
|
Loading…
x
Reference in New Issue
Block a user