Billy Barrow 4 жил өмнө
parent
commit
13a07a9f9b

+ 4 - 1
.htaccess

@@ -1,2 +1,5 @@
 RewriteEngine on
-RewriteRule ^([A-Za-z]+)/([A-Za-z]+)/(.*)?$  index.php?ppub=$1&asset=$2    [L,QSA]
+RewriteRule vanilla.css - [L]
+RewriteRule feed.rss  index.php    [L,QSA]
+RewriteRule ^([A-Za-z.]+)/?$  index.php?ppub=$1    [L,QSA]
+RewriteRule ^([A-Za-z.]+)/([A-Za-z./]+)/?$  index.php?ppub=$1&asset=$2    [L,QSA]

+ 2 - 2
content_template.php

@@ -26,8 +26,8 @@ function content_end($ppub) {
     ?>
     <footer role="contentinfo">
         <hr>
-        <p><strong><?php echo(htmlentities($ppub->metadata["title"]));?></strong><br/>Post authored by <?php echo(htmlentities($ppub->metadata["author"]));?>.<br/><a href="/">Return to <?php echo(PUBLICATION_NAME);?> Index</a> | <a href="/feed.rss">Subscribe to <?php echo(SITE_NAME);?> RSS</a> | <a href="?download=true">Download <?php echo(PUBLICATION_NAME);?> PPUB</a></p>
-        <p><br/><small>Powered by php-ppub, styled with <a href="https://vanillacss.com/">Vanilla CSS</a>.</small></p>
+        <p><strong><?php echo(htmlentities($ppub->metadata["title"]));?></strong><br/>Post authored by <?php echo(htmlentities($ppub->metadata["author"]));?>.<br/><a href="/">Return to <?php echo(PUBLICATION_NAME);?> Index</a> | <a href="/feed.rss">Subscribe to <?php echo(SITE_NAME);?> RSS</a> | <a href="?download=true">Download <?php echo(PUBLICATION_NAME);?> PPUB</a>
+        <br/><small>Powered by <a href="https://github.com/Tilo15/php-ppub">php-ppub</a>, styled with <a href="https://vanillacss.com/">Vanilla CSS</a>.</small></p>
     </footer>
     </body>
 </html>

+ 2 - 1
index_template.php

@@ -13,7 +13,8 @@ function index_start() {
         <link rel="alternate" type="application/rss+xml" title="<?php echo(SITE_NAME);?> RSS Feed" href="/feed.rss" />
     </head>
     <body>
-        <h1><?php echo(SITE_NAME);?> <?php echo(PUBLICATION_NAME)?> Index</h1>
+        <h1><?php echo(SITE_NAME);?></h1>
+        <h2><?php echo(PUBLICATION_NAME)?> Index</h2>
         <dl>
     <?php
 }