Create static pages of data
Deploy / Deploy (push) Failing after 32s

This commit is contained in:
www-data committed 2025-02-08 22:32:16 -03:00
1 parent bef34c6764
commit 4b0d1ee8a4
29 files changed
+4660 -3

No files matched your search

Regular → Executable
+3 -2
View File
@@ -1,6 +1,6 @@
---
layout: default
permalink: /
permalink: /a
---
<div class="publication">
@@ -9,6 +9,7 @@ permalink: /
<?php
// Pega todos os arquivos .txt no diretório atual
$files = glob('assets/data/*.txt');
$files[] = 'audio';
// Inicia a lista não ordenada
echo "<ul>";
@@ -18,7 +19,7 @@ foreach ($files as $file) {
$filenameWithoutExtension = basename($file, '.txt');
// Cria o link com o nome do arquivo na query string
$link = "/alice_index/file_index.php?filetype=" . urlencode($filenameWithoutExtension);
$link = "{{ site.baseurl }}/file_index.php?filetype=" . urlencode($filenameWithoutExtension);
// Cria o item da lista com o link
echo "<li><a href=\"$link\">$filenameWithoutExtension</a></li>";