diff --git a/Changelog.md b/Changelog.md index 4966fcd..5c269c9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t - Statistics are automagically recalculated every day - this can be controlled with `stats_update_interval` and `stats_update_processingtime` - Added new "« Parent Page" to subpages so that you can easily visit their parent pages - Added new `get_page_parent($pagename)` API method. + - Added tags next to the names of pages in the search results ### Fixed - Fixed invalid opensearch description. diff --git a/build/index.php b/build/index.php index 84f3939..e7bb941 100644 --- a/build/index.php +++ b/build/index.php @@ -283,6 +283,7 @@ a.redlink:visited { color: rgb(130, 15, 15); /*#8b1a1a*/ } .search-result::before { content: attr(data-result-number); position: relative; top: 3rem; color: rgba(33, 33, 33, 0.3); font-size: 2rem; } .search-result::after { content: "Rank: " attr(data-rank); position: absolute; top: 3.8rem; right: 0.7rem; color: rgba(50, 50, 50, 0.3); } .search-result > h2 { margin-left: 3rem; } +.search-result-badges { font-size: 1rem; font-weight: normal; } .search-context { max-height: 20em; overflow: hidden; } .search-context::after { content: ""; position: absolute; bottom: 0; width: 100%; height: 3em; display: block; background: linear-gradient(to bottom, transparent, #faf8fb); pointer-events: none; } @@ -3046,32 +3047,61 @@ register_module([ add_action("history", function() { global $settings, $env, $pageindex; + $supported_formats = [ "html", "json", "text" ]; + $format = $_GET["format"] ?? "html"; - $content = "

History for $env->page

\n"; - if(!empty($pageindex->{$env->page}->history)) - { - $content .= "\t\t