Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding description (or other YAML metada) in the backlinks data #58

Open
yazae opened this issue Jun 16, 2024 · 0 comments
Open

Adding description (or other YAML metada) in the backlinks data #58

yazae opened this issue Jun 16, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@yazae
Copy link

yazae commented Jun 16, 2024

Hi,

Thanks for this plugin, it really is way better than the hack I used previously. And I can do embeded files now o/

The only caveat I have with your plugin is with backlinks : there is not enough informations gathered by the plugin to do a proper backlink support. For example, I would like to add the content of my description tag to have a sort of preview of the content of the note backlinked :

{%- if backlinks.length > 0 -%}
  <ul class="backlink">
    {%- for link in backlinks -%}
      <li class="backlink-note">
        <a href="{{- link.url -}}" {%- if link.lang != nil -%} lang="{{- link.lang -}}"{% endif %}>
          <span class="larger">
            {{- link.title -}}
          </span>
            {{- link.description | markdownify -}}
        </a>
      </li>
    {%- endfor -%}
  </ul>
{%- else -%}

We could also imagine a use for the first x <p> of the note (to do a real preview of the note), a use for the tags YAML tag, a use for the creation date

For now, may I ask for description and date who are some of the more importants I think ? Maybe lang too but I know it’s not common. Maybe "just" a way to add optional tags to be added in the config ?
I don’t really know javascript so I’m a bit lost on how I could do the changes myself 🤔

Only if you find it useful ofc but for me it will greatly improve the efficiency of backlinks in a digital garden :)

Thanks again !

@carbontwelve carbontwelve added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 25, 2024
@carbontwelve carbontwelve added this to the v1.1.0 milestone Nov 28, 2024
@carbontwelve carbontwelve self-assigned this Nov 29, 2024
@carbontwelve carbontwelve modified the milestones: v1.1.0, v1.1.1 Dec 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants