Questions tagged [nikola]

Nikola is a Static Site and Blog Generator written in Python 3.

15 questions
6
votes
3 answers

Embed media content in lektor pages?

I am currently using Nikola as page generator. But depending on the page scope and users, Lektor seems to be easier and more streamlined for the end-user. This fits well for a new page I plan. Nikola also embedds media (youtube, vimeo, soundcloud,…
DaCoEx
  • 303
  • 1
  • 7
2
votes
1 answer

Template hook is not being triggered in custom Nikola theme

I am trying to write a custom theme for Nikola, a static site generator. I have been mostly following their tutorial but have run into a problem. I want to show certain HTML specifically on pages (not on posts) in the spot where the page_header…
soapergem
  • 9,263
  • 18
  • 96
  • 152
2
votes
0 answers

How to use Nikola tag variables out side of tag page

I'm working on a Nikola site and want to display tags in a template other than the Tags template. I'm wondering if there is a way without add-ons to get access to the list of tags in the items variable. ## -*- coding: utf-8 -*- <%namespace…
9716278
  • 2,044
  • 2
  • 14
  • 30
2
votes
1 answer

Having Nikola ignore certain files

So basically all I want is to add data to my Nikola post folder (CSV, KML, ESRI Shapefiles, JSON, XML...), my posts are written in Jupyter notebooks so naturally need to reference data for writing posts and I would like for those who view the blog…
Sam Dotson
  • 35
  • 1
  • 6
2
votes
1 answer

Nginx: Mapping WordPress URLs to new static website

I am currently moving my blog from a WordPress site that used the URL scheme: http://www.domainname.com/// To a static blog site built with Nikola that uses the following URL…
λ Jonas Gorauskas
  • 6,121
  • 6
  • 45
  • 66
1
vote
2 answers

Pandoc could not be found on Ubuntu despite installing with pip and sudo apt-get install

I'm using Nikola, a static website generator, to build a website. I am automating its building through Github Actions. I also wanted to use Pandoc to help convert my markdown to html, but I noted that Pandoc was not included in the original action.…
1
vote
1 answer

Nikola Table of Contents in Markdown format

I've installed Nikola (https://getnikola.com/) and have created a markdown file which gets displayed as a post successfully. In my conf.py my markdown extensions look like this after install. MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code',…
1
vote
0 answers

Nikola: Adding a link with an id

I'm a newbie at Nikola, editing an existing site. There's an rst file that gets compiled to HTML. I want to add this to the HTML: Bigtime floof What code do I need to add on the…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
1
vote
1 answer

Nikola to generate a TOC in static blog

I am employ Niloka to generate a static blog. Things go smoothly, except that it did not generate a TOC automatically, I refer the hankbook for "toc" and "content", and thus not find a solution. Could you please provide any hints?
AbstProcDo
  • 19,953
  • 19
  • 81
  • 138
0
votes
0 answers

Accessing all files in a directory in a Nikola template

I'm converting a web site from Hugo to Nikola. Hugo had some way of accessing all the files in a directory. Then I was able to read their metadata, etc. Is there a way to do this in a Nikola template file (using Jinja2 perhaps)?
Mitch
  • 2,350
  • 7
  • 29
  • 48
0
votes
2 answers

Table of contents in markdown for Nikola

I've been using Sphinx for my personal website for the past years and realized that I more have a blog with posts and few pages and did the conversion to Nikola in the past days. I also took the opportunity to switch to Markdown as I use it with R…
Martin Ueding
  • 8,245
  • 6
  • 46
  • 92
0
votes
0 answers

Ascii Error when building Nikola on 10.7.5

High, I'm new to the terminal language, therefor I'm totally lost since I've pushed a little too far my journey into it. Here's the thing. I'm on mac 10.7.5, working on a site under Nikola, and trying to install Jekyll (... don't judge my naivety…
0
votes
1 answer

How to embedd a gpg key in static Nikola websites?

What is the best way to include gpg public keys on a website, which is generated by the Nikola website generator? It should be easy to import by visitors. Nikola must not the key while rendering the page. Edit: After 7 months I think the ideal…
Jonas Stein
  • 6,826
  • 7
  • 40
  • 72
0
votes
0 answers

Python failure when running Nikola in Windows 8?

I've installed Nikola using pip and am trying to run it, but Python continues to crash in Windows 8. I've updated to the latest version of Python and tried a number of installs and Nikola with no luck. From reading a bit it sounds like this has…
0
votes
0 answers

Nikola + Pandoc + Mathjax: Math not displayed properly

I have a static site with Nikola in which .md are turned into .html with pandoc. Part of my conf.py looks like: COMPILERS = { # "markdown": ('.md', '.mdown', '.markdown'), "pandoc": ('.md', '.mdown', '.markdown') } I generate posts using…
Jonas
  • 534
  • 8
  • 16