Comments (5)
Hi Greg. I'm not sure I understand the use case -- could you give me an example?
from ark.
I am trying to build a theme that I can use across several sites. I can do what I want with template inheritance, but it feels very contrived: it would be a lot easier to have:
<!DOCTYPE html lang="en">
<html>
<head>
{% include mathjax %}
{% include plausible %}
...template-specific stuff...
</head>
...
in several places - putting those files in the inc
directory of the project rather than in lib/whatever/inc
feels leaky.
from ark.
You should be able to put files like that directly into the theme's templates
directory -- that's where Jinja and Ibis are configured to look for files included using the {% include %}
tag.
from ark.
Thanks, that seems to work.
from ark.
Excellent. I've updated the documentation to hopefully make that clearer for future users.
from ark.
Related Issues (15)
- Automenu extension sometimes adds extra '.html' HOT 3
- PyPI Package Name Release Request
- Q: how to generate a/index.html ? HOT 7
- copying files without templates HOT 8
- review request: Ivy theme HOT 9
- best way to package a theme? HOT 2
- Generating an index HOT 6
- Preventing actions for specific commands HOT 6
- feat: use ivy.py instead of config.py for configuration HOT 2
- Does it support RSS? HOT 1
- Failed to change fonts HOT 2
- bad type annot HOT 1
- Publish version 6.5.0 on pypi HOT 2
- Update PyYAML and Jinja2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ark.