Comments (7)
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.
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.
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.
the problem is that the home page is empty, and I still don't know how to add content.
from type-on-strap.
Do you have a link to the Repo?
from type-on-strap.
from type-on-strap.
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 thepage
layout instead of thedefault
layout as base at the top). - You did not update
index.html
to putintroduction
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)
- Workflow action - Getting Error: The process '/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/bundle' failed with exit code 16 HOT 3
- What is the best way to update the repo? HOT 2
- Build Ruby Gem: Some jobs were not successful HOT 2
- how should i localize HOT 4
- xml HOT 5
- How to set the first picture on the blog homepage without limiting the height HOT 5
- My class diagram cannot be displayed. HOT 3
- Update to fontawesome 6
- Switch from Google UA to Google GA4 for default analytics HOT 1
- multiple porfolios? HOT 1
- Placement of "blog" in navbar HOT 5
- Enhancing navbar HOT 2
- Multi-line header with HTML tags breaks `twitter:description` `meta` tag HOT 1
- Author name in posts without author-id and config.yml HOT 1
- Portfolio link not ceated correctly? HOT 2
- Auto darkmode does not work HOT 2
- Make the choosen color theme persistent
- Possibility to add legend with the image_aligner
- Comment portfolio on _config.yml "Search broken" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from type-on-strap.