Skip to content

Commit

Permalink
Customize theme
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Sep 4, 2024
1 parent 68e0e79 commit 31cf502
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 12 deletions.
20 changes: 20 additions & 0 deletions shortbread-website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Shortbread website

The website is created using [Hugo](https://gohugo.io/).

## Theme

The theme is based on [Hextra](https://imfing.github.io/hextra/docs/).

## Development

```
hugo serve
```

Update theme:

```
git remote add hextra [email protected]:pka/hextra.git
git subtree pull --prefix=shortbread-website/themes/hextra hextra backport-debian --squash
```
69 changes: 69 additions & 0 deletions shortbread-website/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=League+Gothic&display=swap');

:root {
font-family: "Lato", sans-serif;
--primary-hue: 48deg;
--primary-saturation: 93%;
}

body {
background-color: rgb(255 248 219);
}

/* Title bar */
.nav-container-blur {
background-color: hsl(48deg 93% 45% / 1);
}
.nav-container .hx-font-extrabold {
font-family: "League Gothic", sans-serif;
font-size: 1.55em;
}

/* Menu hover background */
aside.sidebar-container .hover\:hx-bg-gray-100:hover {
background-color: hsl(48deg 93% 85% / 1);
}

/* background for "Edit this page" */
nav .hx-bg-white {
background-color: rgb(255 248 219);
--tw-shadow: none;
}

.content h1, h2, h3 {
font-family: "League Gothic", sans-serif;
letter-spacing: normal;
}

.content h1 {
font-size: 3.77em;
}
.content h2 {
font-size: 2.11em;
}
.content h3 {
font-size: 1.55em;
}

/* Table rows */
.content :where(table):not(:where(.hextra-code-block table, [class~="not-prose"], [class~="not-prose"] *)) tr:nth-child(2n) {
background-color: hsl(48deg 93% 39% / 0.05);
}

.example-images img {
display: initial;
width: 300px;
}

footer.hextra-footer.hx-bg-gray-100 {
background-color: hsl(48deg 93% 45% / 1);
}

/* Reduce footer height */
footer .hx-py-12 {
padding-top: 1rem;
padding-bottom: 1rem;
}
footer .hx-mt-6 {
margin-top: 0;
}
1 change: 0 additions & 1 deletion shortbread-website/content/_footer.md

This file was deleted.

7 changes: 6 additions & 1 deletion shortbread-website/content/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Shortbread Tiles
+++
title = "Shortbread Tiles"
toc = false
cascade.breadcrumbs = false
cascade.type = "docs"
+++

## About

Expand Down
3 changes: 1 addition & 2 deletions shortbread-website/content/copyright/_index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
+++
title = "Copyright & License"
toc = false
weight = 1
+++

# Copyright

We take the position that this schema is not creative enough to be a copyrightable
work.

Expand Down
9 changes: 5 additions & 4 deletions shortbread-website/content/imprint.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
---

# Imprint
+++
title = "Imprint"
toc = false
sidebar.exclude = true
+++

This web site is run by

Expand Down
2 changes: 1 addition & 1 deletion shortbread-website/content/publishing/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Publishing Shortbread Maps"
description = "Publishing maps with Shortbread vector tiles"
weight = 6
weight = 7
+++

## Required resources for Shortbread maps
Expand Down
2 changes: 1 addition & 1 deletion shortbread-website/content/schema/1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = "Vector Tile Schema 1.0"
linkTitle = "1.0"
description = "This page describes the layers of the Shortbread vector schema and their contents as of version 1.0"
#{{% toc /%}}
toc = true
+++


Expand Down
1 change: 0 additions & 1 deletion shortbread-website/content/schema/versioning.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
+++
draft= false
title = "Schema Versioning Policy"
linkTitle = "Versioning"
description = "This page describes the versioning policy of the Shortbread schema"
Expand Down
1 change: 0 additions & 1 deletion shortbread-website/content/styles/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title = "Map Styles"
description = "This page gives an overview about available open source maps styles for Shortbread vector tiles"
weight = 3
toc = false
+++

## Web mapping libraries
Expand Down
1 change: 1 addition & 0 deletions shortbread-website/i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copyright: "[Imprint](/imprint) | Map data by [OpenStreetMap contributors](https://www.openstreetmap.org/copyright) published under Open Database License"

0 comments on commit 31cf502

Please sign in to comment.