Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add links in tag in freestuffdev #904

Open
ghost opened this issue Mar 27, 2023 · 6 comments
Open

add links in tag in freestuffdev #904

ghost opened this issue Mar 27, 2023 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2023

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.
@Ch-Siva-Naga-Raju
Copy link

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

@ghost
Copy link

ghost commented Apr 1, 2023

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>

@Ch-Siva-Naga-Raju
Copy link

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
Copy link

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.

@ghost
Copy link

ghost commented Apr 3, 2023

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

@harshitkandpal
Copy link

hi can i work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants