Commit 4024ecc9 authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Improve the FAQ page

By using the new `faq` shortcode
parent e5a5927c
details {
border: 1px solid #54a3d8;
border-radius: 3px;
padding: .5rem .5rem 0;
}
summary {
margin: -.5rem -.5rem 0;
padding: .5rem;
}
summary:hover {
font-weight: bold;
}
details[open] {
padding: .5rem;
}
details[open] summary {
border-bottom: 1px solid #aaa;
margin-bottom: .5rem;
font-weight: bold;
}
---
layout: faq
menu:
main:
parent: about
weight: 5
title: Frequently Asked Questions
sassFiles:
- /scss/faq.scss
faq:
- question: "When using Ubuntu, I cannot read CHM and EPub documents, even if I have okular-extra-backends and libchm1 installed. Why?"
answer: "Ubuntu (thus Kubuntu as well) packages of Okular are compiled without support for these two formats. The reason is explained in [this](https://bugs.launchpad.net/kdegraphics/+bug/277007) Launchpad report."
......@@ -16,3 +13,4 @@ faq:
answer: "Install the poppler-data package"
---
{{< faq name="faq" >}}
......@@ -2,4 +2,4 @@ module okular-kde-org
go 1.13
require invent.kde.org/websites/aether-sass v0.0.0-20221211135924-83234ddbcc87 // indirect
require invent.kde.org/websites/aether-sass v0.0.0-20230102145406-92923d265c6c // indirect
{{/*
SPDX-FileCopyrightText: Pablo Marcos <kde@pablomarcos.me>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{ define "main" }}
<main class="container" role="main">
<h1> {{ .Params.title }} </h1>
{{ range .Params.faq }}
</br>
<details>
<summary>{{ .question | markdownify}}</summary>
<p> {{ .answer | markdownify}} </p>
</details>
{{ end }}
</main>
{{ end }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment