Browse Source

Fixed som links

bootstrap5
Øyvind Skaaden 2 years ago
parent
commit
6b4e8f7695
  1. 20
      _layouts/layouts/lecture.html
  2. 1
      assets/css/components/theme.css
  3. 8
      assets/css/home.css
  4. 4
      index.html

20
_layouts/layouts/lecture.html

@ -0,0 +1,20 @@
---
layout: default
---
<div class="jumbotron">
<div class="container">
<h1 class="no-anchor" data-toc-skip>{{ page.title }}</h1>
<p>{{ page.description }}</p>
<small>Forelesningsdato {{ page.date | date: "%d.%m.%Y" }}</small>
</div>
</div>
<div class="container" id="main">
<div class="row row-offcanvas row-offcanvas-right">
<div class="col-xs-12 col-sm-12 col-md-9">
{{ content }}
</div>
<div class="col-md-3 d-none d-md-block" id="sidebar">
<nav id="toc" data-toggle="toc" class="sticky-top" style="z-index:1"></nav>
</div>
</div>
</div>

1
assets/css/components/theme.css

@ -102,6 +102,7 @@ blockquote {
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {

8
assets/css/home.css

@ -27,7 +27,13 @@
min-height: calc(100vh - 47.75rem);
}
.home-link>a {
/*
.home-link a{
text-decoration: none;
}
*/
a.home-link:hover{
text-decoration: none;
}

4
index.html

@ -7,12 +7,12 @@ description: Personlig nettside for Øyvind Skaaden. Inneholder det meste av per
<div class="row">
{% for home in site.data.home %}
<div class="col-md-4">
<a href="{{ home.href }}">
<a class="home-link" href="{{ home.href }}">
<div class="icon">
<i class="fas {{ home.icon }}"></i>
</div>
<h3 class="no-anchor home-link">{{ home.title }}</h3>
</a>
<h3 class="no-anchor home-link"><a class="" href="{{ home.href }}">{{ home.title }}</a></h3>
<p>{{ home.description }}</p>
</div>
{% endfor %}

Loading…
Cancel
Save