Ticket #7441: trac_7441_link_rel.patch

File trac_7441_link_rel.patch, 1.4 KB (added by ddrake, 12 years ago)

add <link rel="alternate"... stuff to published worksheets

  • sagenb/data/sage/html/base.html

    # HG changeset patch
    # User Dan Drake <drake@kaist.edu>
    # Date 1274269992 -32400
    # Node ID f1215a3c86a946a2ab847ff08ba6a90674f41d61
    # Parent  bbe979a009a3c9d3064ea52cc8f375ab36ade48c
    [mq]: trac_7441_link_rel.patch
    
    diff --git a/sagenb/data/sage/html/base.html b/sagenb/data/sage/html/base.html
    a b  
    55        <title>{{ render_title() }} -- Sage</title>
    66        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    77        {% block more_meta %}{% endblock %}
     8        {% block published_link_rel %}{% endblock %}
    89        {% block pre_main_css %}{% endblock %}
    910        <link type="text/css" rel="stylesheet" href="/css/{% block css %}main{% endblock %}.css" />
    1011        {% block more_css %}{% endblock %}
  • sagenb/data/sage/html/notebook/guest_worksheet_page.html

    diff --git a/sagenb/data/sage/html/notebook/guest_worksheet_page.html b/sagenb/data/sage/html/notebook/guest_worksheet_page.html
    a b  
    2222
    2323{% set download_name = worksheet.download_name() %}
    2424
     25{% block published_link_rel %}
     26<link rel="alternate" type="application/sage" title="{{ render_title() }}" href="download/{{ download_name }}.sws" />
     27{% endblock %}
     28
    2529{% block body %}
    2630<ul class="controls">
    2731    <li><a href="{{ url }}">{{ edit_text }}</a></li>