GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 12-Jul-2024 00:23:28 JST Aral Balkan Aral Balkan

    Just added a table of contents to the (still woefully incomplete) Reference section of the Kitten web site.

    https://kitten.small-web.org/reference/

    If you’re using Markdown pages in your Kitten site, you can add an auto-generated TOC by adding `[toc]` to any page.

    View source: https://codeberg.org/kitten/site/commit/7f2e24ecf6fd5489ca6c3e2ddb5cc37688112118#diff-929a5d133b4ff18c50a5cc8e228c032d10d2547e)

    Also, added a lovely skip to content link that appears on focus.

    Technique courtesy https://www.makethingsaccessible.com/guides/creating-a-skip-to-content-link/

    View source: https://codeberg.org/kitten/site/commit/7f2e24ecf6fd5489ca6c3e2ddb5cc37688112118#diff-91fe14fa9ef931a1fd9edd8a23cef088bda83ded

    #Kitten #SmallWeb #Reference #TOC #Markdown #a11y

    In conversation about a year ago from mastodon.ar.al permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: codeberg.org
      Add table of contents to reference page and skip to content link to site · 7f2e24ecf6
      from kitten
      site - The Kitten web site at https://kitten.small-web.org

    2. Domain not in remote thumbnail source whitelist: codeberg.org
      Add table of contents to reference page and skip to content link to site · 7f2e24ecf6
      from kitten
      site - The Kitten web site at https://kitten.small-web.org
    • Embed this notice
      Christian Tietze (ctietze@mastodon.social)'s status on Friday, 12-Jul-2024 00:31:55 JST Christian Tietze Christian Tietze
      in reply to

      @aral Not complaining, just wondering: why [toc] not {toc}? I believe I've seen the latter but not the former

      In conversation about a year ago permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 12-Jul-2024 00:31:55 JST Aral Balkan Aral Balkan
      in reply to
      • Christian Tietze

      @ctietze It’s the default of the Markdown.it plugin I’m using in Kitten (https://github.com/nagaozen/markdown-it-toc-done-right?tab=readme-ov-file#markdown-it-toc-done-right)

      Also fits with some of the other additions I made (e.g,. [code] as alias for backticks when adding markdown directly to JS template strings) so it’s internally consistent :)

      In conversation about a year ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        http://Markdown.it/
      2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - nagaozen/markdown-it-toc-done-right: A table of contents (TOC) plugin for Markdown-it with focus on semantic and security. Made to work gracefully with markdown-it-anchor.
        A table of contents (TOC) plugin for Markdown-it with focus on semantic and security. Made to work gracefully with markdown-it-anchor. - nagaozen/markdown-it-toc-done-right

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.