# Obsidian Publish resources

**URL:** <https://forum.obsidian.md/t/obsidian-publish-resources/74582>\
**Category:** Themes & CSS snippets\
**Tags:** custom-css, ui-ux, publish\
**Created:** [January 8, 2024, 11:08pm UTC](https://forum.obsidian.md/t/obsidian-publish-resources/74582 "2024-01-08T23:08:03Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Sigrunixia](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sigrunixia/32/52395_2.png) [@Sigrunixia](https://forum.obsidian.md/u/Sigrunixia)\
**Post date:** [June 21, 2024, 6:22pm UTC](https://forum.obsidian.md/t/obsidian-publish-resources/74582/22 "2024-06-21T18:22:27Z")

</div>

## Show frontmatter in Publish

These users have posted ways to use publish.js to show your frontmatter

> [@Render file metadata in Publish](https://forum.obsidian.md/t/render-file-metadata-in-publish/83528):
>
> What I’m trying to do I have files that represent references to external resources. I use tags and url metadata fields. In the app they look great because the url is visible and clickable. But on Publish they don’t. I would like the url at least to be visible. And I would rather keep the information in metadata since the file content might be a summary of the content. Things I have tried I use publish on a custom domain so having a publish.js to achieve this is an option. I see that there is …

> [@Show / Support properties of a note in Obsidian Publish](https://forum.obsidian.md/t/show-properties-of-a-note-in-the-published-pages/68164/6):
>
> I completely agree! For your reference, here is my workaround. publish.js let id; function insertMetaDates() { const frontmatter = app.site.cache.cache[app.currentFilepath].frontmatter; if (!frontmatter) { return; } const created = frontmatter["created"]?.replaceAll("-", "/"); const updated = frontmatter["updated"]?.replaceAll("-", "/"); if (!created && !updated) { return; } const frontmatterEl = document.querySelector(".frontmatter"); if (!frontmatterEl) { re…

> [@Show / Support properties of a note in Obsidian Publish](https://forum.obsidian.md/t/show-properties-of-a-note-in-the-published-pages/68164/34):
>
> Based on @tadashi-aikawa 's solution, I expanded the publish.js code to accommodate more detailed CSS formatting through publish.css and allow more granular selection of properties shown. In the example below I included Aliases, Tags and one string-property (“Type”) - other properties can be added by copy-pasting the Type sections. The CSS file definitely has to be modified to match each theme but hopefully the code is clear enough. Note: as far as I can tell, it doesn’t work with sliding pane…

---

_[View the full topic](https://forum.obsidian.md/t/obsidian-publish-resources/74582)._
