diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..05fe773 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/fedidevs-hugo-theme"] + path = themes/fedidevs-hugo-theme + url = https://github.com/fediverse-devnet/fedidevs-hugo-theme.git diff --git a/hugo.toml b/hugo.toml index 12c01b9..6587d78 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,6 +5,7 @@ defaultContentLanguage = "en" disableKinds = [ "taxonomy" ] enableRobotsTXT = true enableGitInfo = true +theme = [ "fedidevs-hugo-theme" ] [services.rss] limit = 42 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index da3abda..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - -{{ block "title" . }} - -{{ if .Site.Params.briefTitle }} - {{ .Site.Params.briefTitle }}{{ with .Title }} | {{ . }}{{ end }} - - -{{ else }} - {{ .Site.Title }}{{ with .Title }} | {{ . }}{{ end }} - - -{{ end }} -{{ end }} - - - - - -{{ if .IsHome }} - -{{ else }} - -{{ end }} - -{{ with .Site.Author.name }} - -{{ end }} - -{{ with .Site.Title }} - - -{{ end }} - -{{ with .Description }} - - - - -{{ end }} - -{{ with .Site.Params.ImageUrl }} - - - -{{ end }} -{{ with .Site.Params.Twitter }} - - -{{ end }} - -{{ with .Params.date }} - -{{ end }} - -{{ with .Keywords }} - - -{{ end }} - -{{ block "linksscripts" . }} -{{ partial "linksscripts.html" . }} -{{ end }} - -{{ range .AlternativeOutputFormats -}} -{{ printf ` ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} - - - - -{{ block "header" . }} -
-
-{{ partial "headerlogo.html" . }} - -
-
-{{ end }} - -{{ block "nav-sections" . }} -{{ partial "nav-sections.html" . }} -{{ end }} - -{{ block "main" . }} -

Placeholder for main content.

-{{ end }} - -{{ block "footer" . }} -{{ partial "footer.html" . }} -{{ end }} - - diff --git a/layouts/_default/front.html b/layouts/_default/front.html deleted file mode 100644 index dffa283..0000000 --- a/layouts/_default/front.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} - -{{ if .Params.class }} -
-{{ else }} -
-{{ end }} - -{{ if eq .Params.display false }} -

Post unavailable.

-{{ else }} -
-
-{{ .Content }} -
-
-{{ end }} -
-{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index c593faf..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ define "main" }} - -{{ if .Params.class }} -
-{{ else }} -
-{{ end }} - -{{ partial "toc.html" . }} -{{ partial "breadcrumbs.html" . }} - -
- -{{ partial "title-et-al-main.html" . }} - -{{ if .Content }} -
-{{ .Content }} -
-{{ if .Pages }} -

Details

-{{ end }} -{{ end }} - -{{ $p := ( .Paginate ( where ( where .Pages "Params.display" "!=" "hide" ) "Params.display" "!=" "false" )) }} -{{ partial "range-ul.html" $p.Pages.ByWeight }} -{{ partial "paginate-buttons.html" $p }} -
-
-{{ end }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml deleted file mode 100644 index 0fa94fa..0000000 --- a/layouts/_default/rss.xml +++ /dev/null @@ -1,38 +0,0 @@ -{{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := $pctx.RegularPages -}} -{{- $limit := .Site.Config.Services.RSS.Limit -}} -{{- if ge $limit 1 -}} -{{- $pages = $pages | first $limit -}} -{{- end -}} -{{- printf "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} -{{ with .OutputFormats.Get "RSS" }} -{{ printf " " .Permalink .MediaType | safeHTML }} -{{ end }} -{{ range $pages }} - - {{ .Title }} - {{ .Permalink }} -{{ if .Date }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} -{{ end }} -{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} -{{ end }} - {{ .Permalink }} - {{ .Content | html }} - -{{ end }} - - diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index abf6ea7..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ define "main" }} - -{{ if .Params.class }} -
-{{ else }} -
-{{ end }} - -{{ partial "toc.html" . }} -{{ partial "breadcrumbs.html" . }} - -{{ if eq .Params.display false }} -

Post unavailable.

-{{ else }} -
- -{{ partial "title-et-al-main.html" . }} - -
-{{ .Content }} -
-
-{{ end }} -
-{{ end }} diff --git a/layouts/glossary/list.html b/layouts/glossary/list.html deleted file mode 100644 index 0dad989..0000000 --- a/layouts/glossary/list.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ define "main" }} - -{{ if .Params.class }} -
-{{ else }} -
-{{ end }} - -{{ partial "breadcrumbs.html" . }} - -
- -{{ partial "title-et-al-main.html" . }} - -{{ if .Content }} -
-{{ .Content }} -
-{{ end }} - -{{ $p := ( .Paginate ( where ( where ( .RegularPages ) "Params.display" "!=" "hide" ) "Params.display" "!=" "false" ) 100 ) }} -
-{{ range $p.Pages.ByTitle }} -
- {{ .Title }} -{{ if .Params.domain }} - ({{ .Params.domain }}) -{{ end }} -{{ if .Params.status }} - {{ .Params.status }} -{{ end }} -
-{{ if .Params.summary }} -
-{{ .Params.summary }} -
-{{ end }} -{{ end }} -
- - -{{ partial "paginate-buttons-forward-backward.html" $p }} - -
-
-{{ end }} diff --git a/layouts/glossary/single.html b/layouts/glossary/single.html deleted file mode 100644 index 93ff94e..0000000 --- a/layouts/glossary/single.html +++ /dev/null @@ -1,59 +0,0 @@ -{{ define "main" }} - -{{ if .Params.class }} -
-{{ else }} -
-{{ end }} - -{{ partial "breadcrumbs.html" . }} - -{{ if eq .Params.display false }} -

Post unavailable.

-{{ else }} -
- -{{ partial "status.html" . }} -{{ with .Params.date }} -

{{ dateFormat "2006-01-02" . }}

-{{ end }} -

Glossary term: {{ .Title }}

- -{{ with .Params.subtitle }} -

{{ . }}

-{{ end }} - -{{ with .Site.Params.Author.Name }} -

{{ . }}

-{{ end }} -

{{ .Page.Permalink }}

- -{{ partial "categories.html" . }} - -
-{{ .Content }} -
-{{ partial "discuss.html" . }} -{{ if or .Params.seealsoweb .Params.seealsoterm }} -
-

See also:

-
    -{{ $s := .Site }} -{{ range $tag := .Params.seealsoterm }} -{{ with $s.GetPage ( printf "/glossary/%s.md" ( $tag )) -}} - -
  • {{ .Title }}
  • -{{ else }} -
  • {{ $tag }}
  • -{{ end }} -{{ end }} -{{ range $name, $url := .Params.seealsoweb }} -
  • {{ $name }}
  • -{{ end }} -
-{{ end }} -
-
-{{ end }} -
-{{ end }} diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html deleted file mode 100644 index be8133c..0000000 --- a/layouts/partials/breadcrumbs.html +++ /dev/null @@ -1,16 +0,0 @@ - - -{{ define "breadcrumbnav" }} -{{ if .p1.Parent }} -{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} -{{ else if not .p1.IsHome }} -{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} -{{ end }} - - {{ if .p1.Params.breadcrumbtitle }}{{ .p1.Params.breadcrumbtitle }}{{ else }}{{ .p1.Title }}{{ end }} - -{{ end }} diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/linksscripts.html b/layouts/partials/linksscripts.html deleted file mode 100644 index b9ee609..0000000 --- a/layouts/partials/linksscripts.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/layouts/partials/nav-sections.html b/layouts/partials/nav-sections.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html deleted file mode 100644 index e03f127..0000000 --- a/layouts/partials/nav.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/layouts/partials/paginate-buttons-forward-backward.html b/layouts/partials/paginate-buttons-forward-backward.html deleted file mode 100644 index 0237a52..0000000 --- a/layouts/partials/paginate-buttons-forward-backward.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $p := . }} -{{ if or ($p.HasPrev) ($p.HasNext) }} - -{{ end }} diff --git a/layouts/partials/paginate-buttons.html b/layouts/partials/paginate-buttons.html deleted file mode 100644 index 941bf8e..0000000 --- a/layouts/partials/paginate-buttons.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $p := . }} -{{ if or ($p.HasPrev) ($p.HasNext) }} -
    -{{ if $p.HasPrev }} -
  • - ← Newer -
  • -{{ end }} -{{ if $p.HasNext }} -
  • - Older → -
  • -{{ end }} -
