mirror of
https://github.com/arsenetar/pelican-red.git
synced 2026-01-23 15:11:38 +00:00
Update all main template files
This is a major update to template files as now most have actual content.
This commit is contained in:
@@ -13,74 +13,116 @@
|
||||
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
|
||||
|
||||
<!-- Stylesheets -->
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/css/normalize.css" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/css/app.css" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/css/icons.css" /> <!-- also an IE version-->
|
||||
<!--[if IE 8]><link rel="stylesheet" href="{{ SITEURL }}/css/icons_ie.css" /><![endif]-->
|
||||
<!--[if gt IE 8]><!--><link rel="stylesheet" href="{{ SITEURL }}/css/icons.css" /><!--<![endif]-->
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/app.css" />
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="shortcut icon" href="{{ SITEURL }}/theme/images/favicon.ico" />
|
||||
<link rel="shortcut icon" href="{{ SITEURL }}/{{ FAVICON }}" />
|
||||
|
||||
<!-- RSS/ATOM -->
|
||||
{% if FEED -%}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
|
||||
{% endif %}
|
||||
{%if FEED_RSS -%}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Modernizr -->
|
||||
<script src="{{ SITEURL }}/theme/js/vendor/custom.modernizr.js"></script>
|
||||
<script data="{{ SITEURL }}/theme/js/vendor/" src="{{ SITEURL }}/theme/js/vendor/custom.modernizr.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="fixed top-bar">
|
||||
<h1 class="title-area"><a href=""><i class="huge icon-menu"></i> {{ SITENAME }}</a></h1>
|
||||
|
||||
<!-- Site Social Area -->
|
||||
{% if True %} <!-- TODO figure out how to do a check on this -->
|
||||
{% include site_social.html %}
|
||||
{% endif %}
|
||||
</header>
|
||||
|
||||
<!-- Content Area -->
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<header class="fixed">
|
||||
<nav class="top-bar">
|
||||
<ul class="title-area">
|
||||
<!-- Title Area -->
|
||||
<li class="name">
|
||||
<h1><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
|
||||
</li>
|
||||
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
|
||||
</ul>
|
||||
<section class="top-bar-section">
|
||||
<!-- Menu -->
|
||||
<ul class="left">
|
||||
{% for item, url in MENUITEMS %}
|
||||
<li><a href="{{ url }}">{{ item|title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU != False %}
|
||||
{% if DISPLAY_PAGES_ON_MENU == 'Compact' %}
|
||||
<li class="has-dropdown"><a href="">Pages</a>
|
||||
<ul class="dropdown">
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %} class='active'{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if DISPLAY_PAGES_ON_MENU == 'Expanded' %}
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %} class='active'{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU != False %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU == 'Compact' %}
|
||||
<li class="has-dropdown"><a href="{{ SITEURL }}/categories.html">Categories</a>
|
||||
<ul class="dropdown">
|
||||
{% for cat, null in categories %}
|
||||
<li {% if cat == category %} class='active'{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat.name|title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU == 'Expanded' %}
|
||||
{% for cat, null in categories %}
|
||||
<li {% if cat == category %} class='active'{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat.name|title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endif %}
|
||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||
</ul>
|
||||
<!-- Social Links -->
|
||||
<ul class="right">
|
||||
{% if SOCIAL %}
|
||||
{% include '_site_social.html' %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</section>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Content Area -->
|
||||
<div class="row">
|
||||
<section class="large-9 columns">
|
||||
<header>
|
||||
<h1>{% block content_title %}{% endblock %}</h1>
|
||||
</header>
|
||||
{% block content %}
|
||||
<ul class="no-bullet">
|
||||
{% for article in articles_page.object_list %}
|
||||
<li><article>
|
||||
<header><h1>{{ article.title|title }}</h1></header>
|
||||
{{ article.summary }}
|
||||
<footer>{{ article.author }}</footer>
|
||||
</article></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</section>
|
||||
<aside class="large-3 columns">
|
||||
{% block aside %}{% endblock %}
|
||||
</aside>
|
||||
</div>
|
||||
<footer class="row">
|
||||
<div class="large-6 columns large-offset-6" id="footer">
|
||||
<div class="large-12 columns" id="footer">
|
||||
<span><a href="">© {{ AUTHOR }} 2013</a></span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
document.write('<script src=' +
|
||||
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
|
||||
'.js><\/script>')
|
||||
</script>
|
||||
<script src="js/foundation/foundation.js"></script>
|
||||
<!--<script src="js/foundation/foundation.alerts.js"></script>-->
|
||||
<!--<script src="js/foundation/foundation.clearing.js"></script>-->
|
||||
<!-- Not doing anything with cookies -->
|
||||
<!--<script src="js/foundation/foundation.dropdown.js"></script>-->
|
||||
<!--<script src="js/foundation/foundation.forms.js"></script>-->
|
||||
<!-- joyride only for explaination on how to use site so no reason for it here -->
|
||||
<!--<script src="js/foundation/foundation.magellan.js"></script>-->
|
||||
<!--<script src="js/foundation/foundation.orbit.js"></script>-->
|
||||
<!-- placeholder only usefull for forms on really old browsers -->
|
||||
<!--<script src="js/foundation/foundation.reveal.js"></script>-->
|
||||
<!--<script src="js/foundation/foundation.section.js"></script>-->
|
||||
<!-- no reason for tooltip -->
|
||||
<!-- topbar removed not used -->
|
||||
<script>
|
||||
$(document).foundation();
|
||||
</script>
|
||||
<script src="{{ SITEURL }}/theme/js/app.js"></script>
|
||||
|
||||
<!-- Tracking Code -->
|
||||
{% if GA_CODE %}
|
||||
{% include google_analytics.html %}
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
{% include _google_analytics.html %}
|
||||
{% endif %}
|
||||
{% if GS_CODE %}
|
||||
{% include gosquared.html %}
|
||||
{% if GO_SQUARED %}
|
||||
{% include _gosquared.html %}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user