Share what you are working on and using!

OK, so quite a bit of the Utterances site went over my head I think(!), but am I right to assume that anyone wishing to leave a comment must be a Github user? IE sign in with a Github account?

Yeah @digitalgyoza , it looks like you have to log in with a Github account to comment - a barrier that might be a deal breaker for most.

Comparatively, Write.as allows you to post without an account.

So perhaps there could be a way to set up a commenting system that would allow people to use an anonymous Write.as post as their comment. That post’s id could then be passed through a form which sends the post over to a person’s “comment” blog.

Tag management can be tricky, especially when you are constantly adding new ones to the mix.

I created an app that writes to a post with the tags in your collection. It automatically updates as you add tags. No need to constantly go back and add tags to the post. Check out the code and learn how to deploy it here.

4 Likes

Is that demo supposed to load something, or no?

Nope! The app is purely for updating a post and redirecting the post’s url. But I should put some placeholder in the main route though. Thanks @bix!

I posted about this previously, but I put together some JavaScript to allow footnotes in write.as posts.

My current project is a script for QOwnNotes to allow posting directly from there to write.as.

1 Like

Thanks @ASilentDiplomat! As someone who loves to use marginal and footnotes, this adds some much needed flexibility to the Write.as experience.

And please let us know when you get that QOwnNotes script up and running.

To allow another way for people to engage with my writing, I have decided to make highlights and annotations native on my blog through Hypothesis! Check out an example of it in action here.

If you want to use it in your blog, all it requires are some lines of code to your Custom JavaScript (feel free to mess with the custom branding to fit your blog):

// src: https://hypothes.is/embed.js

window.hypothesisConfig = function () {
  return {
    "openSidebar": false, 
    "theme": "clean",
    branding: {
      appBackgroundColor: 'white',
      ctaBackgroundColor: 'rgba(3, 11, 16, 1)',
      ctaTextColor: '#eee',
      selectionFontFamily: 'helvetica, arial, sans serif'
    }
  };
};

5 Likes

I just read your post on this. I had never heard of Hypothesis, but this is awesome! Infinitely better than a confusing “like”. Thank you so much for sharing this!

I’ve noticed you did remove it again. Did you run into issues?

Hi @mikka, no issues so far - it should still be up. Did you run into issues seeing annotations or making them?

The way I have it on my blog is that it remains hidden until you highlight a part of the text - then it prompts you to annotate. There are also yellow highlighted parts of the text which are annotations. Clicking either brings up the Hypothesis sidebar to start writing or viewing annotations on that post. I wanted a clean look rather than a sidebar interfering with the reading experience.

Hope that clarifies things

You’re welcome @blake! Hope that it works well for your blog. Let me know if you run into any issues using it. Be sure to share your blog so we can start annotating!

I found the culprit, it’s my experimental browser under Dex on the S6 that breaks on some JavaScript. It’s fixed now, and I’ve joined the experiment.

1 Like

Ah excellent! I just added an annotation on the post.

Just want to continue on the embedding Hypothesis annotations on your Write.as blog project:

I was able to create a Glitch app that updates a post with new annotations every time one is made on my Write.as blog. The post is formatted like this. Feel free to remix the app here and ask questions if needed.

1 Like

While Remark.as isn’t ready yet and Submit.as is pricy, I’ve searched for a free (and anonymous) chatroom system that I could incorporate into my blog (in order to facilitate communication). I found Minnit, which seems to be quite simple to use. I gave it a shot and included a chat page in my blog to test it.

Let’s see what happens.

1 Like

Thanks for sharing @Cat! I would have never considered embedding a chatroom system. This just adds another layer of interesting possibilities. Could you share how you embedded it? I am assuming part of it is some code put into the Custom JavaScript?

Hi, @cjeller1592, I’m glad you’re interested! Here you are:

Code
if (window.location.pathname.includes('/chat')) {
  const div = document.querySelector('.e-content');

  div.innerHTML = `<strong>AVISO:</strong> este é um chat incorporado que NÃO FAZ PARTE do Write.as. Ao continuar, seu IP poderá ser registrado por terceiros. Se privacidade é um problema para você, utilize uma VPN ou abstenha-se continuar. Você foi avisado.

    <a href="#" id="load-chat" style="display:block;width:100%; text-align:center">Carregar chat</a> 
  `;

  document.querySelector('#load-chat').onclick = () => {
    div.innerHTML = `<iframe src='https://minnit.chat/oidiotablog?embed&nickname=' style='border:none;width:90%;height:500px;' allowTransparency='true'></iframe><br>`;
  };
}

The important part is the onclick event, which replaces the post’s content (which is a div that contains the e-content class) with the iframe that contains the embedded chat. You could skip all the “click this link to load the chat” thing and just use the code inside the event, thus simplifying it:

Code
if (window.location.pathname.includes('/chat')) {
  const div = document.querySelector('.e-content');
  div.innerHTML = `<iframe src='https://minnit.chat/oidiotablog?embed&nickname=' style='border:none;width:90%;height:500px;' allowTransparency='true'></iframe><br>`;
}

I then added a post with a chat slug, which is verified in the if (window.location.pathname.includes('/chat')). The included message with the link button is for people who are concerned about their IP addresses being tracked by third parties. Since Minnit registers the IP address of every user in the chat, the embedded chat isn’t loaded until the person clicks the link to load it.

Also, I didn’t put a lot of effort into searching for an embeddable chat system. The first one that I found was Minnit. I’m open to better suggestions, though.

2 Likes

This is great, thanks @Cat! I actually like the added detail of the “onclick” event. Having the ability to opt-in first rather than having it happen automatically is always a plus.

There are two other open source embeddable chat systems I have seen used on Write.as - First is Utterances, a commenting system based on Github issues. Anyone who makes a comment needs a Github account (which is a deal breaker for some). Then there is Commento which has a “name your own price” model.

Another alternative is allowing your posts to be annotated on with Hypothesis, a free web annotation platform. It works by allowing someone to highlight parts of your post and make annotations through them. You do need an account to do this but it is free and allows you to annotate the rest of the web. I have it implemented on my blog and another Write.as user, @mikka has it on his. See it in action on one of Mikka’s posts here.

Hope that helps!

1 Like

Interesting! I guess I’ll try embeddeding Commento into my blog posts as well and see what happens. Thanks for your suggestions!