-{{ end }} diff --git a/layouts/partials/range-dl-summary.html b/layouts/partials/range-dl-summary.html deleted file mode 100644 index f7c04e8..0000000 --- a/layouts/partials/range-dl-summary.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ $p := . }} -
-{{ range $p }} -
-{{ if .Params.date }} - {{ .Date | time.Format ":date_long" }} -{{ end }} - {{ .Title }} -{{ if .Params.status }} - {{ .Params.status }} -{{ end }} -
-{{ if .Params.summary }} -
-{{ .Params.summary }} -
-{{ end }} -{{ end }} -
diff --git a/layouts/partials/range-ol.html b/layouts/partials/range-ol.html deleted file mode 100644 index 4091fcf..0000000 --- a/layouts/partials/range-ol.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ $p := . }} -
    -{{ range $p }} -
  1. - {{ .Title }} -
  2. -{{ end }} -
- diff --git a/layouts/partials/range-ul-article.html b/layouts/partials/range-ul-article.html deleted file mode 100644 index dc81079..0000000 --- a/layouts/partials/range-ul-article.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ $p := . }} -
    -{{ range $p }} -
  • -
    -{{ partial "title-et-al-list.html" . }} -
    -{{ .Content }} -
    -
    -
  • -{{ end }} -
diff --git a/layouts/partials/range-ul.html b/layouts/partials/range-ul.html deleted file mode 100644 index d2d1771..0000000 --- a/layouts/partials/range-ul.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ $p := . }} - diff --git a/layouts/partials/recentchanges.html b/layouts/partials/recentchanges.html deleted file mode 100644 index f4a0dcf..0000000 --- a/layouts/partials/recentchanges.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ $p := .Paginator }} -{{ if $p.Pages }} -
-

Recent additions/changes

- -
    -{{ range $p.Pages.ByLastmod.Reverse }} -
  • - {{ .Title }} -
  • -{{ end }} -
-{{ partial "paginate-buttons.html" $p }} -
-{{ end }} - diff --git a/layouts/partials/status.html b/layouts/partials/status.html deleted file mode 100644 index d540528..0000000 --- a/layouts/partials/status.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ if .Params.status }} - -{{ end }} diff --git a/layouts/partials/tagline.html b/layouts/partials/tagline.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/title-et-al-list.html b/layouts/partials/title-et-al-list.html deleted file mode 100644 index 18dcb08..0000000 --- a/layouts/partials/title-et-al-list.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ partial "status.html" . }} -{{ with .Params.date }} -

{{ dateFormat "2006-01-02" . }}

-{{ end }} -

{{ .Title }}

- -{{ with .Params.subtitle }} -

{{ . }}

-{{ end }} - -{{ partial "categories.html" . }} diff --git a/layouts/partials/title-et-al-main.html b/layouts/partials/title-et-al-main.html deleted file mode 100644 index f1c21b6..0000000 --- a/layouts/partials/title-et-al-main.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ partial "status.html" . }} -{{ with .Params.date }} -

{{ dateFormat "2006-01-02" . }}

