<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>piro_suke</author_name>
  <author_url>https://blog.hatena.ne.jp/piro_suke/</author_url>
  <blog_title>ほんじゃーねっと</blog_title>
  <blog_url>https://blog.honjala.net/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>ページ上で3日以内に更新された記事に「New!」と表示したりする場合に使えるフィルタを作ってみた。 datetime型と、yyyy-mm-dd形式の文字列の両方に対応。 がんばったらもっと色々なフォーマットに対応できるだろうけど、がんばれなかった。 使う時はエラー処理も入れなきゃ。 # -*- coding: utf-8 -*- from datetime import date, timedelta from django import template register = template.Library() @register.filter def is_new(d, days): i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.honjala.net%2Fentry%2Fblog%2F2010%2F03%2F15%2F201003151268643380%2F&quot; title=&quot;ある日付が指定日数より後かどうかを判定するカスタムフィルタ - ほんじゃーねっと&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-03-15 17:56:20</published>
  <title>ある日付が指定日数より後かどうかを判定するカスタムフィルタ</title>
  <type>rich</type>
  <url>https://blog.honjala.net/entry/blog/2010/03/15/201003151268643380/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
