-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed TOC from website and improve cover photo placement
- Loading branch information
Showing
4 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
</ul> | ||
|
||
</footer> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,13 @@ | |
<script type="application/ld+json"> | ||
{"@context":"https://schema.org","@type":"WebSite","description":"LM-class is an education resource for contemporary language modeling, broadly construed.","headline":"LM-class","name":"LM-class","url":"https://lm-class.org/"}</script> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
|
||
<!-- add after bootstrap.min.js or bootstrap.bundle.min.js --> | ||
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.js"></script> | ||
|
||
|
||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
|
||
|
@@ -48,6 +53,33 @@ | |
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}"> | ||
|
||
|
||
<style> | ||
nav[data-toggle="toc"] { | ||
top: 42px; | ||
} | ||
|
||
/* small screens */ | ||
@media (max-width: 768px) { | ||
/* override stickyness so that the navigation does not follow scrolling */ | ||
nav[data-toggle="toc"] { | ||
margin-bottom: 42px; | ||
position: static; | ||
} | ||
|
||
/* PICK ONE */ | ||
/* don't expand nested items, which pushes down the rest of the page when navigating */ | ||
nav[data-toggle="toc"] .nav .active .nav { | ||
display: none; | ||
} | ||
/* alternatively, if you *do* want the second-level navigation to be shown (as seen on this page on mobile), use this */ | ||
/* | ||
nav[data-toggle='toc'] .nav .nav { | ||
display: block; | ||
} | ||
*/ | ||
} | ||
</style> | ||
|
||
{%- feed_meta -%} | ||
{%- if jekyll.environment == 'production' and site.google_analytics -%} | ||
{%- include google-analytics.html -%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,31 +4,18 @@ | |
{%- include head.html -%} | ||
|
||
<body data-bs-spy="scroll" data-bs-target="#toc"> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script> | ||
|
||
|
||
<!-- add after bootstrap.min.js or bootstrap.bundle.min.js --> | ||
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.js"></script> | ||
|
||
|
||
|
||
{%- include header.html -%} | ||
|
||
<main class="page-content" aria-label="Content"> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<!-- sidebar, which will move to the top on a small screen --> | ||
<div class="col-sm-3"> | ||
<nav id="toc" data-toggle="toc" class="sticky-top"></nav> | ||
</div> | ||
|
||
<div class="col-sm-8"> | ||
<!-- <div class="row"> --> | ||
<!-- <div class="col-lg col-sm"> --> | ||
{{ content }} | ||
</div> | ||
</div> | ||
<!-- </div> --> | ||
<!-- </div> --> | ||
</div> | ||
</main> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters