Rename pages to articles, just like speedie-page

This commit is contained in:
speedie 2023-06-28 23:08:33 +02:00
parent 151a92704f
commit 94670f013a
50 changed files with 24 additions and 29 deletions

View file

@ -10,7 +10,7 @@ any page or add new pages, but due to abuse that has since been disabled
and removed.
Pages/articles should be written in Markdown, and should be located in
the `pages/` directory. The sidebar itself can also be found in `pages/`.
the `articles/` directory. The sidebar itself can also be found in `articles/`.
Before submitting your changes, please test locally. If you have `php`
installed, you can simply do this by running `test.sh` and navigating

View file

@ -1,4 +1,4 @@
![preview image](/pages/images/banner.png)
![preview image](/articles/images/banner.png)
# Welcome to the spmenu wiki

View file

@ -1,6 +1,6 @@
# User themes
![image](/pages/images/spmenu-themes.gif)
![image](/articles/images/spmenu-themes.gif)
**For Pywal notes, see [[Using Pywal with spmenu]].**
@ -33,28 +33,28 @@ Tip: Use `Ctrl+f` to search through the page.
- This config is the default configuration for spmenu used in version 2.0.1
and earlier.
![image](/pages/images/arc-dark.png)
![image](/articles/images/arc-dark.png)
- [Arc Dark](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Arc-Dark.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Arc Dark theme](https://github.com/arc-design/arc-theme)
into spmenu.
![image](/pages/images/catppucino.png)
![image](/articles/images/catppucino.png)
- [Catppuccin](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Catppuccin.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Catppuccin theme](https://github.com/catppuccin/catppuccin)
into spmenu.
![image](/pages/images/cyberpunk.png)
![image](/articles/images/cyberpunk.png)
- [Cyberpunk Neon](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Cyberpunk-Neon.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Cyberpunk Neon colorscheme](https://github.com/Roboron3042/Cyberpunk-Neon)
into spmenu. This was partially taken from the [st patch](https://st.suckless.org/patches/cyberpunk-neon/).
![image](/pages/images/doom.png)
![image](/articles/images/doom.png)
- [Doom One](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Doom-One.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
@ -62,28 +62,28 @@ Tip: Use `Ctrl+f` to search through the page.
colorscheme into spmenu. For those of you that like DistroTube's dmenu, this
should get you close to that look.
![image](/pages/images/dracula.png)
![image](/articles/images/dracula.png)
- [Dracula](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Dracula.conf)
- Author: [speedie](https://eedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Dracula](https://draculatheme.com/)
colorscheme into spmenu.
![image](/pages/images/gruvbox-dark.png)
![image](/articles/images/gruvbox-dark.png)
- [Gruvbox (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Dark.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Gruvbox Dark](https://github.com/morhetz/gruvbox)
colorscheme into spmenu.
![image](/pages/images/gruvbox-light.png)
![image](/articles/images/gruvbox-light.png)
- [Gruvbox (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Light.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Gruvbox Light](https://github.com/morhetz/gruvbox)
colorscheme into spmenu.
![image](/pages/images/gruvbox-material.png)
![image](/articles/images/gruvbox-material.png)
- [Gruvbox Material](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Material.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
@ -91,7 +91,7 @@ Tip: Use `Ctrl+f` to search through the page.
Material](https://github.com/sainnhe/gruvbox-material) colorscheme into
spmenu.
![image](/pages/images/everforest.png)
![image](/articles/images/everforest.png)
- [Everforest (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Everforest-Dark.conf)
- Author: [speedie](https://speedie.site)
@ -99,14 +99,14 @@ Tip: Use `Ctrl+f` to search through the page.
implements the [Everforest](https://github.com/sainnhe/everforest)
colorscheme into spmenu.
![image](/pages/images/nord.png)
![image](/articles/images/nord.png)
- [Nord](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Nord.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the [Nord](https://www.nordtheme.com/) colorscheme
into spmenu.
![image](/pages/images/solarized-dark.png)
![image](/articles/images/solarized-dark.png)
- [Solarized (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Solarized-Dark.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
@ -114,7 +114,7 @@ Tip: Use `Ctrl+f` to search through the page.
[Solarized](https://ethanschoonover.com/solarized/) colorscheme into spmenu.
Specifically the 'Dark' variant.
![image](/pages/images/solarized-light.png)
![image](/articles/images/solarized-light.png)
- [Solarized (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Solarized-Light.conf)
- Author: [speedie](https://speedie.site)
@ -122,7 +122,7 @@ Tip: Use `Ctrl+f` to search through the page.
implements the [Solarized](https://ethanschoonover.com/solarized/)
colorscheme into spmenu. Specifically the 'Light' variant.
![image](/pages/images/ocean-dark.png)
![image](/articles/images/ocean-dark.png)
- [Ocean (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Ocean-Dark.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
@ -130,14 +130,14 @@ Tip: Use `Ctrl+f` to search through the page.
who made the original theme, I got it from
[terminal.sexy](https://terminal.sexy).
![image](/pages/images/one-half-dark.png)
![image](/articles/images/one-half-dark.png)
- [One Half (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/One-Half-Dark.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the One Half colorscheme into spmenu, specifically
the dark variant.
![image](/pages/images/one-half-light.png)
![image](/articles/images/one-half-light.png)
- [One Half (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/One-Half-Light.conf)
- Author: [speedie](https://speedie.site)
@ -145,7 +145,7 @@ Tip: Use `Ctrl+f` to search through the page.
implements the One Half colorscheme into spmenu, specifically the light
variant.
![image](/pages/images/tokyo-night.png)
![image](/articles/images/tokyo-night.png)
- [Tokyo Night](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Tokyo-Night.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
@ -153,19 +153,19 @@ Tip: Use `Ctrl+f` to search through the page.
Night](https://github.com/enkia/tokyo-night-vscode-theme) colorscheme into
spmenu, ported from the VS Code theme.
![image](/pages/images/x-erosion.png)
![image](/articles/images/x-erosion.png)
- [X Erosion](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/x-erosion.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the x-erosion colorscheme from [terminal.sexy](https://terminal.sexy).
![image](/pages/images/mono.png)
![image](/articles/images/mono.png)
- [Mono](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Mono.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))
- This profile implements the Mono monochrome colorscheme from [terminal.sexy](https://terminal.sexy).
![image](/pages/images/visiblue.png)
![image](/articles/images/visiblue.png)
- [Visiblue](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Visiblue.conf)
- Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site))

View file

Before

Width:  |  Height:  |  Size: 871 KiB

After

Width:  |  Height:  |  Size: 871 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 872 KiB

After

Width:  |  Height:  |  Size: 872 KiB

View file

Before

Width:  |  Height:  |  Size: 862 KiB

After

Width:  |  Height:  |  Size: 862 KiB

View file

Before

Width:  |  Height:  |  Size: 871 KiB

After

Width:  |  Height:  |  Size: 871 KiB

View file

Before

Width:  |  Height:  |  Size: 873 KiB

After

Width:  |  Height:  |  Size: 873 KiB

View file

Before

Width:  |  Height:  |  Size: 1,000 KiB

After

Width:  |  Height:  |  Size: 1,000 KiB

View file

Before

Width:  |  Height:  |  Size: 869 KiB

After

Width:  |  Height:  |  Size: 869 KiB

View file

Before

Width:  |  Height:  |  Size: 868 KiB

After

Width:  |  Height:  |  Size: 868 KiB

View file

Before

Width:  |  Height:  |  Size: 870 KiB

After

Width:  |  Height:  |  Size: 870 KiB

View file

Before

Width:  |  Height:  |  Size: 1,005 KiB

After

Width:  |  Height:  |  Size: 1,005 KiB

View file

Before

Width:  |  Height:  |  Size: 872 KiB

After

Width:  |  Height:  |  Size: 872 KiB

View file

Before

Width:  |  Height:  |  Size: 1,001 KiB

After

Width:  |  Height:  |  Size: 1,001 KiB

View file

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View file

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 872 KiB

After

Width:  |  Height:  |  Size: 872 KiB

View file

Before

Width:  |  Height:  |  Size: 869 KiB

After

Width:  |  Height:  |  Size: 869 KiB

View file

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 289 KiB

View file

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

View file

Before

Width:  |  Height:  |  Size: 871 KiB

After

Width:  |  Height:  |  Size: 871 KiB

View file

Before

Width:  |  Height:  |  Size: 1,002 KiB

After

Width:  |  Height:  |  Size: 1,002 KiB

View file

Before

Width:  |  Height:  |  Size: 1,002 KiB

After

Width:  |  Height:  |  Size: 1,002 KiB

View file

@ -7,7 +7,7 @@
* See LICENSE file for copyright and license details.
*/
define('PAGES_PATH', dirname(__FILE__). '/pages');
define('PAGES_PATH', dirname(__FILE__). '/articles');
define('UPLOAD_FOLDER', 'images');
define('PAGES_EXT', 'md');

View file

@ -139,11 +139,6 @@ function fileNameForPage($page)
return PAGES_PATH . "/$page." . PAGES_EXT;
}
function imageLinkText($imgName)
{
return "![".__("Image Description")."](/pages/".UPLOAD_FOLDER."/$imgName)";
}
function sanitizeFilename($inFileName)
{
return str_replace(array('~', '..', '\\', ':', '|', '&'), '-', $inFileName);
@ -306,7 +301,7 @@ if ( $action === 'all' && ENABLE_ALL )
}
arsort($filelist, SORT_NUMERIC);
}
$html .= "<p>".__('Total').": ".count($pageNames)." ".__("pages")."</p>";
$html .= "<p>".__('Total').": ".count($pageNames)." ".__("articles")."</p>";
$html .= "<table><thead>";
$html .= "<tr>".
"<td>".(($sortBy!='name')?("<a href=\"".SELF."?action=all&sortBy=name\">Name</a>"):"<span class=\"sortBy\">".__('Name')."</span>")."</td>".