Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 07 21:59
    renovate[bot] synchronize #1115
  • Feb 07 21:59
    renovate[bot] edited #1115
  • Feb 07 21:59
    renovate[bot] edited #1115
  • Feb 07 21:59

    renovate[bot] on compatible

    chore(deps): update rust crate … (compare)

  • Feb 07 17:34
    renovate[bot] reopened #1115
  • Feb 07 17:34
    renovate[bot] edited #1115
  • Feb 07 17:34

    renovate[bot] on compatible

    chore(deps): update compatible (compare)

  • Feb 01 19:44

    renovate[bot] on compatible

    (compare)

  • Feb 01 19:44
    renovate[bot] edited #1115
  • Feb 01 19:44
    renovate[bot] closed #1115
  • Feb 01 17:12

    epage on master

    chore: Upgrade Merge pull request #1117 from e… (compare)

  • Feb 01 17:12
    epage closed #1117
  • Feb 01 16:51
    epage opened #1117
  • Feb 01 03:18
    renovate[bot] synchronize #1115
  • Feb 01 03:18

    renovate[bot] on compatible

    chore(deps): update compatible (compare)

  • Feb 01 03:16

    epage on master

    chore(deps): update rust crate … Merge pull request #1116 from c… (compare)

  • Feb 01 03:16

    epage on toml-0.x

    (compare)

  • Feb 01 03:16
    epage closed #1116
  • Feb 01 00:31
    renovate[bot] opened #1116
  • Feb 01 00:31

    renovate[bot] on compatible

    chore(deps): update compatible (compare)

David J. Weller-Fahy
@djwf
I'm assuming I should start on liquid, as it's a bit behind?
Ed Page
@epage

cobalt is going through a re-architecture, so liquid is a good place.

Things liquid needs:

