Skip to content

Commit

Permalink
add alternate layout 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkarpov-ui committed Dec 8, 2023
1 parent 4d61fa0 commit 3ac76ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: front
show_full: true
title: Docs
---
# Kamaji
Expand Down
19 changes: 18 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,26 @@
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>

<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
<header class="page-header" role="banner">
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
{% if page.show_full %}
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
<a href="http://localhost/" class="btn">Try it out!</a>
{% endif %}
{% endif %}
</header>



<main id="content" class="main-content" role="main">

{% for page in site.pages %}
<a href={{ page.filename }}>{{ page.title }}</a>
{% endfor %}

<br>
{{ content }}

<footer class="site-footer">
Expand Down
42 changes: 0 additions & 42 deletions _layouts/front.html

This file was deleted.

0 comments on commit 3ac76ea

Please sign in to comment.