Skip to content

Commit

Permalink
Add id to headings and sidebar to main page
Browse files Browse the repository at this point in the history
  • Loading branch information
IFcoltransG committed Aug 15, 2023
1 parent 5ad8b0e commit 4d78f1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
---

<div>
<h1><span id="page-name">Page</span> not found. 🙈</h1>
<h1 id="title"><span id="page-name">Page</span> not found. 🙈</h1>
<p>This page doesn't exist yet. <a href="{{ site.baseurl }}/">Return home</a> to get a fresh start.</p>
<div id="create-link-wrapper" hidden>Or <a id="create-link" href="{{ site.new_file_base }}">create this page.</a></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/note.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<article>
<div>
<h1>{{ page.title }}</h1>
<h1 id="title">{{ page.title }}</h1>
<!-- <time datetime="{{ page.last_modified_at | date_to_xmlschema }}">{% if page.type != 'pages' %}
Last updated on {{ page.last_modified_at | date: "%B %-d, %Y" }}
{% endif %}
Expand All @@ -28,7 +28,7 @@ <h1>{{ page.title }}</h1>
<p><a href="{{ site.baseurl }}/sitemap#random">Random page</a></p>
<p><a href="{{ site.baseurl }}/">Home</a></p>
<p><a href="{{ site.baseurl }}/sitemap">Page list</a></p>
<h3 style="margin-bottom: 1em">Pages that link here</h3>
<h3 id="links-here" style="margin-bottom: 1em">Pages that link here</h3>
{% if page.backlinks.size > 0 %}
<div style="display: grid; grid-gap: 1em; grid-template-columns: repeat(1fr);">
{% for backlink in page.backlinks %}
Expand Down
2 changes: 1 addition & 1 deletion _pages/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: page
layout: note
title: Main Page
id: main-page
permalink: /
Expand Down

0 comments on commit 4d78f1e

Please sign in to comment.