1. 15 Jul, 2020 1 commit
    • Antoine Beaupré's avatar
      add goatcounter analytics · bde10038
      Antoine Beaupré authored
      I currently hold 7 days of logs on the webserver, including User-Agent,
      referrer, and IP address information. That information gets processed by
      goaccess and sent by email. Those reports contain Personnally
      Identifiable Information (IP and User Agent, mostly) and so are not
      properly anonymized.
      
      Goatcounter is an attempt at fixing that. The data it keeps is somewhat
      anonymized, and it is believed (by the author) that this makes it GDPR
      compliant.
      
      I use both a Javascript tracker (to get stuff like resolution) and a
      pixel tracker (for those who turn off Javascript). Ideally, I would just
      parse logs and not bother people with extra queries, but goatcounter
      doesn't support parsing logs for now, so that will have to do.
      
      I do not make this decision lightly. I believe goatcounter will be a
      *better* system for showing which of my posts are popular than the
      current approach, and will therefore be a net win in the privacy of my
      users.
      
      See also https://anarc.at/services/analytics/
      bde10038
  2. 15 Mar, 2020 5 commits
  3. 11 Mar, 2020 5 commits
  4. 11 Oct, 2018 4 commits
  5. 04 Sep, 2018 2 commits
    • Antoine Beaupré's avatar
      make breadcrumbs nicer · 3a67fe0d
      Antoine Beaupré authored
      The breadcrumb replaces the line originally below the header when empty
      3a67fe0d
    • Antoine Beaupré's avatar
      add breadcrumbs for non top-level pages · ba548926
      Antoine Beaupré authored
      This is essential for pages like "services" or "hardware" otherwise you
      can't browse back to the upper pages without using the "back" button. If
      you were hotlinked in, there is no way back at all. This will also be
      useful to link back to the blog, although there is already a link there.
      Might be worth making an exception for entries in the top-level links.
      
      This looks *kind* of okay, but I might get tired of it again...
      ba548926
  6. 27 May, 2018 1 commit
    • Antoine Beaupré's avatar
      figures formatting · 9821f95e
      Antoine Beaupré authored
      We use figures because it features the `figcaption` element that allows
      us to add a caption without reverting to messy table or div styling. A
      todo item was opened upstream to see how this could be improved in
      ikiwiki's img directive itself, but since we don't generally use it, we
      don't need to hack that directly and instead inject the elements
      directly in the Markdown, and they get through the scrubber without
      problems.
      
      The align-right style is for images with want to float to the right of
      text. This required display: table otherwise the float does not work and
      the elements just stay where they are if there's a caption. The padding
      is necessary otherwise everything is all crammed up, and so is the
      max-width: this might resize some images, but if that's a problem, they
      should be kept centered as they are just too big.
      
      Thanks to joe on IRC for the help with that latter bit, that was epic.
      9821f95e
  7. 05 Feb, 2018 1 commit
    • Antoine Beaupré's avatar
      expand favicon support to non-standard devices · fea602a1
      Antoine Beaupré authored
      Turns out that the good old favicon.ico is not enough anymore. Apple,
      Microsoft and Google all thought they had *better* ideas so they
      designed non-standard extensions to the "favicon" standard.
      
      Adding compatibility for this requires more or less 7 images and two
      metadata file, only 4 of which are actually linked from the HTML - the
      rest being "automagically" fetched depending on the platform/device.
      
      This is a shame and an embarrassment for the open web, but I prefer to
      have pretty icons for users than try to fight such a useless battle.
      
      This obviously requires changes to websites using the theme, but should
      still work without those extra configs: those will just yield a 404. The
      previous favicon.png, however, will fail to be found anymore in most
      cases, so that image should at least be converted to a favicon.ico or
      similar.
      
      Cargo-culted from https://realfavicongenerator.net/
      fea602a1
  8. 29 Jan, 2018 1 commit
    • Antoine Beaupré's avatar
      fix table widths · 964e0f1c
      Antoine Beaupré authored
      inherit would make large table flood beyond the main body, which looked strange. try to restore this.
      
      the real fix is to have bootstrap take care of this, but wtf... no .table tag on our tables?
      964e0f1c
  9. 18 Jan, 2018 6 commits
  10. 06 Nov, 2017 1 commit
    • Antoine Beaupré's avatar
      revert back to using CDNs for bootstrap and jquery · 0df27f66
      Antoine Beaupré authored
      I understand there are security and privacy implications with this,
      but I consider performance considerations trump those. Furthermore,
      the issues are limited.
      
      Security-wise, the content is exactly the same as it was before, and
      integrity is checked by the client, thanks to the `integrity`
      attribute. I have taken checksums from the versions in this git
      repository and they match files downloaded from the CDN at the time of
      writing.
      
      Privacy-wise, I have asked the MaxCDN people (behind the Jquery and
      bootstrap CDNs) about their privacy policies. They seem acceptable:
      
       * they keep 7 days of logs
       * they do not keep user-identifiable information (e.g. cookies)
       * they do not resell data to third-parties
      
      Their privacy policy is here: https://www.maxcdn.com/legal/
      
      While it *does* mean they keep logs, I also do on my own server, so I
      think this is an acceptable compromise to give the site a small
      performance boost.
      
      The actual static files are kept locally because they may be
      referenced in HTML files that could still be in caches. They will be
      removed once I am satisfied with the performance and results.
      0df27f66
  11. 23 Feb, 2017 3 commits
  12. 22 Dec, 2016 1 commit
  13. 15 Nov, 2016 1 commit
  14. 04 Nov, 2016 4 commits
    • Antoine Beaupré's avatar
      restore sidebar and move meta links in a dropdown · 7069502a
      Antoine Beaupré authored
      this is the result of an ad-hoc usability observation I did at StudioXX:
      the first thing the user did when browsing the site was to hover their
      mouse over to the top right links. they didn't click anything because
      they didn't understand what the links were.
      
      this is prime screen real-estate. it should be contact information, the
      blog and maybe *one* other link, that's all.
      
      we move the edit, comments and all that crap in a "meta" link down
      below.
      
      note the BOOTMENU (which I have no idea wtf it is) is completely removed
      from the list, because it is already in the header.
      7069502a
    • Antoine Beaupré's avatar
      use font-family from Medium to use system fonts · ac8d7b50
      Antoine Beaupré authored
      the point here is that All Fonts Are Beautiful, or in other words, there
      are fine system fonts available that will render instantly (without
      download) and provide a good enough typographic experience
      
      this will mean the website may look a bit "normal", but then that's also
      a feature: it will integrate in the user's UI better.
      ac8d7b50
    • Antoine Beaupré's avatar
      031dbb88
    • Antoine Beaupré's avatar
      295c7d80
  15. 03 Nov, 2016 1 commit
    • Antoine Beaupré's avatar
      stop using web fonts · fa5c3158
      Antoine Beaupré authored
      they are the heaviest part of the website, and don't bring much functionality.
      
      they are still in the stylesheet so if someone has that font, things will look okay.
      
      otherwise we fallback to system fonts
      fa5c3158
  16. 19 Oct, 2016 1 commit
    • Antoine Beaupré's avatar
      remove buttons, not working in Firefox · 0fcd992d
      Antoine Beaupré authored
      somehow the <a> within a <button> is just wrong anyways, and it was
      breaking Firefox, which wasn't able to click it
      
      this forces us to remove the ellipsis stuff which makes the pager wrap
      on multiple lines on smaller screen, but otherwise we would lose the
      navigation arrows.
      
      reported by Robin Millette
      0fcd992d
  17. 20 May, 2016 2 commits