Software-Development-Pakistan / Software-Development-Pakistan.github.io

Github Repository for softdevpk.com
MIT License
19 stars 7 forks source link

FAQ - Single Pages for each question #26

Open MuneebJS opened 4 years ago

MuneebJS commented 4 years ago

From the readability and SEO perspective, it's good to have individual pages with unique URLs for each question.

Currently, FAQ has all the questions on one page. Ideally, FAQ should have individual URLs/pages for each question.

The URLs should look something like this http://softdevpk.com/FAQs/does-it-matter-which-university-i-graduated-from

Translucent504 commented 4 years ago

I think this can be done in 2 ways.

  1. Jekyll collections
  2. Utilize the categories implicitly attached by Jekyll to posts based on their path.

I think it would be better to just utilize the file path based categories for posts then we can loop over site.posts with our given category and list them as links with liquid. The only restriction when adding new faqs would be to name the file properly (YYYY-MM-DD-title.md). It will look something like:

.
└── FAQs/
    ├── University and Degree/
    │   ├── _posts/
    │   │   ├── 2020-10-04-which-degree.md
    │   │   ├── 2020-10-03-which-university.md
    │   │   ├── 2020-10-21-does-university-matter.md
    │   │   ├── 2020-10-04-guidelines-for-undergrad.md
    │   │   └── 2020-10-07-how-to-choose-fyp.md
    │   └── index.md
    ├── Self taught programmers/
    │   ├── _posts/
    │   │   ├── ...
    │   │   └── ...
    │   └── index.md
    ├── Career and growth/
    │   ├── _posts/
    │   │   ├── ...
    │   │   └── ...
    │   └── index.md
    └── Online Student Communities!/
        ├── _posts/
        │   ├── ...
        │   └── ...
        └── index.md
azmaktr commented 4 years ago

@Translucent504 I think it would be too many posts if we have one for each question, how about one for each section to begin with?

Also would be good to have it in the subfolder under _posts.

The rest sounds good.

NomanGul commented 4 years ago

or what if we use the Jekyll accordion component to group QnA together?

something like this:

Q: Is a university degree necessary for having a career in software development? Software companies are running businesses, they don’t care if the candidate they are hiring has a degree in computer science as long as the candidate has the required skills and can help them with running the business. Relevant degrees look good on paper and tells the recruiter that the candidate has studied the relevant courses so that gives them an edge but this is as far as it goes. You can overcome that by taking relevant courses yourself or building hobby projects.
Rubix982 commented 4 years ago

Didn't know that this was a feature in Jekyll. Thanks, @NomanGul. Definitely an option worth considering.