freeStuffDev icon indicating copy to clipboard operation
freeStuffDev copied to clipboard

add links in tag in freestuffdev

Open ghost opened this issue 2 years ago • 6 comments

1. Issue

A general problem with freestuffdev is that it has no linked tags, which makes certain information and useful links difficult for any user to access. For example:

img-before: image

pros:

  • None.

cons:

  • It makes it difficult to search for new and old links.

2. Idea

We may have tags linked to facilitate certain searches. For example:

img-after: image

pros:

  • Makes it easy to search for new and old links.

cons:

  • None, It's just a conceptual idea to solve a problem.

ghost avatar Mar 27 '23 16:03 ghost

I can take it up if no one else is working on it.

Ch-Siva-Naga-Raju avatar Apr 01 '23 11:04 Ch-Siva-Naga-Raju

Hi Ch-Siva-Naga-Raju.

I would like to help, my general idea has to do with this code snippet:

  • https://github.com/hilmanski/freeStuffDev/blob/main/layouts/partials/stuff-cards.html,
  • https://gohugo.io/functions/delimit/

concept: anchors 1

<p class="mt-20">Tag: 
<a href=""> markdown, </a>
<a> awesome-list</a>
</p>

concept: anchors 2

<ul class="tags mb-10">
<li><a href="/tags/api">api</a></li>
<li><a href="/tags/database">database</a></li>
</ul>

concept: url

  • /tags/awesome-list
  • https://freestuff.dev/tags/awesome-list/
  • https://freestuff.dev/tags/{tag-name}/

before

<p class="mt-20"> 
<em>
Tag: {{delimit .Params.tags ", "}}
</em>
</p>
</div>
</div>

after 1

<p class="mt-20"> 
{{ range (first 20 Params.tags.ByCount) }}
 <em><a title="{{delimit .Params.tags ", "}}" href="/tags/{{ .Name | urlize }}"> Tag: {{delimit .Params.tags ", "}} </a></em>
{{ end }}
</p>
</div>
</div>

after 2

<p> 
<a title="{{delimit .Params.tags ", "}}" href="/tags/{{ .Name | urlize }}" class="mt-20">
Tag: {{delimit .Params.tags ", "}}
</a>
</p>
</div>
</div>

after 3

<p class="mt-20"> 
{{ range $i, $e := delimit .Params.tags ", "  -}}
    {{- if $i -}}, {{ end -}}
    <em> <a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>{{ $e | humanize }}</a> </em>
{{- end -}}
</p>
</div>
</div>

ghost avatar Apr 01 '23 16:04 ghost

Hi Ch-Siva-Naga-Raju.

I would like to help, my general idea has to do with this code snippet:

  • https://github.com/hilmanski/freeStuffDev/blob/main/layouts/partials/stuff-cards.html,
  • https://gohugo.io/functions/delimit/

concept: anchors 1

<p class="mt-20">Tag: 
<a href=""> markdown, </a>
<a> awesome-list</a>
</p>

concept: anchors 2

<ul class="tags mb-10">
<li><a href="/tags/api">api</a></li>
<li><a href="/tags/database">database</a></li>
</ul>

concept: url

  • /tags/awesome-list
  • https://freestuff.dev/tags/awesome-list/
  • https://freestuff.dev/tags/{tag-name}/

before

<p class="mt-20"> 
<em>
Tag: {{delimit .Params.tags ", "}}
</em>
</p>
</div>
</div>

after 1

<p class="mt-20"> 
{{ range (first 20 Params.tags.ByCount) }}
 <em><a title="{{delimit .Params.tags ", "}}" href="/tags/{{ .Name | urlize }}"> Tag: {{delimit .Params.tags ", "}} </a></em>
{{ end }}
</p>
</div>
</div>

after 2

<p> 
<a title="{{delimit .Params.tags ", "}}" href="/tags/{{ .Name | urlize }}" class="mt-20">
Tag: {{delimit .Params.tags ", "}}
</a>
</p>
</div>
</div>

after 3

<p class="mt-20"> 
{{ range $i, $e := delimit .Params.tags ", "  -}}
    {{- if $i -}}, {{ end -}}
    <em> <a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>{{ $e | humanize }}</a> </em>
{{- end -}}
</p>
</div>
</div>

Thanks a lot.

I Thought along similar lines for the hyperlinks.

Will raise a PR soon.

Ch-Siva-Naga-Raju avatar Apr 02 '23 06:04 Ch-Siva-Naga-Raju

Never faced an issue while cloning a git project like this...

PS F:\Coding Practice\Open Source> git clone https://github.com/hilmanski/freeStuffDev.git Cloning into 'freeStuffDev'... remote: Enumerating objects: 11236, done. Receiving objects: 100% (11236/11236), 3.45 MiB | 1.32 MiB/s, done.6 eceiving objects: 99% (11124/11236), 3.26 MiB | 1.29 MiB/s

Resolving deltas: 100% (6819/6819), done. error: unable to create file content/stuff/feathery-|-forms-as-flexible-as-code.md: Invalid argument error: unable to create file content/stuff/free-website-speed-test-|-debugbear.md: Invalid argument error: unable to create file content/stuff/reactive-resume-|-a-free-and-open-source-resume-builder.md: Invalid argument Updating files: 100% (894/894), done. fatal: unable to checkout working tree

One solution provided in my search to fix it is mentioned here.

The above solution didn't work Will check for other ways to resolve the issue. But in case you faced this issue and got a solution that worked for you, please do let me know.

Ch-Siva-Naga-Raju avatar Apr 02 '23 13:04 Ch-Siva-Naga-Raju

Hi Ch-Siva-Naga-Raju.

The above solution didn't work Will check for other ways to resolve the issue. But in case you faced this issue and got a solution that worked for you, please do let me know.

Downloads the zip file and uploads the modified file through the web client. For example, image

ghost avatar Apr 03 '23 23:04 ghost

hi can i work on this issue

harshitkandpal avatar Jul 28 '23 22:07 harshitkandpal