We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a rss.php at the root of the project:
rss.php
<?php require_once __DIR__.'/config.php'; require_once __DIR__.'/lib/utils.php'; require_once __DIR__.'/lib/routes.php'; require_once __DIR__.'/lib/pagination.class.php'; require_once __DIR__.'/lib/views.php'; $request = (isset($_GET['r']))? $_GET['r'] : '/'; $posts = get_posts(); $sitebaseurl = "http://site.com"; $title = SITE_NAME; // routes($request, $posts); ?> <?php echo "<?xml version='1.0' encoding='UTF-8' ?>"; ?> <rss version="2.0"> <channel> <title><?php echo $title ?></title> <link><?php echo $sitebaseurl ?></link> <description>A cool decription</description> <?php $show_ad_index = 0 ?> <?php foreach ($posts as $slug => $post): ?> <?php $show_ad_index++ ?> <item> <title><?php echo $post->title ?></title> <link> <?php echo $sitebaseurl. SITE_URL . $slug ?></link> </item> <?php endforeach ?> </channel> </rss>
…almost ready to be pushed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In a
rss.php
at the root of the project:…almost ready to be pushed.
The text was updated successfully, but these errors were encountered: