Skip to content

Jekyll headings removed #840

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

Closed
claytondukes opened this issue Sep 3, 2019 · 1 comment
Closed

Jekyll headings removed #840

claytondukes opened this issue Sep 3, 2019 · 1 comment

Comments

@claytondukes
Copy link

Is there a way to ignore the top section of Jekyll-based files?

e.g.:

---
layout: blog
title: foo
subtitle: foo
description: bar baz
redirect_from:
 - /articles
---
<section class="foo" data-bg-video="yadda" id="header6">

when I run tidy -mib -utf8 "$file" it removes the top portion.

@balthisar
Copy link
Member

There's not a way to do this with Tidy directly, but you should be able to set up a simple pipe with sed to capture the header, process the html file, and re-apply the header.

I'll close this, but if you want to create a new issue as a feature request, we may be able to entertain it.

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