[**中文教學**](/c/tutorials-tw/%2Fs%2Fhow-to-share-note-tw) # How to Publish a Note with Permalink You can **publish** your notes with **permalinks** and in **custom view modes** to your **profile page**. [Learn more about profile page](/s/all-about-profile-page) ## Permalinks You can now set the permalink for a note in the Sharing <i class="fa fa-share-alt fa-18"></i> menu. Your permalink follows this pattern: ``` https://hackmd.io/@<username>/<custom_permalink> ``` :::info :bulb: **Hint**: Remember to change your username in [:link: **settings**](https://hackmd.io/settings). ::: ![set permalink](https://hackmd.io/_uploads/BkKODDFPR.gif) **Permalinks can contain non-English characters, you can even use emojis.** :sunglasses: :::info :bulb: **Hint**: You can click on your profile picture in the top right corner, then set your desired username in the **Settings** menu! ::: :::warning :warning: **Note** The URLs for automatically generated notes will automatically redirect, so the random URLs you shared previously can still be used. When users access HackMD, they will see the latest permalink you have set. However, HackMD only records the latest set permalink for each note. Therefore, if you change the permalink or your username again, it will invalidate the previously shared permalinks! ::: ![emoji permalink](https://hackmd.io/_uploads/rkatYPYP0.gif) &nbsp; ## View Modes You can also choose the default view mode in which the note would be accessed. For example, if you choose <i class="fa fa-television fa-fw"></i> Slide mode, when people access the note it would automatically be shown in the slide mode. ![set view mode](https://hackmd.io/_uploads/ryDP5vFP0.gif) The default view mode chosen can be overwritten with URL switch (parameters) following the permalink. ### View Modes Explained | Mode | Note shows in | URL switch | |------|-------------|------------| |<i class="fa fa-pencil fa-fw" aria-hidden="true"></i> Edit mode | Your favorite real-time collaborative editor. | /edit | |<i class="fa fa-eye fa-fw" aria-hidden="true"></i> View mode | A clean, static page where view count adds up. | ?type=view | | <i class="fa fa-book fa-fw" aria-hidden="true"></i> Book mode | A "book" of links. [Learn more about book mode](/s/how-to-create-book). | ?type=book | | <i class="fa fa-television fa-fw" aria-hidden="true"></i> Slide mode | A slide deck. [Learn how to create a slide](/s/how-to-create-slide-deck). | ?type=slide | ## Publishing a Note Publish the note by clicking the Publish button at the bottom of the Sharing <i class="fa fa-share-alt fa-18"></i> menu. Published notes can be indexed by search engines, and everyone on the web would be able to find and read them. :::info :bulb: **Hint**: **This only applies to newly published notes.** If you had "published" old notes with the old <i class="fa fa-share-square-o fa-18" ></i> icon, the search engine behavior described above will not happen. ::: Published notes would have their **Read** permissions set to world-readable. ![Publish a note](https://hackmd.io/_uploads/S1GlCDFv0.gif) You can always unpublished a note by clicking on the same button - no one can access this note anymore, except your invited collaborators. :::warning :warning: **Note:** The internet **remembers**, so hit the big blue button with care. ::: :::info :bulb: **Hint**: You can always set a permalink for each note for easier sharing, whether it is published or not. :::