Dokumenty poprawka
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
tytul: Baza dokumentów
|
tytul: Dokumenty
|
||||||
opis: Opis bazy dokumentów albo bez
|
opis: Strona zawiera dokumnety do pobrania lub przeczytania
|
||||||
|
|
||||||
grupy:
|
grupy:
|
||||||
pobierz:
|
pobierz:
|
||||||
tytul: Pobierz wybrany plik
|
tytul: Pobierz
|
||||||
pliki:
|
pliki:
|
||||||
- nazwa: Lista kanałów EVIO TV
|
- nazwa: Lista kanałów EVIO TV
|
||||||
file: /public/files/EVIO TV.pdf
|
file: /public/files/EVIO TV.pdf
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ const doc = yaml.load(
|
|||||||
fs.readFileSync("./src/content/document/documents.yaml", "utf8"),
|
fs.readFileSync("./src/content/document/documents.yaml", "utf8"),
|
||||||
) as DocsYaml;
|
) as DocsYaml;
|
||||||
|
|
||||||
const pageTitle = doc?.tytul ?? "Dokumenty";
|
const pageTitle = doc?.tytul;
|
||||||
const pageDesc = doc?.opis ?? "";
|
const pageDesc = doc?.opis;
|
||||||
|
|
||||||
const groups = doc?.grupy ?? {};
|
const groups = doc?.grupy ?? {};
|
||||||
const left = groups["otworz"] ?? {};
|
const left = groups["otworz"] ?? {};
|
||||||
@@ -49,16 +49,6 @@ function normalizePublicHref(input?: string) {
|
|||||||
---
|
---
|
||||||
|
|
||||||
<DefaultLayout title={pageTitle} description={pageDesc}>
|
<DefaultLayout title={pageTitle} description={pageDesc}>
|
||||||
{/* INTRO */}
|
|
||||||
<section class="f-section">
|
|
||||||
<div class="f-section-grid md:grid-cols-1 items-start">
|
|
||||||
<div>
|
|
||||||
<h2 class="f-section-title">{pageTitle}</h2>
|
|
||||||
{pageDesc && <Markdown text={pageDesc} />}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* CONTENT */}
|
{/* CONTENT */}
|
||||||
<section class="f-section">
|
<section class="f-section">
|
||||||
<div class="f-section-grid md:grid-cols-2 gap-10 items-start">
|
<div class="f-section-grid md:grid-cols-2 gap-10 items-start">
|
||||||
|
|||||||
Reference in New Issue
Block a user