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

How to remove "last update" and "improve this page" #222

Open
JoshuaKissel opened this issue Jul 27, 2022 · 1 comment
Open

How to remove "last update" and "improve this page" #222

JoshuaKissel opened this issue Jul 27, 2022 · 1 comment

Comments

@JoshuaKissel
Copy link

I'm looking to figure out how to remove the following from my footer:
image

In the md for my footer there is just a table with an image inside, not sure where the two links are coming from.

Thoughts?

Thanks!

@Raghav-Uppala
Copy link

Raghav-Uppala commented Oct 2, 2022

After searching pretty much every single file, I found the solution.
This is my own solution, I am not sure if this is the best solution. Nor the side effects of it. However, it wouldn't seem to have any side effects.


Go to the theme dir. Then go to layouts\partials\flex\body-aftercontent.html Remove: ``` {{ if not .Page.Lastmod.IsZero }}
{{T "last-update-on"}} {{ .Page.Lastmod.Format "02/01/2006" }}
{{end}}
{{ if .Site.Params.editURL }}
<div class="github-link">
  <a href="{{ .Site.Params.editURL }}{{ replace .File.Dir "\\" "/" }}{{ .File.LogicalName }}" target="blank"><i class="fa fa-code-fork"></i>
    {{T "Edit-this-page"}}</a>
</div>
{{end}}

![image](https://user-images.githubusercontent.com/77219734/193449647-89a59a5e-e679-4f4e-9a5d-a035921248f1.png)
The image is not loading, just copy the link.

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