Skip to content

Commit

Permalink
add rss to header
Browse files Browse the repository at this point in the history
  • Loading branch information
uta8a committed Oct 27, 2024
1 parent 8e2d451 commit d0dd15c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const feedItems = {
};

site.use(feed({
output: ["/all.rss", "/all.json"],
output: ["/feed.rss", "/feed.json"],
query: "main_menu*=diary;|post",
info: {
...feedInfo,
Expand Down
3 changes: 3 additions & 0 deletions _includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<link rel="stylesheet" href="/styles/main.css">
<link rel="canonical" href="{{ url | url(true) }}">

<link rel="alternate" href="/feed.rss" type="application/rss+xml" title="diaryです">
<link rel="alternate" href="/feed.json" type="application/json" title="diaryです">

{% if page_css %}
<link rel="stylesheet" href="/styles/pages/{{ page_css }}">
{% endif %}
Expand Down

0 comments on commit d0dd15c

Please sign in to comment.