Skip to content

Commit

Permalink
Specify site_path in feed.blade.atom header, restore to RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
damiani committed May 12, 2020
1 parent 71cb078 commit db8e298
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/_layouts/rss.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php echo "<?xml version=\"1.0\"?>\n"; ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ $page->siteName }}</title>
<link href="{{ $page->baseUrl }}" />
<link href="{{ rightTrimPath($page->baseUrl) }}/{{ $page->site_path }}" />
<link type="application/atom+xml" rel="self" href="{{ $page->getUrl() }}" />
<updated>{{ date(DATE_ATOM) }}</updated>
<id>{{ $page->getUrl() }}</id>
Expand Down
4 changes: 4 additions & 0 deletions source/blog/feed.blade.atom
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
site_path: blog
---

@extends('_layouts.rss')

@section('entries')
Expand Down

0 comments on commit db8e298

Please sign in to comment.