Skip to content

Reduce page size by removing spaces #111

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
niccokunzmann opened this issue Oct 26, 2017 · 1 comment
Closed

Reduce page size by removing spaces #111

niccokunzmann opened this issue Oct 26, 2017 · 1 comment

Comments

@niccokunzmann
Copy link
Member

Website-link: https://github.com/CoderDojoPotsdam/regex-tutorial/blob/master/_layouts/tutorial.html

Expected Behavior

I expect the code to be like this:

            <a id="page-de/12-04.html" class="step " href="../de/12-04.html"></a>
            <a id="page-de/13-01.html" class="step " href="../de/13-01.html"></a>

Actual Behavior

I see code like this with a lot of free space.

            <a id="page-de/12-04.html" class="step " href="../de/12-04.html"></a>
            
            
          
        
          
          

          
          

          
          

          
        
          
          

          
          

          
          

          
            
            
            
            <a id="page-de/13-01.html" class="step " href="../de/13-01.html"></a>

Actions to Reproduce

View the source code of this page:
https://coderdojopotsdam.github.io/regex-tutorial/de/02-02.html

Solution Description

Jekyll allows to remove white spaces at the front and back of holes:

{{ with spaces }}
{{- without spaces -}}

Please use this to reduce the number spaces.
When you do that, please keep the indentation intact - each element should be on a new line.

@niccokunzmann
Copy link
Member Author

Done.

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

No branches or pull requests

1 participant