Skip to content

Reduce page size by removing spaces #111

@niccokunzmann

Description

@niccokunzmann

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions