root/lang/python/every_resources/trunk/everes_theme_default/templates/index.html @ 32302

Revision 32302, 4.6 kB (checked in by everes, 4 years ago)

html出力時にkeywordとかtitleとかが素敵に出るように調整した。

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
3{% load everes_core_filter %}
4<head>
5  <meta name="generator" content="Every Resources {{ VERSION }}" />
6  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7  <meta name="keywords" content="{% block keyword %}{% endblock %}" />
8  <link rel="stylesheet" href="{{ MEDIA_URL }}styles/basic.css" type="text/css" media="screen" />
9  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{{ current_site.domain }}{% url everes_feed "core" %}" />
10  {% block additional_link %}{% endblock %}
11  {% block additional_js %}{% endblock %}
12  {% block additional_css %}{% endblock %}
13  <style type="text/css">{% if google_search_key %}#google_search { position: absolute; top:0;right:20px;}{% endif %}
14  {% block custom_css %}{% endblock %}
15  </style>
16  <script type="text/javascript"><!--
17  {% block custom_js %}{% endblock %}
18  --></script>
19  <title>{% block title %}{{ current_site.name }}{% endblock %}</title>
20</head>
21<body>
22  <div id="header">
23    <h2><a href="/">{{ current_site.name }}</a></h2>
24    {% if google_search_key %}
25    <div id="google_search">
26        <form action="http://www.google.co.jp/cse" id="cse-search-box">
27          <div>
28            <input type="hidden" name="cx" value="{{ google_search_key }}" />
29            <input type="hidden" name="ie" value="UTF-8" />
30            <input type="text" name="q" size="10" />
31            <input type="submit" name="sa" value="&#x691c;&#x7d22;" />
32          </div>
33        </form>
34        <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=ja"></script>
35    </div>
36    {% endif %}
37    <ul>
38        <li><a href="{% url everes_about %}">about</a></li>
39        {% for ap in everes_apps %}
40        <li><a href="{% url everes_list_by_app ap %}">{{ ap }}</a></li>
41        {% endfor %}
42    </ul>
43  </div>
44  <div class="content">
45        {% block contents %}{% endblock contents %}
46  </div>
47  <div class="sideboard">
48    <a href="http://djangopony.com/" class="ponybadge" title="Magic! Ponies! Django! Whee!"><img src="http://media.djangopony.com/img/small/badge.png" width="210" height="65" alt="ponybadge"></a>
49    <h3>Powered by</h3>
50    <ul>
51      <li><a href="http://coderepos.org/share/browser/lang/python/every_resources">Every Resources</a></li>
52    </ul>
53    <h3>Feedbacks</h3>
54    <ul>
55      <li><a href="{% url everes_comment_list %}">Comments</a></li>
56      <li><a href="{% url everes_trackback_list %}">Trackbacks</a></li>
57    </ul>
58    <h3>Tags</h3>
59    <ul>
60    {% for tag in everes_tags %}
61      <li><a href="{% url everes_list_by_tag tag.name %}">{{ tag.name }}</a></li>
62    {% endfor %}
63    </ul>
64    <h3>Calendar</h3>
65    <ul>
66    {% for day in everes_days %}
67      <li><a href="{% url everes_month_list day.year,day.month %}">{{ day|date:"Y年m月" }}</a></li>
68    {% endfor %}
69    </ul>
70  </div>
71  {% if object_list %}
72  <div class="paginator">
73      <span class="pagination">{% if page_obj.has_previous %}<a href="?page={{ page_obj.previous_page_number }}">←</a>{% else %}←{% endif %}</span>
74      {% for p in paginator.page_range|splitpage:page_obj.number %}
75        {% ifequal p "..." %}
76        <span class="pagination">{{ p }}</span>
77        {% else %}
78        <span class="pagination"><a href="?page={{ p }}">{{ p }}</a></span>
79        {% endifequal %}
80      {% endfor %}
81      <span class="pagination">{% if page_obj.has_next %}<a href="?page={{ page_obj.next_page_number }}">→</a>{% else %}→{% endif %}</span>
82  </div>
83  {% endif %}
84  {% if google_analytics_key %}
85  {% if not user.is_staff %}
86  <script type="text/javascript">
87  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
88  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
89  </script>
90  <script type="text/javascript">
91  try {
92  var pageTracker = _gat._getTracker("{{ google_analytics_key }}");
93  pageTracker._trackPageview();
94  } catch(err) {}</script>
95  {% endif %}
96  {% endif %}
97  <script type="text/javascript" src="http://s.hatena.ne.jp/js/HatenaStar.js"></script>
98  <script type="text/javascript">
99  Hatena.Star.SiteConfig = {
100    entryNodes: {
101      'div.post': {
102        uri: 'h2 a',
103        title: 'h2',
104        container: 'h2.cms_title'
105      },
106      'div.detail': {
107        uri: 'h1 a',
108        title: 'h1',
109        container: 'h1.cms_title'
110      },
111    }
112  };
113  </script>
114 </body>
115</html>
Note: See TracBrowser for help on using the browser.