diff options
author | Nick White <git@njw.me.uk> | 2009-09-18 07:55:28 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2009-09-18 07:55:28 +0100 |
commit | 1569a1aea7cd69d89754cc2e451017600ecd253f (patch) | |
tree | 0d65799c18e2600bb32fbc2b30b72c064e9e708a | |
parent | c875505066c5d2fe45cdefe97e47a64413dc2afc (diff) | |
download | njw-website-source-1569a1aea7cd69d89754cc2e451017600ecd253f.tar.bz2 njw-website-source-1569a1aea7cd69d89754cc2e451017600ecd253f.zip |
Use RSS feed for excerpts only
-rw-r--r-- | includes/header.php | 1 | ||||
-rw-r--r-- | rss-full.php | 27 |
2 files changed, 1 insertions, 27 deletions
diff --git a/includes/header.php b/includes/header.php index ffddd5f..cb0ef21 100644 --- a/includes/header.php +++ b/includes/header.php @@ -35,6 +35,7 @@ function xhtml_header($title) <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>' . $newtitle . '</title> <link rel="stylesheet" type="text/css" href="/includes/default.css" /> + <link rel="alternate" type="application/rss+xml" href="/rss.php" title="Excerpt feed" /> <link rel="alternate" type="application/atom+xml" href="/atom.php" title="Full feed" /> <link rel="icon" href="/graphics/candles.ico" /> </head> diff --git a/rss-full.php b/rss-full.php deleted file mode 100644 index 52afbd8..0000000 --- a/rss-full.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php -/* - * Copyright (C) 2009 Nick White - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -include($_SERVER['DOCUMENT_ROOT'] . "/includes/rss.php"); - -rss_header("/text/index.php"); - -create_items_from_dir("text", 1); - -rss_footer(); - -?> |