Comments (2)
Documents and views have a one-to-one relationship. It's possible for you to define $view
at the collection level (in _blueprint.yaml
), but you can also override it at the document level by supplying $view
inside a document file.
For example:
/content/foo/
_blueprint.yaml -> $view: /views/base.html
page1.md -> no view specified
page2.md -> $view: /views/custom.html
The view for page1
is base.html
(provided by the collection) and the view for page2
is custom.html
(provided by the document).
It's not possible for a single document to have two views, but you could write a single view and then {% include %}
multiple files inside the Jinja template.
from grow.
Got it - thank you.
from grow.
Related Issues (20)
- Possibility to import a public Google Sheet without OAuth/Verifcation Code?
- Add `--file|--pod-path` flag to `grow stage`
- Ability to determine source information from constructors
- Deleting files results in an error
- File or memcache backing for podcache
- Grow 1.0.0 Migration Guide HOT 2
- Update filter naming
- Running localhost under https protocol HOT 1
- Objectcache reading/writing with multiple shards
- Issue with `transit/long` encoding HOT 3
- Error when running translations extract with legacy Jinja2 extensions HOT 2
- Grow fails to extract HOT 3
- Adding other markup formats HOT 2
- Bug with next() and prev() when localised documents are present HOT 1
- grow/starter empty repository? HOT 2
- Grow uses OOB to authenticate, which is outdated HOT 2
- Can't install package due to broken pyyaml 5.4 dependency HOT 1
- slug management HOT 1
- problem with localization
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 grow.