-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin gh-pages can't work well #69
Comments
sorry.... I know, gh-pages should work with versioned. |
@eriFelaP Did you get this working? I'll be in #lisp on Freenode IRC tomorrow morning around 10am EST. I did originally write this plugin to work with the |
Yes,It can work well with versioned plugin. Thank you for your reply very much and sorry I did not reply in a timely manner. But I find another program. I can't use chinese in title of post because (defmethod initialize-instance :after ((object post) &key)
(with-slots (url title author format text) object
(setf url (compute-url object (slugify title))
format (make-keyword (string-upcase format))
text (render-text text format)
author (or author (author *config*))))) If the title is all chinese, then (slugify title) will be "".I find the function about Slugs (defun slug-char-p (char)
"Determine if CHAR is a valid slug (i.e. URL) character."
(or (char<= #\0 char #\9)
(char<= #\a char #\z)
(char<= #\A char #\Z)
(member char '(#\_ #\-))))
(defun slugify (string)
"Return a version of STRING suitable for use as a URL."
(remove-if-not #'slug-char-p (substitute #\- #\Space string))) All chinese will be remove in title. |
oh,you have know that. I was too careless hasty. :-( |
No, thank you for mentioning it. I've been aware of this issue but I think you are the first user to hit it in a real installation. It seems like next steps are to add a dependency on |
@redline6561 If you give me some hints I could try to implement correct unicode handling in slugify. |
@lukasepple I can't speak for @redline6561 but IIUC it means making slugify IRI (See RFC 3987) aware. Stuff I am not clear about is should all IRI's be normalized? if so according to which algorithm. From section 6 of the RFC 3987 I got to RFC 3491 which suggests prohibiting characters in some tables and applying kc normalization. Hope the info is of some use, although I'm not clear if that would be enough or correct though, I can live without the ñ :D |
Hey ya'll. Sorry I'm late to the thread. I'm happy for you to take point on this since I'm busy with other stuff, @lukasepple. As usual, @PuercoPop has some good suggestions. :) We need to support genuine IRIs. International users shouldn't have to deal with an ASCII only slug system. I trust you all to do a better job testing this than me, quite frankly. :) Two interesting links from a little digging: |
Oh, I find versioned and gh-pages have some warning today.It can work but have some warning. When I juist use versioned without gh-pages, SBCL show:
When I use gh-pages with versioned, SBCL show:
My .coleslawrc is
I use the latest version git clone from github. And I can find the new post and cname in |
|
@lukasepple I replace all files in |
I think it's better to clone it into a directory in ~/quicklisp/local-projects then always the fresh clone will be loaded. You're solution might work but this is the way quicklisp suggests it :)
|
@lukasepple Thanks for your suggestion :-) |
@eriFelaP Does it work now? |
It still doesn't work. I rm |
ok, then it wasn't caused by an outdated version. Just keep it like that. Then there's some other problem :/= |
@eriFelaP I got gh-pages warnings too. Would you like to have a look ? @redline6561 Thanks |
SBCL show
I changed
to
It can work well now, I don't learn common lisp much and don't understand why. Maybe I do something wrong.
Sorry for my poor English :-(
The text was updated successfully, but these errors were encountered: