Skip to content

Commit

Permalink
less indexing complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMartel committed Jul 25, 2024
1 parent 027ea53 commit 8b8e713
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build_page(page_meta):
def build_index(page_metas):
page_metas = filter(lambda page_meta: not page_meta[1].get("ishome", False), page_metas)
page_metas = sorted(page_metas, key = lambda page_meta: page_meta[1].get("date", [0,0,0]), reverse=True)
index = '<ul>\n<h1>☰</h1>\n<div id="navhide"><li><a href="/">home</a></li>'
index = '<ul>\n<h2>☰</h2>\n<div id="navhide"><li><a href="/">home</a></li>'
for page, meta in page_metas:
page_dir = path.dirname(page)
page_name = path.basename(page_dir)
Expand Down
8 changes: 5 additions & 3 deletions src/main_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" href="/favicon.ico"/>
<title>[[TITLE]]</title>
<meta http-equiv='content-language' content='en'>
<meta name="description" content="[[DESCRIPTION]]">
<meta property="og:title" content="[[TITLE]]"/>
<meta property="og:description" content="[[DESCRIPTION]]"/>
<meta property="article:published_time" content="[[DATE]]"/>
Expand All @@ -22,7 +24,7 @@
position: sticky;
top: 50px;
}
nav h1 {
nav h2 {
position: relative;
right: 40px;
visibility: hidden;
Expand All @@ -37,10 +39,10 @@
@media (max-width: 900px) {
nav { width: 15px; }
nav #navhide { visibility: hidden; }
nav h1 { visibility: visible; }
nav h2 { visibility: visible; }
nav:hover { width: inherit; }
nav:hover #navhide { visibility: visible; }
nav:hover h1 { visibility: hidden; }
nav:hover h2 { visibility: hidden; }
}
</style>
[[MATH]]
Expand Down

0 comments on commit 8b8e713

Please sign in to comment.