getnikola / nikola-themes Goto Github PK
View Code? Open in Web Editor NEWThemes for Nikola
Home Page: https://themes.getnikola.com/
Themes for Nikola
Home Page: https://themes.getnikola.com/
in twitter_card_information
, twitter:site
is not a required field, so this should be an elif 'site' in twitter_card
instead of an else
, so we don't end up with a line defining a blank twitter:site
value.
Looks like ghostjs can now do decent screenshots, so I could do this in the VPS.
Not trivial because it's all a single page, but surely there is a way using some comment system.
Hello,
I was trying to use zen theme but i got same error every time.
Could you please help?
########################################
TaskError - taskid:build_less:output/assets/css/main.css
PythonAction Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doit/action.py", line 343, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/nikola/plugins/task/build_less.py", line 82, in compile_target
compiled = subprocess.check_output([self.compiler_name, src])
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
when parent "default" (for example) is changed in nikola (such as happened recently, to factor out slides.tmpl), the default (now outdated) theme here becomes inconsistent / incompatible with nikola.
Suggest - either keep the nikola default installed themes here updated / sync'd with nikola, or (better) remove the default nikola thieme components from this repo (you could reference them from one or the other repo too).
getnikola/nikola#1951: an external links becomes http://SITE_URL.com/http://OTHER_SITE.com, and that link does not work without JS off. @matuu, please fix it.
Every theme should get an AUTHORS file, containing the names and GitHub links.
I have installed material-theme using nikola install_theme material-theme
, but when I set the variable THEME="material-theme"
in the configuration file and try to build, I get the following error:
TaskError - taskid:render_archive:output/en/archive.html
PythonAction Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/doit/action.py", line 372, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nikola/nikola.py", line 1037, in render_template
template_name, None, local_context)
File "/usr/lib/python2.7/dist-packages/nikola/plugins/template/jinja.py", line 92, in render_template
output = template.render(**context)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "themes/material-theme/templates/list.tmpl", line 2, in top-level template code
{% extends 'base.tmpl' %}
File "themes/material-theme/templates/base.tmpl", line 59, in top-level template code
{% block content %}{% endblock %}
File "themes/material-theme/templates/list.tmpl", line 12, in block "content"
{% for text, link, count in items %}
ValueError: need more than 2 values to unpack
Is there somewhere where I can see all these themes rendered?
Take the Ghostwriter theme, strip the AJAX, and port and adopt it to Nikola. Rename it Teslawriter.
One of the issues of Lanyon theme is that USE_CDN
doesn't work. And also, moment.js
and fancydates
are not supported. I am currently working on fixing it.
More specifically,
$ git init .
Initialized empty Git repository in /home/kishor/blog/nikola/blog/.git/
fatal: Not a git repository: themes/lotabout/../../.git/modules/v7/lotabout
Now, the output of any git command in this directory gives that fatal: Not a git repository: themes/lotabout/../../.git/modules/v7/lotabout
error.
$ nikola github_deploy
Scanning posts........done!
. sitemap:output/sitemap.xml
. sitemap:output/sitemapindex.xml
Scanning posts........done!
[2016-04-06T04:34:29Z] INFO: github_deploy: ==> ['git', 'checkout', u'src']
error: pathspec 'src' did not match any file(s) known to git.
[2016-04-06T04:34:29Z] INFO: github_deploy: ==> ['git', 'checkout', '-b', u'src']
Switched to a new branch 'src'
[2016-04-06T04:34:29Z] INFO: github_deploy: ==> ['git', 'add', '.']
fatal: Not a git repository: themes/lotabout/../../.git/modules/v7/lotabout
[2016-04-06T04:34:29Z] ERROR: github_deploy: Failed GitHub deployment — command ['git', 'add', '.'] returned 128
fatal: Not a git repository: themes/lotabout/../../.git/modules/v7/lotabout
The themes/lotabout/../../.git/modules/v7/lotabout
folder doesn't even exist. What's happening here?
Hi everybody!
I have just started experimenting with github pages and nikola and since I like the idea of using ipython notebook as a way to prepare new posts on the website I've chosen Zen-Ipython theme as a starting point.
I was wondering if there is a way to add new "symbols" on the sidebar since note every character in the FontAwsome set seems to be present. My actual need is to add a referral to my researchgate personal page. I saw that there is no icon in FA for researchgate so I tried to use the "registered" symbol as a temporary substitution but it seems not to be available.
Moreover, I would really like to add also textual link (like categories or whatever) to that sidebar but it seems the the template just want to use symbols from a restrict set of FA.
Is there anyone who can help me sorting this out? Maybe @damianavila ... ?
Thank you very much for your attention!
Implementation: replace the “no plugin selected” check with a special page that’s more informative (see getnikola/plugins#109)
I specified a png image as logo and it appear normally in the material-theme. but not in the Octopress theme
None of the themes for ipython that comes with nikola 6.2.1 does not include mathjax in resulting html and consequently doesn't display math correctly. It does not seem to load ipython css as well, so python code is not highlighted.
I noticed that at http://ddevnet.net/blog/archive/index.html the active link in the navigation doesn't get highlighted like what happens on the other pages. This is because the "active" class is not added to the link for whatever reason. However...
Shouldn't a:active
selector be used in CSS instead of adding an class="active"
to links and styling that way?
I am running the Readable theme (on Nikola 6).
Example:
https://dacoex.github.io/
the icons of font awesome are not shown when https is used.
Solution from wiki:
https://github.com/FortAwesome/Font-Awesome/wiki/Troubleshooting#im-hosting-fonts-on-my-server-and-icons-dont-show-up
points to:
http://www.paulirish.com/2010/the-protocol-relative-url/
zen-ipython-mako
theme (or zen-ipython
for mako and zen-ipython-jinja
for jinja2)zen
and zen-jinja
Assigned to @arusahni because that’s what one file states; and cc’ing @damianavila because he seems to work on those, too.
Currently because of the base tag, all links are broken.
Either it's missing some config tweak or it just doesn't work. I'll check it.
(I was asked to create an issue based on comment on the website, and refer it to @matuu)
Social links in floating action button is not working for me.
I see the site similar to the demo site, which does not have floating social buttons. (My site looks like that)
It would be good to provide a working copy of conf.py
as an example
Reason: zen themes use font awesome, which breaks if you are not on http(s).
For nikola plugin
, we offer --list-installed
flag, but not so for nikola theme
.
Is it possible to implement this?
Cheers.
nikola bootswatch_theme -s united united
[2015-09-05T20:50:07Z] WARNING: bootswatch_theme: "bootswatch_theme" only makes sense for themes that use bootstrap
[2015-09-05T20:50:07Z] INFO: bootswatch_theme: Creating 'custom' theme from 'united' and 'bootstrap3'
[2015-09-05T20:50:07Z] INFO: bootswatch_theme: Downloading: https://bootswatch.com/united/bootstrap.min.css
[2015-09-05T20:50:07Z] INFO: requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): bootswatch.com
[2015-09-05T20:50:07Z] WARNING: InsecurePlatformWarning: virtualenvs/nikola/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Traceback (most recent call last):
File "virtualenvs/nikola/local/lib/python2.7/site-packages/doit/doit_cmd.py", line 168, in run
return command.parse_execute(args)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_base.py", line 122, in parse_execute
return self.execute(params, args)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/nikola/plugin_categories.py", line 127, in execute
return self._execute(options, args)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/nikola/plugins/command/bootswatch_theme.py", line 99, in _execute
data = requests.get(url).text
File "virtualenvs/nikola/local/lib/python2.7/site-packages/requests/api.py", line 69, in get
return request('get', url, params=params, **kwargs)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/requests/api.py", line 50, in request
response = session.request(method=method, url=url, **kwargs)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "virtualenvs/nikola/local/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
If a theme has files with .less extension it should appear as a dependency.
Using the theme lanyon
, when accessing to /galleries a list of galleries is displayed, but the last slash (/
) of a gallery is replaced with the url encoded value %2f
.
For exmaple:
/galleries/my_gallery/
is replaced with:
/galleries/my_gallery%2f
And when clicked the gallery is not correctly displayed.
Also the colorbox plugin doesn't seem to work (but with the bootstrap template it does).
I've been trying to fix it but I'm not quite familiar with nikola yet.
Thanks.
Edit: I think this issue also affects the nested links.
Edit2: Sorry I just read the known issues for the theme:
Known Issues:
Steps to reproduce:
Scroll down a bit on a page.
Click the sidebar menu.
Page scrolls up and opens the menu.
Expected Result:
The page shouldn't scroll to the top but open the menu at that spot.
when I enter the command
nikola install_theme -l (or nikola install_theme zen-ipython for example)
I get a list of errors:
[2015-07-15T21:17:48Z] WARNING: Nikola: Cannot load theme "zen-ipython", using 'bootstrap3' instead.
[2015-07-15T21:17:48Z] INFO: requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): themes.getni
kola.com
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/connec
tionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/connec
tionpool.py", line 341, in _make_request
self._validate_conn(conn)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/connec
tionpool.py", line 761, in _validate_conn
conn.connect()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/connec
tion.py", line 238, in connect
ssl_version=resolved_ssl_version)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/util/s
sl_.py", line 279, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 365, in wrap_socket
_context=self)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 583, in __init__
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 810, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/adapters.py", line 370,
in send
timeout=timeout
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/packages/urllib3/connec
tionpool.py", line 574, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ss
l.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/doit/doit_cmd.py", line 165, in
run
return command.parse_execute(args)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/doit/cmd_base.py", line 122, in
parse_execute
return self.execute(params, args)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/nikola/plugin_categories.py", li
ne 125, in execute
return self._execute(options, args)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/nikola/plugins/command/install_t
heme.py", line 98, in _execute
data = requests.get(url).text
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/api.py", line 69, in ge
t
return request('get', url, params=params, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/api.py", line 50, in re
quest
response = session.request(method=method, url=url, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/sessions.py", line 465,
in request resp = self.send(prep, **send_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/sessions.py", line 573,
in send
r = adapter.send(request, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/requests/adapters.py", line 431,
in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:600)
I am now adding other people's themes via git submodules.
Some of these have README.rst instead of README.md so it needs converting.
Pandoc does a good enough job, so it should not be very hard.
Mixed Content: The page at 'https://themes.getnikola.com/v7/zen-jinja/index.html' was loaded over HTTPS, but requested an insecure font 'http://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.woff?v=3.2.1'. This request has been blocked; the content must be served over HTTPS.
As seen in the demo here, the style breaks the line numbers resulting in poor formatting.
This theme doesn't support submenus - but here's what I did for my site:
base_header.tmpl -
Removed:
%for url, text in navigation_links[lang]:
<a class="sidebar-nav-item" href="${url}">${text}</a>
%endfor
Added:
%for url, text in navigation_links[lang]:
% if isinstance(url, tuple):
<a class="sidebar-nav-item" href="#">${text}</a>
%for suburl, text in url:
<a class="sidebar-nav-item subitem" href="${suburl}">${text}</a>
%endfor
% else:
<a class="sidebar-nav-item" href="${url}">${text}</a>
% endif
%endfor
lanyon.css -
Added:
.sidebar-nav-item.subitem { padding-left: 2.2rem; }
Then the standard nested menu in the config.py pulls it all together just fine. It's not super fancy, but it works ok.
disqus_helper.tmpl
only themes/base-jinja/templates/disqus_helper.tmpl
has fixed this bug.
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
others still use dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
which leads to unusability of disqus in https site.
I ran into this because the newer bootstrap uses a newer normalize.css, which fixed styling bug I hit.
This is pretty easy and I can do a PR for this. Are the bootstrap.css & .min.css files included here the default distribution, or have they been customized?
Not being a bootstrapy theme, readable is what it is.
I get the following error when I try to use social_links
File "themes/material-theme/templates/base.tmpl", line 101, in top-level template code
{{ base.late_load_js() }}
File "themes/material-theme/templates/base_helper.tmpl", line 115, in template
{% for k,v in item.iteritems() %}
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'iteritems'
When I searched for the error, I came across this which seems to indicate that this is python3 compatibility problem.
I fixed this (locally) by changing to .items()
as suggested in the linked jinja2 issue.
I don't know (YET) if there is a way to support both python2 and python3, (by conditionally doing .items
and .iteritems()
so not sending a PR
I installed the zen-jinja theme and when I try to nikola build
I get:
TaskError - taskid:render_archive:output/2006/index.html
PythonAction Error
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/blog/local/lib/python2.7/site-packages/doit/action.py", line 360, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/home/vagrant/.virtualenvs/blog/local/lib/python2.7/site-packages/nikola/nikola.py", line 769, in render_template
template_name, None, local_context)
File "/home/vagrant/.virtualenvs/blog/local/lib/python2.7/site-packages/nikola/plugins/template/jinja.py", line 88, in render_template
output = template.render(**context)
File "/home/vagrant/.virtualenvs/blog/local/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/home/vagrant/.virtualenvs/blog/local/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "themes/base-jinja/templates/list_post.tmpl", line 2, in top-level template code
{% extends 'base.tmpl' %}
File "themes/zen-jinja/templates/base.tmpl", line 21, in top-level template code
{{ footer.html_footer() }}
UndefinedError: 'jinja2.environment.TemplateModule object' has no attribute 'html_footer'
looking at:
https://github.com/getnikola/nikola-themes/blob/master/v7/zen-jinja/templates/base.tmpl#L3-L4
are the base_footer.tmpl
and annotation_help.tmpl
files missing from the repo? Love the theme and would like to use it. Thank you for any help.
I have just upgraded to nikola 7.7.5 and my Octopress theme stopped working. I am gettingo the following error:
[2016-02-15T19:51:52Z] INFO: github_deploy: ==> ['git', 'add', '.']
fatal: Not a git repository: themes/octopress/../../.git/modules/v7/octopress
[2016-02-15T19:51:52Z] ERROR: github_deploy: Failed GitHub deployment — command ['git', 'add', '.'] returned 128
I have used the same files for both the default theme and the ZenJinja theme.
Within the listings directory I have the following structure
When I build the site using the default theme, the code listing line numbers look normal.
When I build the site using the ZenJinja theme, the code listing line numbers are in a single column and therefore are not lining up correctly with the line.
The weird part is that the first file (file1.xml) is rendered correctly. It is the files that after the first that are rendered incorrectly. When I look at the page in the Inspector, the linenumber column in the correctly rendered page has a width of 60px but the incorrect page has a width of 34px.
Here are screenshots of the default theme and ZenJinja of the same listing:
Default Listing:
Default Code:
ZenJinja Listing:
ZenJinja Code:
Just a note of reminder for me also... when Categories get merged, we need the update the nikola themes in the gallery to accommodate them to this change...
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.