Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoBasicExample.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandros <onedrawingperday@users.noreply.github.com>2019-02-21 02:53:36 +0300
committerdigitalcraftsman <digitalcraftsman@users.noreply.github.com>2019-02-21 02:53:36 +0300
commit5cf42a224f559333dfbb47f0be1936156274b237 (patch)
tree82a0e61a3a42989451f43bff2c20b8c1cc972c58
parentd5a9c64a7c68094e58cad4f76de5ec653379ccd5 (diff)
Remove SymLink Add Aliases (#26)
This PR reverts commit 6ad74b6 and instead adds the following under `content/post/_index.md`: ``` aliases = ["posts","articles"] ``` Basically the symlink from #24 duplicated all posts in theme demos, so it needs to be removed. Aliases on the other hand thanks to the Netlify Redirect Output Format defined in the gohugoio theme over [here](https://github.com/gohugoio/hugoThemesSite/blob/4320e757c9f8fce5e265c725bd1e9bd061f70753/config.toml#L21-L31) and [here](https://github.com/gohugoio/gohugoioTheme/blob/master/layouts/index.redir) become 301 redirects, so they hopefully offer a solution to the issue of the various themes using different sections in their demos that I described in https://github.com/gohugoio/hugoBasicExample/pull/24
-rw-r--r--content/post/_index.md3
l---------content/posts1
2 files changed, 3 insertions, 1 deletions
diff --git a/content/post/_index.md b/content/post/_index.md
new file mode 100644
index 0000000..3de3a9e
--- /dev/null
+++ b/content/post/_index.md
@@ -0,0 +1,3 @@
++++
+aliases = ["posts","articles"]
++++ \ No newline at end of file
diff --git a/content/posts b/content/posts
deleted file mode 120000
index 04cc40b..0000000
--- a/content/posts
+++ /dev/null
@@ -1 +0,0 @@
-post \ No newline at end of file