Skip to content

Commit

Permalink
fix(calendar): load font for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 20, 2024
1 parent 3dacf78 commit 517137e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions assets/scss/custom/plugins/icons/_google-material.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Google Material Icon Font via
// https://github.com/marella/material-symbols/tree/main/material-symbols

@font-face {
font-family: 'Material Symbols Outlined';
font-weight: 400 700;
font-display: block;
font-style: normal;
src: local('Material Icons'), local('MaterialIcons-Outlined'),
url('/docs/fonts/material-symbols-outlined.woff2') format('woff2'), /* Super Modern Browsers */
// url('../docs/fonts/material-symbols-outlined.woff') format('woff'); /* Modern Browsers */
}
1 change: 0 additions & 1 deletion content/events.de.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Events"
url: "events"
---

<script type='importmap'>
Expand Down
3 changes: 3 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ timeout = "120s"

disableKinds = ['taxonomy', 'term']

[outputs]
section = ["HTML", "RSS", "Calendar"]

[module]
replacements = "github.com/colinwilson/lotusdocs -> lotusdocs"
[[module.imports]]
Expand Down
4 changes: 2 additions & 2 deletions layouts/events/list.ics
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ CATEGORIES:{{ .Params.category }}
SEQUENCE:0
CLASS:PUBLIC
SUMMARY:{{ .Title }}
{{ $description := .Content | plainify }}
{{ $description := replace $description "\n" "=0D=0A" }}
{{- $description := .Content | plainify -}}
{{- $description := replace $description "\n" "=0D=0A" -}}
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:{{ $description }}
UID:{{.Params.start}}@berlin.freifunk.net
DTSTART;TZID=Europe/Berlin;VALUE=DATE-TIME:{{dateFormat "20060102T150405" .Params.start}}
Expand Down

0 comments on commit 517137e

Please sign in to comment.