cyjake / darko Goto Github PK
View Code? Open in Web Editor NEW๐ฐA Node.js port of Jekyll
๐ฐA Node.js port of Jekyll
There shall be page.previous
& page.next
variables, which point to the corresponding post in site.posts
.
Darko returns something like [object Object]
currently. This can't be right.
References:
The static method Liquid.Templet.registerTag
might be removed...
Reported by @nickli
att
Darko uses highlight.js for syntax highlighting currently. The generated result is not compatible with the result of pygments though. Therefore those styles written for pygments won't be usable if some one is switching from Jekyll to Darko.
There are pygments compatible Node modules available, such as peacock. But it only highlights syntax of JavaScript.
Any thoughts?
When resolving url path, query strings shall be omitted.
Reported by @nickli
_config.yml can have
defaults:
-
values:
layout: "default"
This way, there's no need to specify in every html
---
layout: default
---
This works in jekyll, but not darko.
I am attempting to serve a site locally using darko for the first time. I've installed darko using npm, and the command darko --help
returns the correct information. However, any of the other commands such as serve
or build
return darko-serve(1) does not exist, try --help
.
I attempted this in both git bash and from windows command line with same results. Any help is appreciated!
OS: Windows 7
For some reason, Darko inserts comma in every URL. I've tried changing baseUrl and url yml properties with no luck. There might be a bug somewhere in the code. I am trying to find the place where you parse URLs, but don't know where it is located.
<link rel="canonical" href="http://yoursite.com,/,/">
<link rel="stylesheet" href="/,/css/main.css">
https://jekyllrb.com/news/2018/01/02/jekyll-3-7-0-released/
LiveReload is available as an option during development: with jekyll serve --livereload no more manual page refresh.
Node.js has limits on opening file descriptors, see nodejs/node-v0.x-archive#5401
I've got two options, 1) use graceful-fs as a drop in replacement of built-in fs module; 2) access files in batch, keep the total opened file descriptors below the red line.
Guess I'll give the second option a try.
I receive the following error when using darko-serve -w in Cygwin in Windows 7
path.js:204
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at f (path.js:204:15)
at Object.filter (native)
at Object.exports.join (path.js:209:40)
at FSWatcher.<anonymous> (D:\Workspaces\node_modules\darko\bin\darko-serve:191:22)
at FSWatcher.emit (events.js:98:17)
at FSEvent.FSWatcher._handle.onchange (fs.js:1044:12)
The issue seems to be that the filename argument for watch is not supported on every platform.
See: http://nodejs.org/docs/latest/api/fs.html#fs_filename_argument
It would be great if darko could provide support for custom tags and generators located in _plugins directory
Currently I'm able to use "custom tags/generators" but it is very ugly way :)
What do you think about this feature ? It is possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.