-{{ end }} -

{{ .Title }}

- -{{ with .Params.subtitle }} -

{{ . }}

-{{ end }} - -{{ if .Params.author }} -

By -{{ with .Params.authorurl }}{{ end }}{{ .Params.author }}{{ with .Params.authorurl }}{{ end }} -

-{{ else }} -{{ with .Site.Params.Author.Name }} -

By {{ . }}

-{{ end }} -{{ end }} -

{{ .Page.Permalink }}

- -{{ partial "categories.html" . }} - diff --git a/layouts/partials/toc-recursive.html b/layouts/partials/toc-recursive.html deleted file mode 100644 index eebdd1c..0000000 --- a/layouts/partials/toc-recursive.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ template "toc-recursive" . }} - -{{ define "toc-recursive" }} -{{ $current := .current }} -{{ if .root.Pages }} - -{{ range .root.Pages.ByWeight }} - - {{ .Title }} -{{ template "toc-recursive" ( dict "root" . "current" $current "nottop" 1 ) }} - -{{ end }} - -{{ end }} -{{ end }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html deleted file mode 100644 index 02faf81..0000000 --- a/layouts/partials/toc.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/layouts/rss.xml b/layouts/rss.xml deleted file mode 100644 index 6ff3eee..0000000 --- a/layouts/rss.xml +++ /dev/null @@ -1,28 +0,0 @@ -{{- $pages := where .Site.RegularPages "Section" "blog" -}} -{{- printf "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} -{{- with .OutputFormats.Get "RSS" -}} -{{ printf " " .Permalink .MediaType | safeHTML }} -{{- end -}} -{{ range $pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} -{{- with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end -}} - {{ .Permalink }} - {{ .Summary | html }} - -{{ end }} - - diff --git a/layouts/shortcodes/anchor.html b/layouts/shortcodes/anchor.html deleted file mode 100644 index 2905c6f..0000000 --- a/layouts/shortcodes/anchor.html +++ /dev/null @@ -1,2 +0,0 @@ -{{/* generates an HTML anchor */}} -[{{ .Get 0 }}] diff --git a/layouts/shortcodes/box.html b/layouts/shortcodes/box.html deleted file mode 100644 index 2f12343..0000000 --- a/layouts/shortcodes/box.html +++ /dev/null @@ -1,3 +0,0 @@ -
-{{ .Inner | markdownify }} -
diff --git a/layouts/shortcodes/comment.html b/layouts/shortcodes/comment.html deleted file mode 100644 index 3d29dff..0000000 --- a/layouts/shortcodes/comment.html +++ /dev/null @@ -1,3 +0,0 @@ -{{/* Given there are no comments in Markdown, this tag can be used - as a comment that does not produce HTML output */}} -{{ $noop := .Inner }} diff --git a/layouts/shortcodes/gl.html b/layouts/shortcodes/gl.html deleted file mode 100644 index ebc3c46..0000000 --- a/layouts/shortcodes/gl.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- $tag := .Get 0 -}} -{{- $label := .Get 1 -}} -{{- with .Site.GetPage ( printf "/glossary/%s.md" ( $tag )) -}} - -{{- if $label -}} -{{- $label -}} -{{- else -}} -{{- .Title -}} -{{- end -}} - -{{- else -}} -{{ $tag }} -{{- end -}} diff --git a/layouts/shortcodes/gls.html b/layouts/shortcodes/gls.html deleted file mode 100644 index cd8db3e..0000000 --- a/layouts/shortcodes/gls.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- $tag := .Get 0 -}} -{{- $label := .Get 1 -}} -{{- with .Site.GetPage ( printf "/glossary/%s.md" ( $tag )) -}} - -{{- if $label -}} -{{- $label -}} -{{- else if .Params.plural -}} -{{- .Params.plural -}} -{{- else -}} -{{ $tag }} -{{- end -}} - -{{- else -}} -{{ $tag }} -{{- end -}} diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html deleted file mode 100644 index 85ce965..0000000 --- a/layouts/shortcodes/img.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ if .Get "style" }} -
-{{ else }} -
-{{ end }} -{{ if .Get "href" }} - - {{ .Get - -{{ else }} - {{ .Get -{{ end }} -
diff --git a/layouts/shortcodes/include-html.html b/layouts/shortcodes/include-html.html deleted file mode 100644 index 6d7a826..0000000 --- a/layouts/shortcodes/include-html.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Get "file" | readFile | safeHTML }} diff --git a/layouts/shortcodes/include-md.html b/layouts/shortcodes/include-md.html deleted file mode 100644 index 3b2ff3e..0000000 --- a/layouts/shortcodes/include-md.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ $file := .Get "file" | readFile }} -{{ (print $file ) | markdownify }} diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html deleted file mode 100644 index cf7d794..0000000 --- a/layouts/shortcodes/note.html +++ /dev/null @@ -1,6 +0,0 @@ -
-

