diff --git a/config.toml b/config.toml index 17ac545..c355b74 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,30 @@ -baseURL = 'http://example.org/' +baseURL = 'https://southwestradio.ru/' languageCode = 'en-us' title = 'SouthWest Radio' -theme = "hugo-bearblog" -[params] -hideMadeWithLine = true \ No newline at end of file +theme = "swr" + +[menu] + [[menu.main]] + name = 'Home' + url = '/' + weight = 1 + + [[menu.main]] + name = 'Schedule' + url = '/schedule' + weight = 2 + [[menu.main]] + name = 'News' + url = '/news/' + weight = 3 + [[menu.main]] + name = 'About' + url = '#' + weight = 4 + + + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/content/_index.md b/content/_index.md index 6769dd6..3d7c61c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1 +1,3 @@ -Hello world! \ No newline at end of file +Non-commercial radio run by MIREA students. + +**Stay locked in!** \ No newline at end of file diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..cbd7021 --- /dev/null +++ b/content/about.md @@ -0,0 +1,3 @@ +# About + +Test. \ No newline at end of file diff --git a/content/news/_index.md b/content/news/_index.md new file mode 100644 index 0000000..4283237 --- /dev/null +++ b/content/news/_index.md @@ -0,0 +1,3 @@ ++++ +title = "News" ++++ \ No newline at end of file diff --git a/content/blog/haha.md b/content/news/haha.md similarity index 100% rename from content/blog/haha.md rename to content/news/haha.md diff --git a/content/schedule/_index.md b/content/schedule/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/public/categories/index.xml b/public/categories/index.xml deleted file mode 100644 index b92677a..0000000 --- a/public/categories/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Categories on My New Hugo Site - http://example.org/categories/ - Recent content in Categories on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/public/index.xml b/public/index.xml deleted file mode 100644 index da90485..0000000 --- a/public/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - My New Hugo Site - http://example.org/ - Recent content on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index 45379db..0000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - http://example.org/categories/ - - http://example.org/ - - http://example.org/tags/ - - diff --git a/public/tags/index.xml b/public/tags/index.xml deleted file mode 100644 index 201eda6..0000000 --- a/public/tags/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Tags on My New Hugo Site - http://example.org/tags/ - Recent content in Tags on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/themes/swr/LICENSE b/themes/swr/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/themes/swr/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/swr/archetypes/default.md b/themes/swr/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/swr/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/swr/assets/css/style.scss b/themes/swr/assets/css/style.scss new file mode 100644 index 0000000..8f9e7cf --- /dev/null +++ b/themes/swr/assets/css/style.scss @@ -0,0 +1,54 @@ +@font-face { + font-family: 'ShareTechMono'; + src: url('../fonts/ShareTechMono-Regular.ttf'); +} + +body { + font-family: 'ShareTechMono'; + background-color: #24202b; + color: white; + font-size: 14pt; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + // justify-content: center; + align-items: center; + position: fixed; + height: 100%; + width: 100%; +} + +#wrapper { + display: flex; + padding: 10px; +} + +aside { + margin-right: 2em; + border: 1px solid; + padding: 10px; + min-width: 5em; +} + +#player { + margin-left: 2em; + border: 1px solid; + padding: 10px; + padding-right: 20px; +} + +#content { + border: 1px solid; + padding: 10px; + min-width: 40em; +} + +a { + color: #cc61be; +} + +#calendar { + display: flex; + justify-content: center; +} \ No newline at end of file diff --git a/themes/swr/layouts/404.html b/themes/swr/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/swr/layouts/_default/baseof.html b/themes/swr/layouts/_default/baseof.html new file mode 100644 index 0000000..d1c635c --- /dev/null +++ b/themes/swr/layouts/_default/baseof.html @@ -0,0 +1,18 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- partial "nav.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+
+
+ +
+
+ {{- partial "footer.html" . -}} + + diff --git a/themes/swr/layouts/_default/list.html b/themes/swr/layouts/_default/list.html new file mode 100644 index 0000000..1e6e0a9 --- /dev/null +++ b/themes/swr/layouts/_default/list.html @@ -0,0 +1,38 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

+ + Remove filter + + {{ end }} + + {{ if .Data.Singular }} + {{else}} + +
+ {{ range .Site.Taxonomies.tags }} + #{{ .Page.Title }}  + {{ end }} +
+
+ {{ end }} +
+{{ end }} diff --git a/themes/swr/layouts/_default/single.html b/themes/swr/layouts/_default/single.html new file mode 100644 index 0000000..7719379 --- /dev/null +++ b/themes/swr/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ define "main" }} +

{{ .Title }}

+ + {{ .Content }} + +{{ end }} \ No newline at end of file diff --git a/themes/swr/layouts/index.html b/themes/swr/layouts/index.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/themes/swr/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/themes/swr/layouts/partials/footer.html b/themes/swr/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/swr/layouts/partials/head.html b/themes/swr/layouts/partials/head.html new file mode 100644 index 0000000..c462c92 --- /dev/null +++ b/themes/swr/layouts/partials/head.html @@ -0,0 +1,8 @@ + + {{ .Site.Title }} + + {{ $sass := resources.Get "/css/style.scss" }} + {{ $style := $sass | resources.ToCSS }} + + + \ No newline at end of file diff --git a/themes/swr/layouts/partials/header.html b/themes/swr/layouts/partials/header.html new file mode 100644 index 0000000..58570ba --- /dev/null +++ b/themes/swr/layouts/partials/header.html @@ -0,0 +1 @@ +

{{ .Site.Title }}

\ No newline at end of file diff --git a/themes/swr/layouts/partials/nav.html b/themes/swr/layouts/partials/nav.html new file mode 100644 index 0000000..06ee057 --- /dev/null +++ b/themes/swr/layouts/partials/nav.html @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/themes/swr/layouts/section/schedule.html b/themes/swr/layouts/section/schedule.html new file mode 100644 index 0000000..136f673 --- /dev/null +++ b/themes/swr/layouts/section/schedule.html @@ -0,0 +1,5 @@ +{{ define "main" }} +
+ +
+{{end}} \ No newline at end of file diff --git a/themes/swr/static/fonts/ShareTechMono-Regular.ttf b/themes/swr/static/fonts/ShareTechMono-Regular.ttf new file mode 100644 index 0000000..8e6e84b Binary files /dev/null and b/themes/swr/static/fonts/ShareTechMono-Regular.ttf differ diff --git a/themes/swr/theme.toml b/themes/swr/theme.toml new file mode 100644 index 0000000..19ae219 --- /dev/null +++ b/themes/swr/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Swr" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""