diff --git a/_layouts/faq-page.md b/_layouts/faq-page.md index 7d824bd7f90994..0bddf2f258fcda 100644 --- a/_layouts/faq-page.md +++ b/_layouts/faq-page.md @@ -2,8 +2,11 @@ layout: faqs --- - +{% if page.snippets_dir %} +{% assign snippets_dir = page.snippets_dir %} +{% else %} {% assign snippets_dir = page.dir | remove_first: '/' %} +{% endif %} {% assign faqs = site.pages | where: "layout", "faq" %} {% assign topic_faqs = faqs | where_exp: "item", "item.path contains snippets_dir "%} diff --git a/all-faq.md b/all-faq.md deleted file mode 120000 index f3967d68d82414..00000000000000 --- a/all-faq.md +++ /dev/null @@ -1 +0,0 @@ -faqs/galaxy/index.md \ No newline at end of file diff --git a/all-faq.md b/all-faq.md new file mode 100644 index 00000000000000..eea4f5bb97a519 --- /dev/null +++ b/all-faq.md @@ -0,0 +1,4 @@ +--- +layout: faq-page +snippets_dir: faqs/ +---