How to do customized templates from preinstalled ones? #3581
Replies: 6 comments 3 replies
-
Nikola templates have a hierarchy to them. The default template for posts is |
Beta Was this translation helpful? Give feedback.
-
On Tue, Oct 12, 2021 at 8:29 AM Chris Warrick ***@***.***> wrote:
Nikola templates have a hierarchy to them. The default template for posts
is post.tmpl, and it inherits from base.tmpl. This means that if you want
a custom base1.tmpl for certain posts, you also need post1.tmpl — which
would inherit from the new base, and the post would also need to specify ..
template: post1.tmpl.
In most cases just the post1.tmpl will be enough. If there's anything you
need changed on base.tmpl you can override it in post.tmpl too
… —
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3581 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMK7H22HBYD3OWYUCDY3UGQLY5ANCNFSM5F2KNK6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
On Tue, Oct 12, 2021 at 11:07 AM quanta-science ***@***.***> wrote:
What to do in case of page.tmpl? as I've look through conf.py, pages are
generated on the base of page.tmpl
Same thing, start off a copy of page.tmpl and if there's any block in
another template you want to override it can be done there too.
… —
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3581 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMK577S4RKQARVZBV7YDUGQ6HVANCNFSM5F2KNK6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hi guys, Kind regards |
Beta Was this translation helpful? Give feedback.
-
I forgot my 2nd question. Is there any method to make bilingual website on Nikola static site? |
Beta Was this translation helpful? Give feedback.
-
Please don't start unrelated questions in old issues :-)
Other than that... Maybe? You could setup something like PHP or whatever,
but I have no idea of the specifics.
…On Mon, Dec 19, 2022, 8:18 PM Chris Warrick ***@***.***> wrote:
Nikola has support for multiple languages in one site and translating
posts. You can configure it in conf.py (TRANSLATIONS).
—
Reply to this email directly, view it on GitHub
<#3581 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMK3T7AG5GDPLCHXMDHDWODUMNANCNFSM5F2KNK6A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi guys,
I tried to apply another template (not default base.tmpl) for a dozen of my pages.
I did the following.
i. created copy of base.tmpl, renamed it to base1.tmpl and did some minor changes in it;
ii. created test page in HTML input format and added "..template: base1.tmpl" in its meta section;
iii. after "nikola build" I found that there is no any content in output test page though I put some text in input test page.
I use JIDN (mako) theme.
I very appreciate your help.
Beta Was this translation helpful? Give feedback.
All reactions