From d8d7363f062e9755591e1f5898d9ed661f7a18f0 Mon Sep 17 00:00:00 2001 From: hylom Date: Fri, 30 Nov 2018 21:27:16 +0900 Subject: [PATCH 1/1] template add rss and system template --- src/newslash_web/templates/rss/sradjp.xml.tt2 | 121 +++++++++++++++++++++ src/newslash_web/templates/rss/sradjs.xml.tt2 | 1 + .../templates/system/submission/footer.html.tt2 | 1 + 3 files changed, 123 insertions(+) create mode 100644 src/newslash_web/templates/rss/sradjp.xml.tt2 create mode 100644 src/newslash_web/templates/rss/sradjs.xml.tt2 create mode 100644 src/newslash_web/templates/system/submission/footer.html.tt2 diff --git a/src/newslash_web/templates/rss/sradjp.xml.tt2 b/src/newslash_web/templates/rss/sradjp.xml.tt2 new file mode 100644 index 00000000..4594f17c --- /dev/null +++ b/src/newslash_web/templates/rss/sradjp.xml.tt2 @@ -0,0 +1,121 @@ +[%- items = helpers.stories.latest(20) -%] + + + + + + スラド + https://srad.jp/ + アレゲなニュースと雑談サイト + ja-jp + Copyright (C) スラド, OSDN Corporation + 2018-11-30T11:02:13+00:00 + スラド + slashmaster@srad.jp + Technology + 1970-01-01T00:00+00:00 + 2 + hourly + + + + [%- FOREACH item IN items %] + + [%- END %] + + + + + + + + スラド + https://images.srad.jp/srad_logo01.png + https://srad.jp/ + + + [%- FOREACH item IN items %] + + [% item.title %] + https://srad.jp/story/[% item.sid %] + + <img align="right" height="64" width="64" src="https://images.srad.jp/topics/[% item.primary_topic.image %]"> + [% item.intro_text || html %] + + + <a href="https://srad.jp/story/[% item.sid %]">すべて読む</a> + [%- FOREACH topic IN item.topics %] + | <a href="https://srad.jp/stories/[% topic.keyword %]">[% topic.textname %]</a> + [%- END %] + + | <a href="https://twitter.com/share?url=https://srad.jp/story/[% item.sid %]/&amp;text=[% story.title || uri %]" title="この記事をTwitterでつぶやく"> + <img alt="この記事をTwitterでつぶやく" border="0" src="//images.srad.jp/classic/img/twitter_32.png/20150127" /></a> + + <a href="//www.facebook.com/sharer.php?u=https://srad.jp/story/[% item.sid %]" title="この記事をFacebookで共有"> + <img src="//images.srad.jp/classic/img/facebook_32.png" border="0" alt="この記事をFacebookで共有" /></a> + + <a href="https://plus.google.com/share?url=https://srad.jp/story/[% item.sid %]" title="この記事をGoogle Plusで共有"> + <img src="https://www.gstatic.com/images/icons/gplus-32.png" border="0" alt="この記事をGoogle Plusで共有" /> + + </a> <a href="//b.hatena.ne.jp/entry/https://srad.jp/story/[% item.sid %]" title="このエントリーをはてなブックマークに追加"> + <img src="https://b.st-hatena.com/images/entry-button/button-only@2x.png" alt="このエントリーをはてなブックマークに追加" width="32" height="32" style="border: none;" border="0" /></a> </p> + + 関連ストーリー: <br/> + [%- FOREACH related IN helpers.stories.related_stories(item.stoid) %] + <a href="https://srad.jp/story/[% related.sid %]">[% related.title %]</a> + <small>[% related.create_time %]</small><br/> + [%- END %] + + [% item.author %] + [% helpers.format_timestamp("mysql", item.create_time, "format", "iso8601") %] + [% item.primary_topic.keyword %] + [% item.dept %] + [% item.primary_topic.keyword %] + [% item.commentcount %] + + <img align="right" height="64" width="64" src="https://images.srad.jp/topics/[% item.primary_topic.image %]"> + [% item.intro_text || html %] + + + <a href="https://srad.jp/story/[% item.sid %]">すべて読む</a> + [%- FOREACH topic IN item.topics %] + | <a href="https://srad.jp/stories/[% topic.keyword %]">[% topic.textname %]</a> + [%- END %] + + | <a href="https://twitter.com/share?url=https://srad.jp/story/[% item.sid %]/&amp;text=[% story.title || uri %]" title="この記事をTwitterでつぶやく"> + <img alt="この記事をTwitterでつぶやく" border="0" src="//images.srad.jp/classic/img/twitter_32.png/20150127" /></a> + + <a href="//www.facebook.com/sharer.php?u=https://srad.jp/story/[% item.sid %]" title="この記事をFacebookで共有"> + <img src="//images.srad.jp/classic/img/facebook_32.png" border="0" alt="この記事をFacebookで共有" /></a> + + <a href="https://plus.google.com/share?url=https://srad.jp/story/[% item.sid %]" title="この記事をGoogle Plusで共有"> + <img src="https://www.gstatic.com/images/icons/gplus-32.png" border="0" alt="この記事をGoogle Plusで共有" /> + + </a> <a href="//b.hatena.ne.jp/entry/https://srad.jp/story/[% item.sid %]" title="このエントリーをはてなブックマークに追加"> + <img src="https://b.st-hatena.com/images/entry-button/button-only@2x.png" alt="このエントリーをはてなブックマークに追加" width="32" height="32" style="border: none;" border="0" /></a> </p> + + 関連ストーリー: <br/> + [%- FOREACH related IN helpers.stories.related_stories(item.stoid) %] + <a href="https://srad.jp/story/[% related.sid %]">[% related.title %]</a> + <small>[% related.create_time %]</small><br/> + [%- END %] + + + [%- END -%] + + スラド検索 + + query + https://srad.jp/search.pl + + diff --git a/src/newslash_web/templates/rss/sradjs.xml.tt2 b/src/newslash_web/templates/rss/sradjs.xml.tt2 new file mode 100644 index 00000000..10cd9e99 --- /dev/null +++ b/src/newslash_web/templates/rss/sradjs.xml.tt2 @@ -0,0 +1 @@ +[% items = \ No newline at end of file diff --git a/src/newslash_web/templates/system/submission/footer.html.tt2 b/src/newslash_web/templates/system/submission/footer.html.tt2 new file mode 100644 index 00000000..3364a1a0 --- /dev/null +++ b/src/newslash_web/templates/system/submission/footer.html.tt2 @@ -0,0 +1 @@ +

情報元へのリンク

-- 2.11.0