Skip to content
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

Permalinks in Old School are weird #11

Open
scripting opened this issue Nov 14, 2021 · 1 comment
Open

Permalinks in Old School are weird #11

scripting opened this issue Nov 14, 2021 · 1 comment

Comments

@scripting
Copy link
Owner

I just wrote a change note for background.

@scripting
Copy link
Owner Author

To generate a link to a post on Old School from within Drummer, this is what you do.

var d1 = the time in the user's time zone that the post was created;

var d2 = the time the bar cursor headline was created in GMT;

var headers = a struct containing the head-level atts;

var url = headers.urlBlogWebsite + d1.getFullYear () + "/" + pad (d1.getMonth () + 1) + "/" + pad (d1.getDate ()) + ".html";

url += "#a" + pad (d2.getUTCHours ()) + pad (d2.getUTCMinutes ()) + pad (d2.getUTCSeconds ());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant