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

Delete copyright icon in footer #243

Open
gmathieux opened this issue Dec 16, 2017 · 3 comments
Open

Delete copyright icon in footer #243

gmathieux opened this issue Dec 16, 2017 · 3 comments
Labels
enhancement New feature or request workaround A workaround has been shared
Milestone

Comments

@gmathieux
Copy link

Hi, first of all many thanks for creating this awesome theme. I need some help... how can I remove the copyright icon?

@kakawait
Copy link
Owner

kakawait commented Jan 3, 2018

@gmathieux Currently is not possible using config.toml, only workaround is to override the footer.hml

© {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. {{ i18n "footer.all_rights_reserved" }}

But I'm aware that is not a good solution. I may improve config.toml to be able to control the entire copyright section and not just the name

@kakawait kakawait added the enhancement New feature or request label Jan 3, 2018
@kakawait kakawait modified the milestones: 0.4.4-BETA, 0.4.5-BETA Jan 3, 2018
@nodoambiental
Copy link

nodoambiental commented Jan 28, 2019

As @gmathieux, I say many thanks for this Hugo theme.
I search for this issue, and after some essays, I did this in footer.html:
"



{{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }} {{ i18n "footer.Site.Author.name" }}

" Thus, delete copy; , the point after the 3 ends, and replace footer.all_rights_reserved by footer.Site.Author.name

I recognize this is not a good solution, but works by the moment.

@kakawait kakawait added the workaround A workaround has been shared label Jul 3, 2019
@kakawait kakawait modified the milestones: 0.4.5-BETA, 1.0.0 Jul 3, 2019
@SteadyGiant
Copy link

(For anyone out there who finds this thread:)

I use a Creative Commons license, so I changed "All Rights Reserved." to "Some Rights Reserved." by replacing the contents of layouts/partials/footer.html with this:

<footer id="footer" class="main-content-wrap">
  <span class="copyrights">
    &copy; {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. Some Rights Reserved.
  </span>
</footer>

Similarly, if you want to remove "All Rights Reserved." entirely, and remove the period following the author name, use this:

<footer id="footer" class="main-content-wrap">
  <span class="copyrights">
    &copy; {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}
  </span>
</footer>

Very simple fixes, but I'm writing them out just in case anyone isn't super familiar with HTML and just wants a quick fix without breaking things or spending time tinkering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workaround A workaround has been shared
Projects
None yet
Development

No branches or pull requests

3 participants