Comments (6)
You can change :port
setting defined in _config.clj
https://github.com/liquidz/misaki/blob/master/samples/blog/_config.clj#L18
from misaki.
hi.
how to publish a post with source code?such as a audio/video post?
pls see here: http://msk.brite.biz/2013-10/wether-sunshine-or-rain.html,
as3:/misaki/samples/blog/template/posts# ls/misaki/samples/blog/template/posts# cat 2013-10-25-wether-sunshine-or-rain.html.clj
2011-01-01-post1.html.clj 2013-10-25-test1.html.clj
2012-02-02-post2.html.clj 2013-10-25-test2.html.clj
2013-03-03-post3.html.clj 2013-10-25-test3.html.clj
2013-10-25-couple.html.clj 2013-10-25-wether-sunshine-or-rain.html.clj
as3:
; @layout post
; @title 风雨无阻
; @tag misc
#-CLJ
虽然周华健长得有点玩世不恭,但唱的情歌还是挺不错的.
CLJ
as3:~/misaki/samples/blog/template/posts#
so how should i edit the post which is with source code?
from misaki.
misaki's default compiler uses hiccup, so you can write source code as follows.
[:embed {:src "" :quality "" :width "" :height "" :align "" :allowscriptaccess "" :type ""}]
from misaki.
hi.
it's still useless.
as3:~/misaki/samples/blog/template/posts# cat 2013-10-25-wether-sunshine-or-rain.html.clj
; @layout post
; @title 风雨无阻
; @tag misc
#-CLJ
:embed {:src "http://player.youku.com/player.php/sid/XMjEzODIwODY0/v.swf" :width "500" :height "400" :type "application/x-shockwave-flash"}
虽然周华健长得有点玩世不恭,但唱的情歌还是挺不错的.
CLJ
or:
; @layout post
; @title 风雨无阻
; @tag misc
#-CLJ
[:embed {:src "http://player.youku.com/player.php/sid/XMjEzODIwODY0/v.swf" :width "500" :height "400" :type "application/x-shockwave-flash"}]
虽然周华健长得有点玩世不恭,但唱的情歌还是挺不错的.
CLJ
when u visit http://msk.brite.biz/2013-10/wether-sunshine-or-rain.html,it still cannot show the video.
from misaki.
Please write code outside of #-CLJ
like follows.
; @layout post
; @title ...
; @tag misc
[:embed {:src "" :width ""}]
#-CLJ
.....
CLJ
from misaki.
this time,it's ok.tks
from misaki.
Related Issues (20)
- _config.clj is ignored
- filename generating problem HOT 8
- clj-growl refers clojure-1.2.0-RC1, so "lein deps" failed. HOT 1
- lein test fail with sequential compiler setting HOT 1
- Method for allowing pagination HOT 4
- heroku support/howto HOT 1
- set-base-dir! problem
- atom.xml の中の link 先が localhost:8080 を指してしまっている HOT 2
- Error where running blog sample HOT 2
- The keys `:layout-dir "something/"` and `:detail-log true` are mandatory in _config.clj HOT 1
- Allow intermixing of compiler technologies
- License is missing HOT 3
- java.io.FileNotFoundException HOT 6
- Sample blog won't compile on windows HOT 1
- Use mustache for template HOT 2
- lein template suggestion
- 'lein run samples/blog' resulting in 'java.io.FileNotFoundException: Could not locate clojure/tools/namespace/find__init.class or ...' (on Windows) HOT 1
- Blog demo has outdated code-prettify URL
- Incompatibility with Clojure 1.7.0 onward
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 misaki.