duilio / pelican-octopress-theme Goto Github PK
View Code? Open in Web Editor NEWOctopress default theme copied for pelican
License: MIT License
Octopress default theme copied for pelican
License: MIT License
Hi,
With version 3.7.0, the PAGES
variables was renamed to a lowercased version: pages
.
In templates/_includes/navigation.html
, there is one occurrence of this variable.
Can you make this change please? Thanks
The <pre> elements exceeded the space it should be, here is an example
Any input is appreciated!
Hi! Could we please have meta keywords like here:
https://github.com/getpelican/pelican-themes/tree/master/syte
In pelicanconf.py:
SITE_KEYWORDS = u'Used in the HTML meta tag for keywords'
In base.html:
<meta name="keywords" content="{{ SITE_KEYWORDS }}" />
Thanks in advance.
Cheers,
Victor
Not able to generate html while running pelican command
pelican --debug --autoreload -r content -o output -s pelicanconf.py -t pelican-octopress-theme
Environmental
Ubuntu 14.04.2 LTS
Python 2.7.6
Pelican 3.3.0
Jinja2 2.7.3
The error log is
CRITICAL: ("'period' is undefined",)
CRITICAL: 'period' is undefined
Traceback (most recent call last):
File "/usr/bin/pelican", line 9, in <module>
load_entry_point('pelican==3.3', 'console_scripts', 'pelican')()
File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 350, in main
pelican.run()
File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 181, in run
p.generate_output(writer)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 475, in generate_output
self.generate_pages(writer)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 370, in generate_pages
self.generate_period_archives(write)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 303, in generate_period_archives
_generate_period_archives(self.dates, key, save_as)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 285, in _generate_period_archives
dates=archive, blog=True)
File "/usr/lib/python2.7/dist-packages/pelican/writers.py", line 211, in write_file
override_output)
File "/usr/lib/python2.7/dist-packages/pelican/writers.py", line 148, in _write_file
output = template.render(localcontext)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/workspace/others/arulrajnet/blog/arulraj.net/pelican-octopress-theme/templates/period_archives.html", line 1, in top-level template code
{% extends "base.html" %}
File "/opt/workspace/others/arulrajnet/blog/arulraj.net/pelican-octopress-theme/templates/base.html", line 11, in top-level template code
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
File "/opt/workspace/others/arulrajnet/blog/arulraj.net/pelican-octopress-theme/templates/period_archives.html", line 2, in block "title"
{% block title %}Archive – {{ period[2] }} {{ period[1] }} {{ period[0] }} — {{ SITENAME }}{% endblock %}
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 378, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'period' is undefined
Hi,
When linenums
enabled, the style of code block will be mess up. Because the DOM structure of the code block of pelican is different with octopress, sass/partials/_syntax.scss
should match up peilican.
'markdown.extensions.codehilite': {
'css_class': 'highlight',
'linenums': True
}
Can you support this? Thanks!
This is a really useful feature to support.
Hi.
Thanks very much for the excellent port.
I'd like to use this theme and include an image header.
There's a handy overview of how to do this for octopress blogs here
http://blog.bigdinosaur.org/changing-octopresss-header/
Most of which seems to work because the sass component is, as I understand it, unchanged in the pelican port.
However I'm still finding it tricky to get the various options working here.
I was wondering if anyone has implemented or seen header images in a pelican+octopress-theme blog, which I could use for reference?
Ta.
I recently tried to integrate pelican-ipynb (https://github.com/danielfrg/pelican-ipynb) with this theme. Unfortunately, the styling that ipynb applies when using an ipynb file directly as a content type is not very good (everything is pushed to the right, there's a prompt displayed on markup cells etc).
I did some changes so the styling to make it tolerable (check https://github.com/spapas/pelican-octopress-theme/blob/master/static/css/extra_style.css) however that leaves much to be desired.
It would be great if somebody fixed the styling of this theme so that ipynb files would be displayed nice.
Give option to override disqus_identifier
javascript variable.
meta data
:date: 2012-07-26 14:54
:author: arul
:category: foo
:tags: foo, bar
:slug: foo-bar-foo-bar
:status: published
:disqus_identifier: foo_bar_foo_bar
In the article HTML will be
var disqus_identifier = foo_bar_foo_bar;
Refer: http://oncrashreboot.com/elegant-best-pelican-theme-features#disqus-thread-id
Commit ceb4837 moved external scripts from <head> to the <body> tag, which has broken the github projects sidebar. The sidebar uses javascript that depends on ender.js, but the sidebar script is inserted before the ender <script> tag after this change, so the projects are never loaded.
The fix is either to a) move the script tags above the sidebar include, or b) put them back in <head>. I didn't make a pull request, since I'm not sure which way you want to go, but I can if you'd like.
Edit: bah, markup problems.
Hello, I've added a footnote using [*]_ and although it works fine, I don't like how the symbol is styled: It is full size and not a superscript :(
Can we fix the css ? I found out that the footnote symbol has a class of footnote-reference something like this:
<a class="footnote-reference" href="#id2" id="id1">[*]</a>
I believe that if we added the following style it would be much better:
.footnote-reference {
font-size: 0.5em;
vertical-align: top;
}
Thanks !
Hi,
Where can I put some help about variables to set for plugins, like GITHUB ?
Hi Guys,
How to integrate DISQUS comment plugin with pelican-octopress-theme. I added DISQUS_SITENAME = "XXX" It's showing comment section. please guide me How to fix this.
Note:
I tested other themes it's DISQUS working. only issue with pelican-octopress-theme
I use RSS instead of ATOM feeds, and kept getting a duplicate empty ATOM feed in the navigation bar. In templates/_includes/navigation.html there is an "{% if FEED_RSS %}" block, but not a corresponding "{% if FEED_ATOM %}". Adding it removed the duplicate feed icon.
@@ -1,5 +1,7 @@
<ul class="subscription" data-subscription="rss">
+ {% if FEED_ATOM %}
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="subscribe-rss">RSS</a></li>
+ {% endif %}
{% if FEED_RSS %}
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" rel="subscribe-rss">RSS</a></li>
{% endif %}
Hi.
(Apologies if this is a pelican-generic Q rather than specific to this theme...)
I'm using pelican with a modified version of this theme for some rolling (i.e. regularly updated) documentation. Consequently I'd like to either remove or modify the text that lists the date at the top of each entry: in my case it would be better to say something like 'Last modified XX/XX/XX'.
Two other changes I'd like to make if poss:
Could you please advise on how I can make these changes?
Thanks very much.
Hi,
Pelican supports translations as per http://docs.getpelican.com/en/3.6.3/content.html#translations but they are not shown when an article is defined as traslation of another.
Adding a website responsiveness turn on/off switch in config file would be nice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.