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 license with a widget in Hextra #20

Closed
MaxwellJay256 opened this issue Dec 3, 2023 · 6 comments · Fixed by #33 or #91
Closed

Add license with a widget in Hextra #20

MaxwellJay256 opened this issue Dec 3, 2023 · 6 comments · Fixed by #33 or #91
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@MaxwellJay256
Copy link
Member

I notice that there is a widget that can display a string in Hextra theme.
Like this:

image

This is a site using Hextra I found on https://imfing.github.io/hextra/showcase/.

Can we add the CC-BY-NC-SA 4.0 license with this feature?

@MaxwellJay256 MaxwellJay256 added the enhancement New feature or request label Dec 3, 2023
@kowyo
Copy link
Member

kowyo commented Dec 22, 2023

Yes you can if you modify the file. Also you might need to refer to the example here.

@kowyo kowyo assigned kowyo and MaxwellJay256 and unassigned kowyo Dec 22, 2023
@MaxwellJay256 MaxwellJay256 linked a pull request Jan 1, 2024 that will close this issue
@kowyo kowyo closed this as completed in #33 Jan 1, 2024
@kowyo kowyo reopened this Apr 8, 2024
@kowyo
Copy link
Member

kowyo commented Apr 8, 2024

Licence 应该添加到每个仓库以及每个页面的页脚:https://github.com/santisoler/cc-licenses/blob/main/LICENSE-CC-BY-NC-SA

@kowyo kowyo added documentation Improvements or additions to documentation good first issue Good for newcomers and removed enhancement New feature or request labels Apr 9, 2024
@longlin10086 longlin10086 linked a pull request May 12, 2024 that will close this issue
4 tasks
@kowyo
Copy link
Member

kowyo commented May 24, 2024

Here is an update of #20 and #91:

I could append the text below to implement this in ‘sponsor.txt’, to have a similar effect with hugo-theme-stack and ruanyifeng's blog, let me know which is better or could we make some enhancement based on this, @longlin10086 and other maintainers.

© [署名-非商业性使用-相同方式共享 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)

{{< callout type="" >}}
  © 版权声明:[署名-非商业性使用-相同方式共享 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
{{< /callout >}}

{{< callout type="info" >}}
  © 版权声明:[署名-非商业性使用-相同方式共享 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
{{< /callout >}}

Effect:

Screenshot 2024-05-24 at 1 22 03 PM

@MaxwellJay256
Copy link
Member Author

MaxwellJay256 commented May 24, 2024

The first and second one look good.

@longlin10086
Copy link
Member

would like to choose the 2nd one.

@kowyo
Copy link
Member

kowyo commented May 24, 2024

Will close the issue if 4019e10 looks good to you. Otherwise we can still have some work on it.

@kowyo kowyo closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants