Git Product home page Git Product logo

Comments (7)

sylhare avatar sylhare commented on July 18, 2024

For that you can update the index.html to point to a new layout, right now it points to home which is: https://github.com/sylhare/Type-on-Strap/blob/master/_layouts/home.liquid

You can create another one in markdown or override it for your use case.

from type-on-strap.

jingpengw avatar jingpengw commented on July 18, 2024

thank you for the reply!

unfortunately, I do not have experience with web development and still have not figured it out!
could you please explain it a little bit more?

I created another file called "introduction.liquid" by copying the "home.liquid". I commented out the "blog/blog.liquid" line.

---
layout: default
---

<div class="home">
  <style scoped>
    {% assign image = site.header_feature_image | relative_url | split: '.' %}
    .call-out_img {
      background-image: url('{{ image | join: '.' }}');
    }
    {% if site.header_feature_image_responsive %}
      @media screen and (max-width: 768px) {
        .call-out_img {
          background-image: url('{{ image[0] | append: '-medium.' | append: image[1] | default: image}}');
        }
      }
      @media screen and (max-width: 576px) {
        .call-out_img {
          background-image: url('{{ image[0] | append: '-small.' | append: image[1] }}');
        }
      }
    {% endif %}
  </style>
  <div id="main" class="call-out call-out_img">
    <h1>
      {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}}
    </h1>
  </div>

  {%- comment -%}
    {% include blog/blog.liquid %}
  {%- endcomment -%}
  {%- comment -%} {% include gallery.html %} {%- endcomment -%}
</div>>

from type-on-strap.

sylhare avatar sylhare commented on July 18, 2024

Yep as long as it works for you 👍 (make sure that the index.html has introduction, your new file, as layout).
Closing for now.

from type-on-strap.

jingpengw avatar jingpengw commented on July 18, 2024

the problem is that the home page is empty, and I still don't know how to add content.

from type-on-strap.

sylhare avatar sylhare commented on July 18, 2024

Do you have a link to the Repo?

from type-on-strap.

jingpengw avatar jingpengw commented on July 18, 2024

from type-on-strap.

sylhare avatar sylhare commented on July 18, 2024

So from what I see:

  • There are no introduction.liquid (you can use .md as well) file in the _layout folder, (you can also use the page layout instead of the default layout as base at the top).
  • You did not update index.html to put introduction which is your new layout without the blogging part.

Once you do that you can put all the content you want in the introduction layout where the include blog part was.

from type-on-strap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.