{% extends "base.html" %} {% block title %}校历 · 西湖生存手册 {% endblock %} {% block content %}
把下面的地址粘进手机/系统日历的「订阅日历」,内容会自动更新(需本机服务在跑)。
{% for ics in ics_urls %}
{{ ics.title }}:{{ ics.url }}
| 标题 | 日期范围 | 倒计时 |
|---|---|---|
| {{ event.title }} | {{ event.start | fmt_date }} {%- if event.end and event.end != event.start %} ~ {{ event.end | fmt_date }}{% endif %} | {% set d = event.last_day | days_until(today) %} {% if d is none %}— {% elif d < 0 %}已过({{ -d }} 天前结束) {% elif d == 0 %}今天 {% else %}{{ d }} 天后{% endif %} |