Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added faq page. #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added faq page. #502

wants to merge 1 commit into from

Conversation

AllanCao12
Copy link
Contributor

Added faq page. Still need to work on styling a little bit and add a real picture, as well as a link to the faq page. Will discuss in the meeting. Issue #495

…real picture, as well as a link to the faq page. Will discuss in the meeting
Copy link
Contributor

github-actions bot commented Jun 16, 2024

🎊 PR Preview a84eaee has been successfully built and deployed to https://CarletonComputerScienceSociety-website-build_preview-pr-502.surge.sh

🕐 Build time: 0.009s

🤖 By surge-preview

@@ -0,0 +1,9 @@
---
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be named _index.md

Comment on lines +31 to +34
<div class="faq__question">
<div>{{- partial "curated-questions.html" (dict "Title" .Title "summary" .Params.summary) -}}</div>
<div>{{- partial "read-more.html" (dict "label" "Read More " "link" .RelPermalink) -}}</div>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We seem to be loosing some of the style on this code because the old code is wrapped within the.faq-topic block.

Could we instead create a common partial with it's styling setup in any page can access it?

image

Comment on lines -22 to 25
<div class="faq-topic__questions">
<div class="faq__questions">
{{ range .Params.questions }}
{{ $page := printf "resources/faq/questions/%s" . }}
{{ with $.Site.GetPage $page }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could create a common partial called like "faq question group" to reuse across the 2 pages

@MathyouMB
Copy link
Member

MathyouMB commented Jun 17, 2024

if you run npm i then npm run format your CI error wll be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants