/Now page from main weblog?

Hi there,

I mentioned this in the Discord a few days ago, but thought it would be best to have this down here as it’s seems less ethereal than a Discord comment.

In the switchboard section I updated my ‘preferred URL’ to that of my weblog, acn.lol. After doing this various pages are all working fine, but acn.lol/now doesn’t resolve to my Now page. I’ve got around this currently by just adding a direct link into my navigation bar but is there a way for the Now page to automatically stay within my domain and not have to be hard coded in at all?

I’m not sure if I’ve explained the issue very well here so please let me know if it’s not very clear.

Kind regards,

Andy

1 Like

Thanks for capturing it here, andyn — it’s actually super helpful for me. I’ll work on this shortly and should have something in place before long!

1 Like

Oh, thanks @adam . It’s definitely, of course, low priority, at least for me, but thought I’d raise it as I say.

Thanks for the reply and in advance for taking a look as and when.

Andy

1 Like

I wrote about this in tonight’s update, but this is pretty much up and running now. You can drop {now} into any weblog entry, and your /now page output will appear in that spot when the weblog entry is rendered. I also added {profile}, too. You may need to adjust some style in your template/CSS file(s) to get things the way you’d like them, but hopefully this gets you to where you want to be in terms of pulling in /now page content into your weblog!

2 Likes

Oh, cool, thanks Adam! I’ll give this a whirl!

1 Like

This seems to work a treat, thanks again! I’ve embedded my status.lol update into the Now page and visiting the page directly seems to include my formatting but visiting it via the new link doesn’t.

Do you know why that might be at all?

1 Like

This is expected — the embedded version of the content doesn’t come with any style (since the style is defined in stylesheets imported by your omg.lol theme). The only way to include the style would be to somehow inject those stylesheets into your weblog setup, which would be guaranteed to conflict with existing weblog styling… so the only sane approach here is to leave things open to be styled within your weblog style definitions as you see fit. The base omg.lol profile page stylesheet has some styles that you might want to borrow from, though you wouldn’t want to copy it outright given the fonts and colors defined for higher-level stuff like body. Hopefully all of this makes sense, but let me know if you have any questions.

Thanks for the update Adam, that’s clear I think. I’ll have a play around with the CSS side when I’m able to get to a computer.

Thanks again for looking into this one!

Kind regards,

Andy

1 Like