getpelican / pelican-themes Goto Github PK
View Code? Open in Web Editor NEWThemes for Pelican
Home Page: https://getpelican.com/
Themes for Pelican
Home Page: https://getpelican.com/
analytics.html has this:
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
pageTracker._trackPageview();
} catch(err) {}
but when I signed up for Google Analytics they tell me to use this instead (I replaced ID by {{GOOGLE_ANALYTICS}}
:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{GOOGLE_ANALYTICS}}', 'auto');
ga('send', 'pageview');
</script>
Which is right?
I'm trying to include inside metadata.html in Bootstrap theme.
But this isn't working.
Any idea how to fix it? It should work since metadata.html is included in index.html and that file has bootstrap css.
Hi,
As seen on DandyDev/pelican-bootstrap3, should be desirable to add series support to the copy on this repository. Please consider this option.
Regards
in brownstone/templates/index.html line 10, "{{ article.date.locale_date }}" should be "{{ article.locale_date }}"
When you write a blog in other language than English it is a mess to change all those small texts that templates push out: *Tags, Category, Categories, Links, Social,.." etc. And also some other bigger texts, such as the one at the footer.
I suggest to change all these appearances by a construction: {{ TAGS_TEXT | default('Tags') }}
So, if the user defines the variable TAGS_TEXT
it is used instead of rutinary Tags. The same can be applied to similar texts.
Don't know if this is a problem with github.com or the project or my ignorance about how Github works but the directory 'pelican-mockingbird' is empty in the zip file.
Regards,
Hernán.
In file pelican-bootstrap3/templates/includes/pagination.html the code
href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li>
(line 27) does not follow the Pelican settings given by PAGINATION_PATTERNS, that are instead followed by the surrounding lines, e.g. line 31
href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a></li>
I don't know how to find the correct address through the Pelican API, however the current code fails when PAGINATION_PATTERNS is set, for example to
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
Hey Guys,
the bootstrap theme does not display the right icon for lastfm.
To fix this simply change line 32 of the file bootstrap/static/local.css to
.social a[href*='last.fm']:before, .social a[href*='lastfm.']:before {content: url('./images/icons/lastfm.png'); margin-right: 2px; vertical-align: -3px;}
There had to be a better way for me to preview all the pelican-themes in this repository instead of clicking on each candidates and hoping to see a live preview/screenshot. (is there??)
I created a small website that demos each theme. If the theme does not automatically generate an index.html, it is going to have a bad time... If the theme error on my compilation step for some reason, it is not included...
Source code for the webapp here.
Hope the community finds this useful.
Is there a way that you introduce a custom.css
which is being loaded as the latest stylesheet (after style.css
) and allows to apply overrides without touching the theme's stylesheets? This would make a fork more robust against updates, or would even allow to apply custom.css
as an overlay file by putting it into content/theme/css/custom.css
.
Hi,
Not really an issue so much as a request for guidance...
I would like to change the pygment/code background in the notmyidea-cms theme from black back to rgb(238,238,238) as in the default pelican theme off of which notmyidea-cms is based. Unfortunately, I'm not a webdev and I'm having a hard time figuring out exactly which lines (and in which of the CCS files) I'll need to modify.
I've tried setting:
code {
background-color:rgb(238,238,238);
}
in pygment.css but it seems like the pre block in main.css is taking precedence over that setting.
Any chance I could get some hints? Thx!
The analytics.html
template provides the google analytics template for the aboutwilson theme but it does not use the {{ GOOGLE_ANALYICS }}
variable where it should. Should be something like this:
{% if GOOGLE_ANALYTICS %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
I will submit a pull request with this issue number to fix this.
This link for the "Getting Started Guide" in Pelican 404s: http://docs.getpelican.com/en/latest/getting_started.html
As a new user, it is crucial that this is readily available.
There's a problem when using all caps words in titles with the notmyidea-cms and the notmyidea-cms-fr themes.
If I thy to use:
Title: OGM, entre fantasmes et réalité
as my article title. It leads to the following markup:
<a href="./ogm-entre-fantasmes-et-realite.html"
rel="bookmark"
title="Permalien vers «<span class="caps">OGM</span>, entre fantasmes et réalité»"
>
<span class="caps">OGM</span>, entre fantasmes et réalité
</a>
which is obviously erroneous (the « title » attribute shouldn't contain any tag). If I switch to « Ogm », there's no problem.
A lot of themes don't make it clear what license they are available under. This means technically that they are "all rights reserved" and as such can't be used by others for their websites. Could we please ask the theme authors to add a LICENSE file to their theme as a prerequisite of being included in this directory?
The built-texts
theme tries to place HTML markup inside the <title>
tag, like this:
{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
HTML markup inside this tag is not rendered, so when viewing this theme in a browser one sees "" in the tab or window title.
I've almost finished a new theme based on the brand-spankin'-new Bootstrap 3. What's the preferred way of contributing nowadays? Do I put it in a directory "physically" or do I add it as submodule?
When following the install instructions to clone pelican-themes the following command fails:
git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes
The error below indicates that bluegrasshopper is no longer public. Should it be removed?
Cloning into 'bluegrasshopper'...
remote: Counting objects: 235, done.
remote: Compressing objects: 100% (189/189), done.
remote: Total 235 (delta 106), reused 168 (delta 39)
Receiving objects: 100% (235/235), 2.39 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (106/106), done.
Checking connectivity... done
Submodule path 'bluegrasshopper': checked out 'a4bbcadcd14279a9d4b3b3f919442767b7c42e3d'
Cloning into 'blueidea'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:blueicefield/pelican-blueidea.git' into submodule path 'blueidea' failed
if you have rST like this:
* item 1
* item 2
* item 2.1
* item 2.2
the output will come out like:
item 1
item 2
item 2.1
item 2.2
I've add support for translations in notmyidea-cms theme :
https://gist.github.com/905295
Code are based on notmyidea default theme.
Heya,
I'm attempting to use the svbtle theme from pelican, but after installing it and using it per pelican-themes, I get an unstyled page. A quick search through the source code of index.html shows no css files linked :o
line 18 : background: #F5F4EF url('../images/bg.png');
The file bg.png doesnt exist.
Same issue with notmyidea-cms-fr.
I am using a theme that does the following...
PAGINATION_PATTERNS[1][1] | replace('{base_name}', SITEURL)
As a result, all of the theme's pagination hangs off the root, ie /2
, /3
, etc. This breaks pagination inside of categories/tags/etc.
I'm pretty sure it should be using Page.name
. That is what is used in paginator.py
when the context
dict is created. context.name
is set to self.name
.
What I can't figure out is how the theme can get access to the correct value of {base_name}
. Any tips?
Thanks!
When I try to clone the repository it fails at the same spot every time over a period of days:
Cloning into bold...
github.com[0: 192.30.252.130]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Clone of 'git://github.com/demianbrecht/pelican-bold.git' into submodule path 'bold' failed
(Not sure where else to ask for this. Feel free to close if not appropriate.)
The gum theme looks very nice, but the css files in there seem to be compiled (possible to change of course, but a bit of a pain). I wonder if it would be possible to have the source css (sass?) files? Ping @uknick.
In template/base.html, line 34, the <a>
link is never closed with </a>
, resulting in a weird menu in the sidebar.
Hey,
I'm not able to get pelican working with any of the themes here (It works fine if don't specify any theme). As suggested in 'README.rst' I did 'git clone --recursive https://github.com/getpelican/pelican-themes /pelican-themes' and added then 'THEME = "/pelican-themes/mnmlst"' to 'pelicanconf.py'. But the devserver keeps craching with ' Exception: Could not find the theme ~/pelican-themes/mnmlst'
Any ideas what's going on ? ( I'm using pelican==3.2.1)
For the configuration of this Theme, we see:
You can provide a logo for your site using SITELOGO.
For example: SITELOGO = 'images/my_site_logo.png'.
could anyone kindly tell me what is the path for 'images/my_site_logo.png'.
is this the relatiive path to the configuration file or ?
where is the " images" folder?
thank you very much
As it happened before in #6, at the moment 30 themes do not have a license file.
This would make it tricky to release a themes collection package (see e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759179 )
I'd like to suggest few alternative solutions.
The simple one would be to create a global license file at the root directory and state in the README.rst file that any theme provided without a license automatically inherits the global one. Clarification: contributors will see the default license when creating PR and agree to it. This does not apply retroactively to existing themes!
Even better, contributors could be asked to always inherit the root license and this would greatly simplify the packager's life.
Third option, having a license check script that is run as a TravisCI job every time somebody commits to the repository and fails the build if a license file is missing.
When having a web server serving pelican in https, using @import
in css item with "http" links makes "not secure mixed content" happens.
Maybe using //fonts.googleapis.com/css?
... instead of http://fonts.googleapis.com/css?
... should be enought.
Hey,
I was setting up with tuxlite_tbs when I noticed that the icon in the navbar on mobile devices is not expanding or collapsing (at least for me)
I looked through the code and the link to twitter bootstrap-collapse.js has moved. http://twitter.github.com/bootstrap/assets/js/bootstrap-collapse.js
Is easily rectified by downloading the js to static and changing the path. But just thought you guys should know.
> git clone --recursive [email protected]:getpelican/pelican-themes.git
Cloning into 'pelican-sober'...
fatal: unable to access 'https://github.com/fle/pelican-sober.git/': Could not resolve host: github.com
Clone of 'https://github.com/fle/pelican-sober.git' into submodule path 'pelican-sober' failed
Anyone experiencing the Twitter integration failing?
Started a few months ago, and would not load properly on mobile devices, and now doesnt work on my Mac.
As I've not changed anything on the server, I wonder if Twitter have changed their feed to the integration point.
When you click on the Twitter bar, it just hangs with a spinning icon and never sweeps out to show the tweets. I've not got round to debugging it myself just yet.
While using Bootstrap2 I noticed that after the icon on blogroll's link the followed by a line break and the link for the website is under the icon.
It would be helpful to create a gallery with screenshot and demo of each theme.
It could be a nice showcase too.
Trying to clone a fresh repo of pelican-themes but it gets stalled at the following (stalled as in no progress for an hour):
remote: Total 235 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (235/235), 239.36 KiB, done.
Resolving deltas: 100% (105/105), done.
Submodule path 'neat': checked out 'fc3cb804f2e433a515fefdcaff6f3db1851483bb'
Cloning into niu-x2...
After I put DIRECT_TEMPLATES = (('search',))
in my pelicanconf.py
file, I noticed after I did make html
, no index.html
file in output folder.
It works well after I comment this line or I do DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
. Is there something that I was doing wrong?
Thank you!
It would be great if one could apply a new pygments style to pelican-bootstrap3
by simply replacing pygments.css
.
At present, one has to copy the .highlight
directive for color
and background-color
of pygments.css
over to a .highlight pre
directive in style.css
in order to override the pre
directive of bootstrap.min.css
in order to arrive at the proper pygments style.
I am not a CSS guru, but if someone would give me a hint how a proper solution in CSS would look like I would be happy to contribute a patch.
When I configure pelican to use syte theme ad call "make html", I get this error message:
CRITICAL: Encountered unknown tag 'assets'.
All I get in output folder is a "theme" folder with a few files in it.
The Monospace theme will not load Disqus comments because it is lacking the necessary javascript.
The setup instructions for installing Disqus are listed at:
https://disqus.com/admin/universalcode/
The Monospace theme has a disqus_script include at:
https://github.com/getpelican/pelican-themes/blob/master/monospace/templates/disqus_script.html
This script counts the number of comments, but does not include the chunk of javascript required to render the comments box.
To display the Disqus comments box, the following chunk needs to be included in the article.html template at https://github.com/getpelican/pelican-themes/blob/master/monospace/templates/article.html
<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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
I'm not sure if this is an issue or not but i had trouble getting pygments to work on monospace. After some digging through firebug i found out the class names in the pygment.css file included with monospace are called "codehilite" instead of "highlight" as most pygment.css files include. I fixed this on my end with a simple find/replace, but this may cause confusion for future users of pelican.
The docs on the web site currently omit authors
from the DIRECT_TEMPLATES
list and omit INDEX_SAVE_AS
from the list of relevant config settings. (I had to read the source code to discover that they exist.)
I can't clone the repo. This is the last part of the message:
Checking connectivity... done.
Submodule path 'Responsive-Pelican': checked out 'a74606061d62be0f8508ca840375abe52ae24786'
Cloning into 'blue-penguin'...
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:jody-frankowski/blue-penguin.git' into submodule path 'blue-penguin' failed
I found the same kind of error reported on Issues #167 and #168. It seems that editting .gitmodules and changing urls from git to https will do, but I don't know how to do that.
Markdown text like this:
This is a `test` of inline code markup.
Is translated into HTML like this:
This is a <code>test</code> of inline code markup.
The <code>
element is meant to be rendered inline with the rest of the sentence. Most themes display this correctly, but "Just Read" renders these <code>
elements as block elements, which results in a hot mess on the page.
The bootstrap theme appears to be missing page.html
. I copied page.html
from notmyidea-cms/templates to make it work. This should probably be fixed.
I would like to contribute a theme (https://github.com/shabda/middle-path), but I can't find any guidelines on contributing.
This theme is superb: https://github.com/duilio/pelican-octopress-theme
That's a feature request to improve how templates are working: the ability to include code using "droplets", the way other apps are adding code by including all files from a subdirectory.
Example:
/header/... (files to be included at the begining of
Obviously the files would be loaded in alphabetical order.
The benefit: you can customize your site and keep each setting in a different file, making much easier to extend and reuse code from one site to another.
Think about how most site configs are kept for: apache, nginx, .... the idea is to reuse this pattern in order to improve how we customize templates. This has to be a core feature.
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.