diff --git a/_docs/10_installation.md b/_docs/10_installation.md index 0230e48..bd1e959 100644 --- a/_docs/10_installation.md +++ b/_docs/10_installation.md @@ -1,7 +1,7 @@ --- layout: doc title: Installation -sort_key: 10 +sort_index: 10 --- ## Manual installation diff --git a/_docs/20_repositories.md b/_docs/20_repositories.md index 17e9cf0..b637092 100644 --- a/_docs/20_repositories.md +++ b/_docs/20_repositories.md @@ -1,7 +1,7 @@ --- layout: doc title: Repositories -sort_key: 20 +sort_index: 20 --- When opening mediarepo you will be greeted by an (empty) overview of configured repositories. diff --git a/_docs/30_adding_files.md b/_docs/30_adding_files.md index 67288b4..3125222 100644 --- a/_docs/30_adding_files.md +++ b/_docs/30_adding_files.md @@ -1,7 +1,7 @@ --- layout: doc title: Adding Files -sort_key: 30 +sort_index: 30 --- When opening a repository (by clicking on the *Open* button) you're immediately prompted with diff --git a/_docs/40_tagging.md b/_docs/40_tagging.md new file mode 100644 index 0000000..1af6077 --- /dev/null +++ b/_docs/40_tagging.md @@ -0,0 +1,7 @@ +--- +layout: doc +title: Tagging +sort_index: 40 +draft: true +--- + diff --git a/_docs/50_repo_configuration.md b/_docs/50_repo_configuration.md index 1cd75fa..48ee293 100644 --- a/_docs/50_repo_configuration.md +++ b/_docs/50_repo_configuration.md @@ -1,7 +1,7 @@ --- layout: doc title: Repository Configuration -sort_key: 1 +sort_index: 50 draft: true --- diff --git a/_includes/previous-next_docs.html b/_includes/previous-next_docs.html new file mode 100644 index 0000000..5b1430e --- /dev/null +++ b/_includes/previous-next_docs.html @@ -0,0 +1,29 @@ + +{% assign posts = site.docs | sort: "sort_index" %} +{% for post in posts %} + {% if post.sort_index < page.sort_index %} + {% assign prev_post = post %} + {% endif %} + {% if post.sort_index > page.sort_index %} + {% assign next_post = post %} + {% break %} + {% endif %} +{% endfor %} +{% assign user_url = site.url | append: site.baseurl %} +{% assign full_base_url = user_url | default: site.github.url %} +{% if prev_post and prev_post.draft == false %} +
+ + Previous + + +
+{% endif %} +{% if next_post and next_post.draft == false %} +
+ + Next + + +
+{% endif %} diff --git a/_layouts/doc.html b/_layouts/doc.html index 8f0d1f1..e48dc04 100644 --- a/_layouts/doc.html +++ b/_layouts/doc.html @@ -15,5 +15,5 @@ layout: default
- {% include previous-next.html %} + {% include previous-next_docs.html %}
\ No newline at end of file