latest 20 messages by Ansikt
+
[2014-08-20T01:17:00Z]
Ansikt
But, Angular's router seperates on slashes - so I need a relative url, otherwise it looks like mydomain.com/posts//my-post/
+
[2014-08-20T01:16:17Z]
Ansikt
2.3.0
+
[2014-08-20T01:15:58Z]
Ansikt
I just pulled it a couple days ago
+
[2014-08-20T01:15:47Z]
Ansikt
I'm building a JSON representation of my blog so that I can serve it via Angular
+
[2014-08-20T01:15:25Z]
Ansikt
Or do you mean where in my code did I put it?
+
[2014-08-20T01:15:16Z]
Ansikt
It was in a StackOverflow answer.
+
[2014-08-20T01:13:37Z]
Ansikt
found it - {{ post.url | remove_first:'/'}}
+
[2014-08-20T01:10:05Z]
Ansikt
Yikes. Can't kill that leading slash, though. Just using site.url in my template. What am I doing wrong?
+
[2014-08-20T01:04:43Z]
Ansikt
Thank you, rubygeek <3
+
[2014-08-20T01:04:33Z]
Ansikt
That's the setting I'm looking for
+
[2014-08-20T01:04:26Z]
Ansikt
PERMALINK!
+
[2014-08-20T01:03:23Z]
Ansikt
That is intensely perfect
+
[2014-08-20T01:02:23Z]
Ansikt
*the .html
+
[2014-08-20T01:02:18Z]
Ansikt
Actually, now that I think of it - the best thing would be even to lose the HTML.
+
[2014-08-20T01:01:20Z]
Ansikt
Now, I can remove the categories and the base URL - but is there any way to remove that leading slash?
+
[2014-08-20T01:00:44Z]
Ansikt
YY/MM/DD/post.html
+
[2014-08-20T01:00:19Z]
Ansikt
More or less the opposite - what I want is:
+
[2014-08-20T00:55:43Z]
Ansikt
(honestly, the biggest thing for me would be simply to remove the leading slash)
+
[2014-08-20T00:55:08Z]
Ansikt
How do I override this behavior?
+
[2014-08-20T00:54:54Z]
Ansikt
Specifically, every file in my _posts/ directory is being moved to /{base_directory}/category1[/category2]/YYYY/MM/DD/post-name.html