Note

-

-{{ .Inner }} -

-
diff --git a/layouts/shortcodes/pageref.html b/layouts/shortcodes/pageref.html deleted file mode 100644 index 48b467f..0000000 --- a/layouts/shortcodes/pageref.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- $ref := .Get 0 -}} -{{- $label := .Get 1 -}} -{{- with .Page.GetPage $ref -}} -{{- if $label -}} -{{ $label }} -{{- else -}} -{{ .Title }} -{{- end -}} -{{- else -}} -{{ $ref }} -{{- end -}} diff --git a/layouts/shortcodes/pagerefurl.html b/layouts/shortcodes/pagerefurl.html deleted file mode 100644 index 5659910..0000000 --- a/layouts/shortcodes/pagerefurl.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- $ref := .Get 0 -}} -{{- with .Site.GetPage $ref -}} -{{ .Permalink }} -{{- else -}} -{{ $ref }} -{{- end -}} diff --git a/layouts/shortcodes/slide-in-img-left.html b/layouts/shortcodes/slide-in-img-left.html deleted file mode 100644 index fe9816a..0000000 --- a/layouts/shortcodes/slide-in-img-left.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ if .Get "style" }} -
-{{ else }} -
-{{ end }} -{{ if .Get "href" }} - - {{ .Get - -{{ else }} - {{ .Get -{{ end }} -
diff --git a/layouts/shortcodes/slide-in-img-right.html b/layouts/shortcodes/slide-in-img-right.html deleted file mode 100644 index a1ec365..0000000 --- a/layouts/shortcodes/slide-in-img-right.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ if .Get "style" }} -
-{{ else }} -
-{{ end }} -{{ if .Get "href" }} - - {{ .Get - -{{ else }} - {{ .Get -{{ end }} -
diff --git a/layouts/shortcodes/warning.html b/layouts/shortcodes/warning.html deleted file mode 100644 index ca5b9f8..0000000 --- a/layouts/shortcodes/warning.html +++ /dev/null @@ -1,6 +0,0 @@ -
-

Warning

-

-{{ .Inner }} -

-
diff --git a/static/assets/ext.svg b/static/assets/ext.svg deleted file mode 100644 index 316099a..0000000 --- a/static/assets/ext.svg +++ /dev/null @@ -1,10 +0,0 @@ - - diff --git a/static/assets/menu.css b/static/assets/menu.css deleted file mode 100644 index 953956f..0000000 --- a/static/assets/menu.css +++ /dev/null @@ -1,92 +0,0 @@ -/* menu navigation */ - -#page-nav { - text-align: right; - position: relative; /* so we can do an absolute child */ - font-size: 87.5%; -} - -#page-nav label, -#hamburger { - display: none; -} - -/* main menu items */ - -#page-nav ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -#page-nav li { - /* styling regardless of mode */ - margin: 0; - padding: 5px 10px; - box-sizing: border-box; -} - -#page-nav > ul > li { - /* when wide display, no hamburger */ - display: inline-block; -} - -/* sub-menu */ - -#page-nav li ul { - display: none; - text-align: left; - z-index: 100; - background: #fff; -} - -#page-nav li:hover ul { - display: block; - position: absolute; -} - -#page-nav li li { - display: block; -} - -/* when display narrow, hamburger */ -@media screen and (max-width: 905px) { - #page-nav label { - display: inline-block; - font-style: normal; - font-size: 30px; - line-height: 18px; - text-align: center; - position: relative; - top: -3px; - } - - #page-nav ul { - /* styling */ - text-align: left; - position: absolute; - right: 10%; - border: 1px solid #c0c0c0; - border-radius: 5px; - background: #fff; - z-index: 100; - margin-top: 0; - - /* when input not checked */ - display: none; - } - #page-nav input:checked ~ ul { - /* when input checked */ - display: block; - } - - #page-nav > ul > li { - display: block; - } - - /* sub-menu */ - #page-nav li:hover ul { - display: block; - left: 20%; - } -} diff --git a/static/assets/print.css b/static/assets/print.css deleted file mode 100644 index 240f1a6..0000000 --- a/static/assets/print.css +++ /dev/null @@ -1,5 +0,0 @@ -header, -footer, -aside { - display: none; -} diff --git a/static/assets/site.css b/static/assets/site.css index 01ec241..e69de29 100644 --- a/static/assets/site.css +++ b/static/assets/site.css @@ -1,261 +0,0 @@ -:root { - --header-background-color: rgb( 36, 37, 38 ); - --footer-background-color: rgb( 48, 56, 70 ); - - --base-font: system-ui; - - --base-font-color: rgb( 227, 227, 227 ); - --heading-font-color: rgb( 227, 227, 227 ); - - --header-font-size: 16px; - - --breadcrumb-font-size: 12px; - - --href-color: rgb( 37, 194, 160 ); - - --background-color: rgb( 27, 27, 29 ); - - --table-border-color: #606770; - --table-background-color: var( --background-color ); - --table-header-background-color: #ffffff08; - --table-stripe-background-color: #ffffff08; - - --code-font: 16px/1.4 "SFMono-Regular", Menlo, Monaco; - --code-background: rgb( 40, 42, 54 ); - -} - -* { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; -} - -body { - margin: 0; - background: var( --background-color ); - color: var( --base-font-color ); - font-family: var( --base-font ); - line-height: 1.6; -} - -table { - border-collapse: collapse; -} - -header { - margin: 0 0 50px 0; - padding: 0; - background: var( --header-background-color ); -} - -footer { - clear: both; - margin: 50px 0 0 0; - padding: 1px 0; /* otherwise Chrome will collapse the enclosing container */ - background: var( --footer-background-color ); -} - -h1, h2, h3, h4, h5 { - color: var(--heading-font-color); -} - -h1 { - font-size: 3rem; - line-height: 125%; -} -h2 { - font-size: 2rem; - line-height: 125%; -} - -a.ext:after { - content: url( "/assets/ext.svg" ); - margin-left: 1ex; -} -a:hover { - color: var( --href-color ); - text-decoration: underline; -} - -header div.title, -header div.logo { - margin: 12px 20px; - font-weight: 700; -} -header img.logo { - vertical-align: middle; - height: 32px; -} - -header nav.menu { - display: flex; - justify-content: space-between; - align-items: center; - height: 3em; - font-size: var( --header-font-size ); - font-weight: 500; -} - -header nav.menu li { - display: inline-block; -} -header > div.container { - display: flex; - flex-wrap: nowrap; - align-items: center; - justify-content: space-between; -} -header div.nav-tagline { - flex-grow: 1; -} - -h1 a, -h2 a, -h3 a, -header a, -footer a { - color: var( --base-font-color ); -} -a { - color: var( --href-color ); - text-decoration: none; -} - -header > div.container, -footer > div.container, -main { - max-width: 980px; - margin: 0 auto; -} - -main { - min-height: min( 600px, 60vh ); -} - -footer { - padding-left: 20%; -} -footer ul { - margin: 0; - padding: 0; -} - -footer li { - margin-left: 0; - list-style: none; -} - -nav#breadcrumbnav ol { - list-style-type: none; - margin: 0; - padding: 0; - font-size: var( --breadcrumb-font-size ); -} -nav#breadcrumbnav li { - display: inline-block; - margin: 0; - padding: 0; -} -nav#breadcrumbnav li + li::before { - content: "\00BB"; -} -nav#breadcrumbnav li.path a { - color: var( --base-font-color ); -} - -p.main.author, -p.main.source { - display: none; -} - -table { - background: var( --table-background-color ); -} -td, -th { - padding: 1.5ex; - border: 1px solid var( --table-border-color ); -} - -thead + tbody { - border-top: 2px solid var( --table-border-color ); -} -thead tr { - background: var( --table-header-background-color ); -} -tbody tr:nth-child(2n) { - background: var( --table-stripe-background-color ); -} -pre { - font: var( --code-font ); - background: var( --code-background ); - padding: 1em; - overflow-x: auto; -} - -aside.toc { - float: right; - width: 220px; - margin: 0 0 20px 20px; - padding: 0 0 8px 16px; - border-left: var( --table-border-color ) 1px solid; - font-size: 90%; -} - -aside.toc * { - line-height: 120%; -} -aside.toc a { - color: inherit; -} -aside.toc a:hover { - color: var( --href-color ); -} -aside.toc h1 { - margin: 1ex auto; - text-align: center; - text-transform: uppercase; - font-size: 90%; -} - -aside.toc ol { - margin: 0; - padding: 0; -} -aside.toc li { - margin: 8px 0; - padding: 0; - list-style: none; -} - -aside.toc > ol > li > a { - font-weight: 500; -} - -aside.toc li li { - margin-left: 2ex; -} - -#toc ol.toc, -#toc li.toc { - display: none; -} -#toc ol.toc.toc-current-path, -#toc li.toc.toc-current-path, -#toc #toc-current { - display: block; -} - -#toc ol.toc.toc-current-path > li, -#toc-current ol.toc, -#toc-current li.toc, -#toc > li.toc { - display: block; -} -#toc-current > a { - font-weight: bold; -} -#toc-current > ol.toc ol.toc { - display: none; -} diff --git a/static/assets/syntax.css b/static/assets/syntax.css deleted file mode 100644 index ea0a3e2..0000000 --- a/static/assets/syntax.css +++ /dev/null @@ -1,86 +0,0 @@ -/* Background */ .bg { color: #f8f8f2; background-color: #272822; } -/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; } -/* Other */ .chroma .x { } -/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } -/* CodeLine */ .chroma .cl { } -/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } -/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } -/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } -/* LineHighlight */ .chroma .hl { background-color: #3c3d38 } -/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } -/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } -/* Line */ .chroma .line { display: flex; } -/* Keyword */ .chroma .k { color: #66d9ef } -/* KeywordConstant */ .chroma .kc { color: #66d9ef } -/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } -/* KeywordNamespace */ .chroma .kn { color: #f92672 } -/* KeywordPseudo */ .chroma .kp { color: #66d9ef } -/* KeywordReserved */ .chroma .kr { color: #66d9ef } -/* KeywordType */ .chroma .kt { color: #66d9ef } -/* Name */ .chroma .n { } -/* NameAttribute */ .chroma .na { color: #a6e22e } -/* NameBuiltin */ .chroma .nb { } -/* NameBuiltinPseudo */ .chroma .bp { } -/* NameClass */ .chroma .nc { color: #a6e22e } -/* NameConstant */ .chroma .no { color: #66d9ef } -/* NameDecorator */ .chroma .nd { color: #a6e22e } -/* NameEntity */ .chroma .ni { } -/* NameException */ .chroma .ne { color: #a6e22e } -/* NameFunction */ .chroma .nf { color: #a6e22e } -/* NameFunctionMagic */ .chroma .fm { } -/* NameLabel */ .chroma .nl { } -/* NameNamespace */ .chroma .nn { } -/* NameOther */ .chroma .nx { color: #a6e22e } -/* NameProperty */ .chroma .py { } -/* NameTag */ .chroma .nt { color: #f92672 } -/* NameVariable */ .chroma .nv { } -/* NameVariableClass */ .chroma .vc { } -/* NameVariableGlobal */ .chroma .vg { } -/* NameVariableInstance */ .chroma .vi { } -/* NameVariableMagic */ .chroma .vm { } -/* Literal */ .chroma .l { color: #ae81ff } -/* LiteralDate */ .chroma .ld { color: #e6db74 } -/* LiteralString */ .chroma .s { color: #e6db74 } -/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } -/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } -/* LiteralStringChar */ .chroma .sc { color: #e6db74 } -/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } -/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } -/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } -/* LiteralStringEscape */ .chroma .se { color: #ae81ff } -/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } -/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } -/* LiteralStringOther */ .chroma .sx { color: #e6db74 } -/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } -/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } -/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } -/* LiteralNumber */ .chroma .m { color: #ae81ff } -/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } -/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } -/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } -/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } -/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } -/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } -/* Operator */ .chroma .o { color: #f92672 } -/* OperatorWord */ .chroma .ow { color: #f92672 } -/* Punctuation */ .chroma .p { } -/* Comment */ .chroma .c { color: #75715e } -/* CommentHashbang */ .chroma .ch { color: #75715e } -/* CommentMultiline */ .chroma .cm { color: #75715e } -/* CommentSingle */ .chroma .c1 { color: #75715e } -/* CommentSpecial */ .chroma .cs { color: #75715e } -/* CommentPreproc */ .chroma .cp { color: #75715e } -/* CommentPreprocFile */ .chroma .cpf { color: #75715e } -/* Generic */ .chroma .g { } -/* GenericDeleted */ .chroma .gd { color: #f92672 } -/* GenericEmph */ .chroma .ge { font-style: italic } -/* GenericError */ .chroma .gr { } -/* GenericHeading */ .chroma .gh { } -/* GenericInserted */ .chroma .gi { color: #a6e22e } -/* GenericOutput */ .chroma .go { } -/* GenericPrompt */ .chroma .gp { } -/* GenericStrong */ .chroma .gs { font-weight: bold } -/* GenericSubheading */ .chroma .gu { color: #75715e } -/* GenericTraceback */ .chroma .gt { } -/* GenericUnderline */ .chroma .gl { } -/* TextWhitespace */ .chroma .w { } diff --git a/static/assets/toc.js b/static/assets/toc.js deleted file mode 100644 index 6a463f6..0000000 --- a/static/assets/toc.js +++ /dev/null @@ -1,12 +0,0 @@ -window.onload = function() { - var toc = document.getElementById( "toc" ); - var tocCurrent = document.getElementById( "toc-current" ); - - if( toc != null && tocCurrent != null ) { - for( var current = tocCurrent.parentElement ; current != toc && current != null; current = current.parentElement ) { - if( current.classList.contains( "toc" ) ) { - current.classList.add( "toc-current-path" ); - } - } - } -} diff --git a/themes/fedidevs-hugo-theme b/themes/fedidevs-hugo-theme new file mode 160000 index 0000000..f63894d --- /dev/null +++ b/themes/fedidevs-hugo-theme @@ -0,0 +1 @@ +Subproject commit f63894d7aea049734551607db462a1957ac33232