Skip to content

Commit

Permalink
Added separate layout for the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
Pigrenok committed Jul 24, 2024
1 parent c494e84 commit e5d17c6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions _includes/mainpage-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{site.title}}</title>
<meta name="description" content="{{site.description}}">
<link rel="stylesheet" href="{{site.url}}/assets/css/markdown-style.css">
<link rel="stylesheet" href="{{site.url}}/assets/css/custom-style.css">
<link rel="icon" href="{{site.url}}/favicon.ico" type="image/x-icon" />
</head>

<body class="markdown-body">
{% if site.data.siteBreadcrumbs.displaySiteBreadcrumbs == true%}
<div id="breadcrumbs">
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
<a href="/">{{site.title}}</a>
{% for crumb in crumbs offset: 1 %}
/ <a
href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{
crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a>
{% endfor %}
</div>
{% endif %}
<main>
5 changes: 5 additions & 0 deletions _layouts/mainpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% include mainpage-header.html %}
<article>
{{ content }}
</article>
{% include site-footer.html %}

0 comments on commit e5d17c6

Please sign in to comment.