diff options
| -rw-r--r-- | templates/base.html | 10 | ||||
| -rw-r--r-- | templates/index.html | 49 |
2 files changed, 31 insertions, 28 deletions
diff --git a/templates/base.html b/templates/base.html index ab2bff4..183ff1e 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -18,9 +18,11 @@ | |||
| 18 | pre { background: #f5f5f5 !important; text-wrap: wrap; padding: 0.5em; } | 18 | pre { background: #f5f5f5 !important; text-wrap: wrap; padding: 0.5em; } |
| 19 | code { background: #f5f5f5; } | 19 | code { background: #f5f5f5; } |
| 20 | table { width: 100%; } | 20 | table { width: 100%; } |
| 21 | .two-columns { display: flex; gap: 5em; } | ||
| 21 | @media only screen and (max-width: 720px) { | 22 | @media only screen and (max-width: 720px) { |
| 22 | body { display: block; } | 23 | body { display: block; } |
| 23 | main { margin: 1em 0; } | 24 | main { margin: 1em 0; } |
| 25 | .two-columns { display: block; } | ||
| 24 | .hide-on-mobile { display: none; } | 26 | .hide-on-mobile { display: none; } |
| 25 | } | 27 | } |
| 26 | /* Fixes embeds going to center. */ | 28 | /* Fixes embeds going to center. */ |
| @@ -37,12 +39,12 @@ | |||
| 37 | <strong>About</strong> | 39 | <strong>About</strong> |
| 38 | <ul> | 40 | <ul> |
| 39 | <li><a href="/">Home</a></li> | 41 | <li><a href="/">Home</a></li> |
| 40 | <li><a href="/projects.html">Recent projects</a></li> | 42 | <li><a href="/projects.html">Recent Projects</a></li> |
| 41 | <li><a href="https://github.com/mitjafelicijan" target="_blank">Code on GitHub</a></li> | 43 | <li><a href="https://github.com/mitjafelicijan" target="_blank">Code on GitHub</a></li> |
| 42 | <li><a href="https://github.com/mitjafelicijan/probe" target="_blank">Probe repository</a></li> | 44 | <li><a href="https://github.com/mitjafelicijan/probe" target="_blank">Probe repository</a></li> |
| 43 | <li><a href="https://github.com/mitjafelicijan/dotfiles" target="_blank">My dotfiles</a></li> | 45 | <li class="hide-on-mobile"><a href="https://github.com/mitjafelicijan/dotfiles" target="_blank">My dotfiles</a></li> |
| 44 | <li><a href="/curriculum-vitae.html">CV</a></li> | 46 | <li><a href="/curriculum-vitae.html">Curriculum Vitae</a></li> |
| 45 | <li><a href="/feed.xml">RSS</a></li> | 47 | <li class="hide-on-mobile"><a href="/feed.xml">RSS Feed</a></li> |
| 46 | </ul> | 48 | </ul> |
| 47 | </aside> | 49 | </aside> |
| 48 | 50 | ||
diff --git a/templates/index.html b/templates/index.html index 28aa47e..ef31728 100644 --- a/templates/index.html +++ b/templates/index.html | |||
| @@ -14,32 +14,33 @@ | |||
| 14 | </div> | 14 | </div> |
| 15 | </div> | 15 | </div> |
| 16 | 16 | ||
| 17 | <div> | 17 | <section class="two-columns"> |
| 18 | <h2>More long form, ramblings etc</h2> | 18 | <div> |
| 19 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="More long form, ramblings etc"> | 19 | <h2>Notes?! Maybe useful</h2> |
| 20 | <meta itemprop="name" content="More long form, ramblings etc"> | 20 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes?! Maybe useful"> |
| 21 | {{ range .Pages }} | 21 | <meta itemprop="name" content="Notes?! Maybe useful"> |
| 22 | {{ if and (eq .Type "post") (not .Draft) }} | 22 | {{ range .Pages }} |
| 23 | <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | 23 | {{ if and (eq .Type "note") (not .Draft) }} |
| 24 | <li> | ||
| 25 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} | ||
| 26 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> | ||
| 27 | </li> | ||
| 28 | {{ end }} | ||
| 24 | {{ end }} | 29 | {{ end }} |
| 25 | {{ end }} | 30 | </ul> |
| 26 | </ul> | 31 | </div> |
| 27 | </div> | 32 | <div> |
| 28 | 33 | <h2>More long form, ramblings etc</h2> | |
| 29 | <div> | 34 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="More long form, ramblings etc"> |
| 30 | <h2>Notes?! Maybe useful</h2> | 35 | <meta itemprop="name" content="More long form, ramblings etc"> |
| 31 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes?! Maybe useful"> | 36 | {{ range .Pages }} |
| 32 | <meta itemprop="name" content="Notes?! Maybe useful"> | 37 | {{ if and (eq .Type "post") (not .Draft) }} |
| 33 | {{ range .Pages }} | 38 | <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |
| 34 | {{ if and (eq .Type "note") (not .Draft) }} | 39 | {{ end }} |
| 35 | <li> | ||
| 36 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} | ||
| 37 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> | ||
| 38 | </li> | ||
| 39 | {{ end }} | 40 | {{ end }} |
| 40 | {{ end }} | 41 | </ul> |
| 41 | </ul> | 42 | </div> |
| 42 | </div> | 43 | </section> |
| 43 | 44 | ||
| 44 | <div> | 45 | <div> |
| 45 | <h2>Small side projects I work/worked on</h2> | 46 | <h2>Small side projects I work/worked on</h2> |
