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

Tags header generates twice #228

Open
broken-username opened this issue Jun 19, 2018 · 3 comments
Open

Tags header generates twice #228

broken-username opened this issue Jun 19, 2018 · 3 comments

Comments

@broken-username
Copy link

broken-username commented Jun 19, 2018

Hello,

I've noticed that, when I do an "op/do-publication", most everything works, but the "Tags" header generates twice (two Tags items at the top of the page, both leading to the same place). I haven't figured out why this is and would rather not have to manually remove that second Tag link every time. What am I doing wrong, if anything? It's been pretty frustrating trying to work around it.

@broken-username broken-username changed the title Tag generates twice Tags header generates twice Jun 19, 2018
@GnaneshKunal
Copy link

Have you come up with a solution?
I'm facing the same problem. Looks like the "Tags" header was hardcoded but I don't clearly understand why just that particular header is appearing twice.

@GnaneshKunal
Copy link

I solved it by commenting the hardcoded "Tags" header from the header file. The overall header generation is such that when a new folder is being created, it is given a separate header. So when we compile the project we get a "blog" folder and also a "tags" folder. So the header generation is such that we get both the dynamic and static headers. blog and tags headers are generated dynamically. And the remaining hardcoded(static) headers are appended to it.

Removing the Tags(hardcoded link):
The file is in op/themes/{YOUR_THEME}/templates/nav.mustache
The default theme is mdo.
My file was in /home/monster/.emacs.d/elpa/org-page-20170807.224/themes/mdo/templates/nav.mustache

          <ul>
          {{#nav-categories}}
          <li><a href="{{category-uri}}">{{category-name}}</a></li>
          {{/nav-categories}}
	  <!--
          <li><a href="/tags/">Tags</a></li>
	  -->
          <li><a href="/about/">About</a></li>
          <li><a href="{{github}}">GitHub</a></li>
          <li><a href="/rss.xml">RSS</a></li>
        </ul>

Now compile the project, you won't get multiple "Tags" header.

@yantar92
Copy link
Member

yantar92 commented Sep 1, 2023

I am unable to reproduce this.

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

No branches or pull requests

3 participants