Header

  1. View current page

    딥뿔이 자라나는 노트

Profile_image?t=1225424611&type=big
나를 바꾼 똑똑한 생활 습관, 스프링노트 - 여러분도 지금 시작해보세요!
71

내 스프링로그 테마

About

 

Layout

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    {% head %}
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title>{{ site.title }} {% if article %} {{ article.title }} {% else %} {{ site.subtitle }} {% endif %}</title>
      {{ 'main' | stylesheet }}
    {% endhead %}

    {% body %}

  2.   <div id="wrap">
        <div id="header"><h1><a href="/">{{ site.title }}</a></h1>
          <p class="description">{{ site.subtitle }}</p>

  3.     </div>
        <div id="content">
          {{ content_for_layout }}
        </div>
        <div id="sidebar">
          <h2>Search</h2>
          <form method="get" id="sform" action="/pages">
            <label for="q">Search:</label>
            <input type="text" id="q" value="" name="q" size="15" />
          </form>
          <p/>
           
          {{ site.sidebar.body}}
        </div>
      </div>
      <div id="footer">
        {{ site.title }} is proudly using the <a href="http://ifelse.co.uk/simpla">Simpla theme</a> originally designed by <a href="http://ifelse.co.uk">Phu</a>. Powered by <a href="http://springlog.com/">Springlog</a>
         | <a href="/admin">관리자 화면</a>
      </div>
  4.  
  5. <script type="text/javascript">
    //<![CDATA[
    (function() {
        var links = document.getElementsByTagName('a');
        var query = '?';
        for(var i = 0; i < links.length; i++) {
        if(links[i].href.indexOf('#disqus_thread') >= 0) {
            query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
        }
        }
        document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/myruby/get_num_replies.js' + query + '"></' + 'script>');
    })();
    //]]>
    </script>
    {% endbody %}
    </html>

 

Home

  1. {% include 'shared' %}

    {{ page_no | pagination }}

 

Single

  1. {% include 'shared' %}

Search

  1.   <div id="primary" class="single-post">
        <div class="inside">
          <div class="primary">
            <h1>Search results for <em>"{{search_string}}"</em></h1>
            <ul class="dates">
              {% for article in articles %}
                <li>
                  <span class="date">{{article.published_at | date: '%d.%m.%y' }}</span> 
                  {{ article | link_to_search_result }}
                </li>
              {% endfor %}
            </ul>
          </div>
             
           
              <div class="secondary" style="display:none">
                  <h2>Your search results</h2>
                  <div class="featured">
                      <p>We hope you found the results your looking for.</p>
              </div>
          </div>
         
          <div class="clear"></div>
      </div>
    </div>

 

Tag

  1.   <div id="primary" class="single-post">
        <div class="inside">
          <div class="primary">
            <h1>Articles tagged with {% for tag in tags %}{% unless forloop.first %} and {% endunless %}<b>"{{ tag }}"</b>{% endfor %}</h1>
            <ul class="dates">
              {% for article in articles %}
                <li>
                  <span class="date">{{article.published_at | date: '%Y/%M/%d' }}</span> 
                  {{ article | link_to_article }}
                </li>
              {% endfor %}
            </ul>
          </div>
             
           
                  <div class="secondary" style="display:none">
                  <h2>Your search results</h2>
                  <div class="featured">
                      <p>We hope you found the results your looking for.</p>
              </div>
          </div>
         
          <div class="clear"></div>
      </div>
    </div>

 

Error

  1. <h2>Sorry, couldn't find what you were looking for!</h2>

 

_Shared

  1.  
  2. {% for article in articles %}
    <div class="entry hentry entry-{{ article.id }}">
        <div class="entrytitle">
            <h2>{{ article | link_to_article }}</h2>
            <h3>{{ article.published_at | format_date: 'mdy', true }}</h3>
        </div>
        <div class="entrybody xhtmlEditorBody">
            {{ article.body }}
        </div>
     
        <div class="entrymeta">
          <div class="postinfo">
            <span class="postedby">Posted by {{ site.owner_name }}</span>
            <span class="filedto">
                {{ article | linked_tag_list }}
                {% if site.allow_trackback? %}
                    Trackback Address: {{ article || trackback_url }}
                {% endif %}
            </span>
        </div>
       
        {% unless articles.size == 1 %}
          <a href="{{ article.url }}#disqus_thread" class="commentslink">comments &#187;</a>
        {% endunless %}
        </div>
    </div>
    {% endfor %}

    {% if articles.size == 1 %}
      <div class="commentsblock">
  3. <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/myruby/embed.js">
    </script><noscript><a href="http://disqus.com/forums/myruby/?url=ref">View the discussion thread.</a></noscript>
      </div>
    {% else %}
    {% endif %}

 

_Comments

  1. {% if article.comments_count > 0 %}
        <h3 id="comments">{{ article.comments_count | pluralize: 'Response' }} to &#8220;{{ article.title }}&#8221;</h3>
        <ol class="commentlist">
        {% for comment in article.comments %}
            <li class="{% cycle 'alt', '' %}" id="comment-{{ comment.id }}">
                <cite>{{ comment.author_link }}</cite> Says:
                <br />
                <small class="commentmetadata"><a href="#comment-{{ comment.id }}" title="">{{ comment.created_at | format_date: 'mdy', true }} at {{ comment.created_at | format_date: 'time_only' }}</a></small>
                {{ comment.body }}
            </li>
      {% endfor %}
        </ol>
    {% endif %}


    {% if article.accept_comments %}

    <h3 id="respond">Leave a Reply</h3>

    {% commentform %}
      <p>{{ form.name }}<label for="author"><small>Name (required)</small></label></p>
      <p>{{ form.url }}<small>Website</small></label></p>
      <p>{{ form.email }}<small>Email</small></label></p>
      <p>{{ form.body }}</p>
      <p>{{ form.submit }}</p>
    {% endcommentform %}

    {% else %}
    <p>Sorry, comments are closed for this article.</p>
    {% endif %}

 

History

Last edited on 10/27/2009 10:29 by deepblue

Comments (0)

You must log in to leave a comment. Please sign in.