Comments (6)
Okay that's great, but I don't think this should be closed just yet. Some of those frontmatter items, like permalink or published or published date should be used. So if the filename is 2019-12-16-my-post.md
, but the publish_date is 2019-12-20
, the file should not be created until that day. In addition, if the permalink value is /this-is-the-post-name
, that should be the generated file name, and not the actual file name.
Having some of the front matter available through the service is great, but those values also need to be used at build time. If that is set through the service, are there any examples of how to do this?
from scully.
Front-matter is already in use, and all the data is available to you angular app by means of the ScullyRouteService
from scully.
from scully.
Here is an example of frontmatter from a post on my site.
from scully.
I think this front-matter plugin could work perfectly. You use it to parse a markdown file, and it returns an object like this:
{
attributes: {
title: 'Just hack\'n',
description: 'Nothing to see here'
},
body: '\nThis is some text about some stuff that happened sometime ago',
frontmatter: 'title: Just hack\'n\ndescription: Nothing to see here'
}
The attributes could then be applied to the document.
Another option could be using this yaml-front-matter plugin. It's similar to the above, but it just returns the frontmatter as an object. Then the permalink for the post could be determined, the page title, and other similar things.
from scully.
Okay sounds great. :) Thanks for the explanation! Looking forward to those things. :)
from scully.
Related Issues (20)
- Cannot read properties of null (reading 'toString') when doing 'ng add @scullyio/init' for existing angular project
- When API response data is huge, scully does not caching that data HOT 1
- Is this project till supported?? HOT 2
- Angular bootstrap not loading (after pre-render) for dynamic routes
- Catch the Page build failure during Puppeteer Render at scully build time HOT 1
- Running Scully in Angular 15? HOT 14
- Repo no longer maintained? Everything is way outdated HOT 15
- 2.1.42 not in npm, why?
- Links in scully blogs do not respect Ctrl Click HOT 5
- scully useScullyTransferState no provide data on PROD HOT 2
- Install instructions for `ng add` are incorrect on Create scully files with ng add page
- Problem with generating routes and loading styles and scripts HOT 2
- Init schematic not generating the required files for ng version 16 HOT 3
- Unable to link to element on the same markdown page HOT 2
- Config file doesn't create after installation HOT 4
- Angular 16, Scully. Build successfully. Html css loaded but js not loaded.
- Provide a way to pass browserWSEndpoint in puppeter launch options
- Support for applications bootstrapped via standalone components HOT 1
- Is esModuleInterop: true needed in tsconfig?
- Slow Page Transition with Flash Prevention Plugin HOT 4
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 scully.