theme/templates/base.html

Wed, 13 Mar 2024 11:03:13 +0100

author
David Douard <david.douard@sdf3.org>
date
Wed, 13 Mar 2024 11:03:13 +0100
changeset 152
96ebc76edfaf
parent 146
11e6db4102f1
permissions
-rw-r--r--

Update URLs for pcb & firmware to sourcehut

<!doctype html>
<html class="no-js" lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="{{ SITEURL}}/theme/css/foundation.min.css" media="all">
  <script type="text/javascript" src="{{ SITEURL }}/theme/js/modernizr.js"></script>
  <link href="{{ SITEURL }}/theme/css/exo2.css" rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="{{ SITEURL }}/theme/css/lamboz.css" media="all">
  <link rel="stylesheet" href="{{ SITEURL }}/theme/css/peertube.css" media="all">
  {% block head %}
  <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
  <meta charset="utf-8" />
  {% if FEED_ALL_ATOM %}
  <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
  {% endif %}
  {% if FEED_ALL_RSS %}
  <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
  {% endif %}
  {% if FEED_ATOM %}
  <link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  {% endif %}
  {% if FEED_RSS %}
  <link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  {% endif %}
  {% if CATEGORY_FEED_ATOM and category %}
  <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM|format(category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
  {% endif %}
  {% if CATEGORY_FEED_RSS and category %}
  <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_RSS|format(category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
  {% endif %}
  {% if TAG_FEED_ATOM and tag %}
  <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
  {% endif %}
  {% if TAG_FEED_RSS and tag %}
  <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
  {% endif %}
  {% if MATOMO_JS%}
  {{MATOMO_JS}}
  {% endif %}
  {% if article %}
    {% if article.stylesheets %}
      {% for stylesheet in article.stylesheets %}
  {{ stylesheet }}
      {% endfor %}
    {% endif %}

    {% if article.javascripts %}
        {% for javascript in article.javascripts %}
{{ javascript }}
        {% endfor %}
    {% endif %}
{% endif %}
  <script type="text/javascript" src="{{ SITEURL }}/js/plotly-latest.min.js"></script>
  {% endblock head %}
</head>
<body onload="WaveDrom.ProcessAll()">
    <div class="pages">
        <ul>
            <li class="home"><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></li>
            {% for p in pages %}
            <li {% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
            {% endfor %}
	    {% set cnt=5 %}
            {% for cat,l in categories %}
	    {% if cnt >= 0 %}
            <li class="category"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>({{ l | length }})</li>
	    {% set cnt=cnt-1 %}
	    {% endif %}
            {% endfor %}

        </ul>
    </div>
    {% block pageheader %}
    <div class="hp-header">
        <div class="page-header">
            <div class="content-header">
                <div id="title-block">
                <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
                <p class="blurb">{{ SITESUBTITLE }}</p>
                </div>
            </div>
        </div>
    </div>
    {% endblock %}
    <div class="content">
        <div class="data-holder">
        <div class="row">
           <div class="large-9 content-column column">
                {% block content %}
                {% endblock %}
            </div>

	   <div class="large-3 aside column">
	     {% block sidecontent %}
	     {% endblock %}
	   </div>
         </div>
    </div>
</div>
    <div class="footer">
        <div class="data-holder">
        {% block footer %}
        <div class="row">
          <div class="large-3 column">
            {% include 'credits.html' %}
          </div>
          <div class="large-3 tag-cloud column">
            <h3>Tags</h3>
            <ul>
              {% for t,tx in tags %}
              <li{% if t==tag %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ t.url }}">{{ t }}</a>({{ tx | length }})</li>
              {% endfor %}
            </ul>
          </div>
	  <div class="large-3 links column">
            <h3>Links</h3>
            <ul>
              {% for title,link in LINKS %}
              <li><a href="{{ link }}">{{ title }}</a></li>
              {% endfor %}
	    </ul>
	  </div>
          <div class="large-3 category-column column">
            <h3>Categories</h3>
            <ul>
              {% for cat,l in categories %}
              <li{% if cat==category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a> ({{ l | length }})</li>
              {% endfor %}
            </ul>
          </div>
        </div>
        {% endblock %}
        </div>
        {% include 'trademark.html' %}
    </div>
  {% if MATOMO_IMG %}
  {{MATOMO_IMG}}
  {% endif %}
    
</body>


</html>

mercurial