David J. Weller-Fahy
@djwf
Gotcha - I'll work on those, thanks!
FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
I've repeatedly noticed now that some of the (newer) features are undocumented… Thought about opening a PR to add a line to CONTRIBUTING.md that requires to change the documentation accordingly when a feature is added or changed in a significant way. Thoughts? I mean, whoever adds an entire feature probably knows how to use the software enough to quickly describe how to use it, so it's not like this should be impossible to do… And the problem is there isn't really a point in adding features if most users don't know how to use them or even that they exist. I've opened a few issues on that sort of thing already, the latest one that would have to be added (which I only found coincidentally by looking at release notes) is file minification…
(haven't opened an issue on that one so far)
Ed Page
@epage

The main problem is that the documentation lives in a separate repo.

The other is we need to do a better job documenting the version for a feature. Sometimes I'm hesitant to document something that isn't released yet (though I've been trying to be better about releasing often)

FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
I see… That's of course an issue. Should I open an issue on the minify thing? If you tell me how this is configured, I could also just PR to the docs directly…
Ed Page
@epage
Go ahead and open an issue. I'm in the middle of stuff, so I can't lookup how to configure it
1 reply
I'll have to look to see if there is a way to merge the repos and keep github pages working
FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
Alright. If there isn't any way, I could also offer my webserver, you'd just have to point some domain or subdomain to it, or I could give you a subdomain like cobalt-org.artemislena.eu 🤷🏻‍♀️
Tassilo Horn
@tsdh
Hi. Is there a config option for the RSS feed so that it includes the full postings rather than only a summary / first paragraph? I want that people can read in their feed readers without having to visit my site.
FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
I don't think so. It uses the excerpt, afaik… Perhaps you can adjust the excerpt to default to the entire content somehow? Adjusting default.excerpt_separator in _cobalt.yml might work.
Tassilo Horn
@tsdh
fantasycookie17:artemislena.eu: Yeah, that seems to do the trick! Thanks.
FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
Out of curiosity, what value did you set it to?
Tassilo Horn
@tsdh
fantasycookie17:artemislena.eu: "I_DONT_WANT_AN_EXCERPT_BUT_THE_WHOLE_POSTING_IN_THE_FEED"
self-documenting values are even better than comments.
FantasyCookie17 🏳️‍🌈🏳️‍⚧️
@fantasycookie17:artemislena.eu
[m]
Ah, alright. I'm not too aware of how Cobalt works internally, so didn't know whether not finding the excerpt separator might lead to it being empty.
Ed Page
@epage
A marker for what leading content should be extracted from the content as an excerpt. "" will cause no excerpt to be generated.
https://cobalt-org.github.io/docs/front/
When there is no excerpt, we use the full content
Tassilo Horn
@tsdh
Indeed, that also works. Thanks, epage.
Tassilo Horn
@tsdh
I have in a markdown listing the text: <description>{{ .Summary | html }}</description>
Now cobalt seems to try to interpret that. At least "cobalt serve --drafts" errors like shown here: https://paste.sr.ht/~tsdh/e8d899adc04844c4b558f9db21895e31b68cb72c
I'd expect that listings aren't processed but taken verbatim. Is there something I can do about it?
Ed Page
@epage
What do you mean by "listing"?
Tassilo Horn
@tsdh
epage: I mean markdown's \n...\n construct.
Or language\n...\n
tsdh @tsdh gotta go to bed now but read answers tomorrow
Ed Page
@epage
Liquid has no knowledge of markdown and gets processed first
You'll need {{ raw }} for that
Tassilo Horn
@tsdh
epage: You mean surround the ... with {% raw %} ... {% endraw %}?
Tassilo Horn
@tsdh
epage: That did the trick.
Newbyte
@newbyte:matrix.org
[m]
👋
Ed Page
@epage
Greetings! @newbyte:matrix.org !
Newbyte
@newbyte:matrix.org
[m]
Is it possible to insert equations into Cobalt posts? Preferably with LaTeX syntax.
Ed Page
@epage
Natively? Not yet. We have an issue for cobalt-org/cobalt.rs#280 though I'm not particular about what style we support.
Newbyte
@newbyte:matrix.org
[m]
Thanks!
Newbyte
@newbyte:matrix.org
[m]
Is there any documentation about how to use the scss support in Cobalt?
Ed Page
@epage

Little direct documentation: https://cobalt-org.github.io/docs/assets/

You can choose our CSS is rendered: https://cobalt-org.github.io/docs/config/

You have the _sass directory for files you can import: https://cobalt-org.github.io/docs/directory/

Other than that, it should just be a matter of having the files on disk and they should get processed

3 replies
Newbyte
@newbyte:matrix.org
[m]
(the one generated by the sass compiler)
David J. Weller-Fahy
@djwf
@epage - with_time is only ever going to be used in our tests, right?
Ed Page
@epage
Yes, its just exposed in the test helpers
David J. Weller-Fahy
@djwf
ok, I believe I've figured out how to make it work, then
David J. Weller-Fahy
@djwf
although I believe our DateTime implementation will need some tweaking in terms of what it accepts - our implementation should be able to handle PrimitiveDateTime (no offset), but right now it only accepts OffsetDateTime. Ideally, it should handle any single date, time, and datetime with or without offset. So I'm going to fiddle with our DateTime to get it to that point, and then fix with_time. Sound good?
Note that when I'm talking about PrimitiveDateTime and OffsetDateTime, I really meant the string representations of those types, because everything internally should be OffsetDateTime
Ed Page
@epage
So just supporting parsing more string formats? Yes, we need to support more formats
David J. Weller-Fahy
@djwf
yeah, I think parse_date_time will check for timezone offset, then add the local offset if one is not present, and only then use the DateTimeImpl::parse method. That's probably the easiest way to do it.
David J. Weller-Fahy
@djwf
Ed - didn't know if you want me to merge the PR, or you (in general, I try not to merge PRs I generated)
Ed Page
@epage
Just hadn't gotten to it yet
Done