Base pelican-hyde theme
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
<h1 class="post-title">{{ article.title }}</h1>
|
||||
<span class="post-date">{{ article.locale_date }}</span>
|
||||
{{ article.content }}
|
||||
{% include 'fragments/disqus.html' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ DEFAULT_LANG }}">
|
||||
<head>
|
||||
<link href="http://gmpg.org/xfn/11" rel="profile">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
|
||||
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="//fonts.googleapis.com/" rel="dns-prefetch">
|
||||
<link href="//fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Abril+Fatface|PT+Sans:400,400italic,700&subset=latin,latin-ext" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/poole.css" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/hyde.css" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/syntax.css" />
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
|
||||
<!-- RSS -->
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
|
||||
</head>
|
||||
|
||||
<body class="theme-base-0d">
|
||||
{% include 'sidebar.html' %}
|
||||
<div class="content container">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="posts">
|
||||
{% for article in articles_page.object_list %}
|
||||
<div class="post">
|
||||
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ article.title }}</a>
|
||||
</h1>
|
||||
<span class="post-date">{{ article.locale_date }}</span>
|
||||
<p>
|
||||
{{ article.summary }}
|
||||
</p>
|
||||
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="pagination">
|
||||
<span class="pagination-item older">Older</span>
|
||||
<span class="pagination-item newer">Newer</span>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<div class="sidebar">
|
||||
<div class="container sidebar-sticky">
|
||||
<div class="sidebar-about">
|
||||
|
||||
<h1>
|
||||
<a href="/">
|
||||
<img class="profile-picture" src="{{ SITEURL }}/images/{{ PROFILE_IMAGE }}">
|
||||
{{ SITENAME }}
|
||||
</a>
|
||||
</h1>
|
||||
<p class="lead"></p>
|
||||
<p class="lead">{{ BIO }} </p>
|
||||
<p></p>
|
||||
</div>
|
||||
<nav class="sidebar-nav">
|
||||
<a class="sidebar-nav-item" href="mailto:guilherme.sft@gmail.com">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
{% for name, link in SOCIAL %}
|
||||
<a class="sidebar-nav-item" href="{{ link }}">
|
||||
<i class="fa fa-{{ name }}"></i>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<a class="sidebar-nav-item" href="{{ FEED_ALL_RSS }}">
|
||||
<i class="fa fa-feed"></i>
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user