com web/news: Add the mailing list name into H1 tag, change the meta title and add a breadcrumb to group page: group.php style.css
| From: | Ben Ramsey | Date: | Fri, 21 Jul 2017 23:36:35 +0000 |
| Subject: | com web/news: Add the mailing list name into H1 tag, change the meta title and add a breadcrumb to group page: group.php style.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26183@lists.php.net to get a copy of this message | ||
Commit: 95195cb9cc0cb63b23115f229d77bbdf8dc880d5
Author: Arnaud Lemercier <arnaud@wixiweb.fr> Sat, 22 Jul 2017 01:36:35 +0200
Parents: a45a5660d7e5b2d36844d2e9762b9edca65d8674
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=95195cb9cc0cb63b23115f229d77bbdf8dc880d5
Log:
Add the mailing list name into H1 tag, change the meta title and add a breadcrumb to group page
Changed paths:
M group.php
M style.css
Diff:
diff --git a/group.php b/group.php
index 9e18af2..b02f9fb 100644
--- a/group.php
+++ b/group.php
@@ -56,8 +56,15 @@ echo '<?xml version="1.0" encoding="utf-8"?>'
. "\n";
break;
case 'html':
default:
-head($group);
+head($group.' mailing list');
+echo '<nav class="secondary-nav">';
+echo ' <ul class="breadcrumbs">';
+echo ' <li class="breadcrumbs-item"><a
class="breadcrumbs-item-link" href="/">PHP Mailing
Lists</a></li>';
+echo ' <li class="breadcrumbs-item"><a
class="breadcrumbs-item-link" href="/'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'">'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'</a></li>';
+echo ' </ul>';
+echo '</nav>';
echo '<section class="content">';
+echo '<h1>'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'</h1>';
navbar($group, $overview['group']['low'],
$overview['group']['high'], $overview['group']['start']);
echo ' <table class="standard" width="100%">' .
"\n";
echo ' <tr>' . "\n";
diff --git a/style.css b/style.css
index 7591554..47379f2 100644
--- a/style.css
+++ b/style.css
@@ -206,12 +206,20 @@ a.header-menu-item-link:hover{
margin: 0;
padding: 0;
}
+.breadcrumbs-item{
+ display: inline-block;
+}
+.breadcrumbs-item + .breadcrumbs-item::before {
+ padding: 0 .5rem 0;
+ content: "\203A";
+}
a.breadcrumbs-item-link{
color: #ccc;
text-decoration: none;
line-height: 24px;
}
+
.content{
background: #F2F2F2;
max-width: 1440px;