GithubHelp home page GithubHelp logo

getnikola / nikola-themes Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 51.0 10.18 MB

Themes for Nikola

Home Page: https://themes.getnikola.com/

Python 4.39% CSS 63.38% HTML 2.36% JavaScript 24.23% Shell 0.01% Makefile 0.06% SCSS 2.25% Stylus 0.75% Less 2.57%

nikola-themes's People

Contributors

abrahamvarricatt avatar cadair avatar carreau avatar cheshirekow avatar damianavila avatar devilgate avatar douglasimcabral avatar encarsia avatar etienned avatar gwax avatar hartwork avatar henryiii avatar iammrinal0 avatar ivanteoh avatar jidn avatar kwpolska avatar landreville avatar laodzu avatar ltiao avatar m3adow avatar mandarvaze avatar matuu avatar okin avatar punchagan avatar ralsina avatar rwjuk avatar sponge5 avatar woile avatar xuhdev avatar yamasster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nikola-themes's Issues

Zen Theme Installation Problem

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

nikola theme parents step on nikola installed themes

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).

Python error building with material-theme

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

Theme Gallery?

Is there somewhere where I can see all these themes rendered?

Lanyon use_cdn, fancy dates don't work.

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.

"fatal: Not a git repository" on github_deploy attempt with the "lotabout" theme

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?

[zen-ipython theme] Add new links on the social/menu/sidebar: icon and text

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!

IPython themes do not display math

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.

Clean up the zen themes

  1. there should be a zen-ipython-mako theme (or zen-ipython for mako and zen-ipython-jinja for jinja2)
  2. files should not be duplicated between the themes — i.e. assets and less files should be only in 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.

Better documentation for Social links in floating action button

(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

Facebook comments count not updated

hi, I am using facebook for comments but I see these errors in console

screen shot 2016-07-30 at 10 49 20 am

which I think results in comments not getting registered with the comments count:

screen shot 2016-07-30 at 10 55 10 am

Missing --list--installed flag

For nikola plugin, we offer --list-installed flag, but not so for nikola theme.

Is it possible to implement this?

Cheers.

bootswatch_theme throws error SSL23_GET_SERVER_HELLO

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

Layon issues with gallery

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:

  • Galleries will work better when Issue #1764 is fixed.
  • Submenus in navigation links are not supported

Can't install any theme

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)

Support readme.rst

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.

Submenu issue, possible workaround

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 should not use handcoded 'http://' src

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.

update bootstrap3-jinja to bootstrap 3.0.2

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?

Polishing provided themes for v6 launch

  • sidebars/notes look bad in monospace
  • crumbs look bad in bootstrap
  • literal font is too large in readable
  • gallery broken in readable
  • slides broken in readable

Not being a bootstrapy theme, readable is what it is.

Material Theme not python3 compatible ?

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

UndefinedError: 'jinja2.environment.TemplateModule object' has no attribute 'html_footer'

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.

Syntax highlighting not working on Zen-jinja

I'm using zen-jinja theme and Syntax highlightingt is not working

.. code-block:: python
    def printpow(i):
        print "my value is %d" i**2

renders like this:

nikola

I'm missing something?

Latest release broke Octopress theme for github_deploy

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

ZenJinja Theme - CSS for code line numbers is not displaying correctly.

I have used the same files for both the default theme and the ZenJinja theme.

Within the listings directory I have the following structure

  • listings
    • xml01
      • tutorial
        • file1.xml
      • review
        • file2.xml
      • case1
        • file3.xml

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:

defaulttheme-listing

Default Code:

defaulttheme-code

ZenJinja Listing:

zenjinjatheme-listing

ZenJinja Code:

zenjinjatheme-code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.