You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/creating-a-theme.txt
+7-9
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ First, we create a site with some content in it. We’ll use the ``nikola init``
74
74
Creating Nikola Site
75
75
====================
76
76
77
-
This is Nikola v7.4.1. We will now ask you a few easy questions about your new site.
77
+
This is Nikola v7.8.0. We will now ask you a few easy questions about your new site.
78
78
If you do not want to answer and want to go with the defaults instead, simply restart with the `-q` parameter.
79
79
--- Questions about the site ---
80
80
Site title [My Nikola Site]:
@@ -107,12 +107,10 @@ First, we create a site with some content in it. We’ll use the ``nikola init``
107
107
108
108
109
109
Then, we create an empty theme inheriting from base. This theme will use Mako templates. If you prefer Jinja2,
110
-
then you should use ``base-jinja`` instead::
110
+
then you should use ``base-jinja`` as a parent and ``jinja`` as engine instead::
111
111
112
112
$ cd lanyon-port/
113
-
$ mkdir themes
114
-
$ mkdir themes/lanyon
115
-
$ echo base > themes/lanyon/parent
113
+
$ nikola theme -n lanyon --parent base --engine mako
116
114
117
115
Edit ``conf.py`` and set ``THEME = 'lanyon'``. Also set ``USE_BUNDLES = False`` (just do it for now, we’ll get to bundles later).
118
116
@@ -207,11 +205,11 @@ But how do I tell **our** lanyon theme to use those CSS files instead of whateve
207
205
By giving our theme its own base_helper.tmpl.
208
206
209
207
That file is a **template** used to generate parts of the pages. It’s large and
210
-
complicated but we don’t need to change a lot of it. First, get it from
211
-
`Nikola’s source code <https://github.com/getnikola/nikola/blob/master/nikola/data/themes/base/templates/base_helper.tmpl>`__ and put a copy in ``themes/lanyon/templates/base_helper.tmpl``::
208
+
complicated but we don’t need to change a lot of it. First, make a copy in your
209
+
theme (note this command requires setting your ``THEME`` in ``conf.py`` to
0 commit comments