make something beautiful
This commit is contained in:
parent
651d0863cc
commit
9fbf7abe78
32
config.toml
32
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
|
||||
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
|
||||
|
@ -1 +1,3 @@
|
||||
Hello world!
|
||||
Non-commercial radio run by MIREA students.
|
||||
|
||||
**Stay locked in!**
|
3
content/about.md
Normal file
3
content/about.md
Normal file
@ -0,0 +1,3 @@
|
||||
# About
|
||||
|
||||
Test.
|
3
content/news/_index.md
Normal file
3
content/news/_index.md
Normal file
@ -0,0 +1,3 @@
|
||||
+++
|
||||
title = "News"
|
||||
+++
|
0
content/schedule/_index.md
Normal file
0
content/schedule/_index.md
Normal file
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Categories on My New Hugo Site</title>
|
||||
<link>http://example.org/categories/</link>
|
||||
<description>Recent content in Categories on My New Hugo Site</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://example.org/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>My New Hugo Site</title>
|
||||
<link>http://example.org/</link>
|
||||
<description>Recent content on My New Hugo Site</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://example.org/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>http://example.org/categories/</loc>
|
||||
</url><url>
|
||||
<loc>http://example.org/</loc>
|
||||
</url><url>
|
||||
<loc>http://example.org/tags/</loc>
|
||||
</url>
|
||||
</urlset>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Tags on My New Hugo Site</title>
|
||||
<link>http://example.org/tags/</link>
|
||||
<description>Recent content in Tags on My New Hugo Site</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://example.org/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
20
themes/swr/LICENSE
Normal file
20
themes/swr/LICENSE
Normal file
@ -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.
|
2
themes/swr/archetypes/default.md
Normal file
2
themes/swr/archetypes/default.md
Normal file
@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
54
themes/swr/assets/css/style.scss
Normal file
54
themes/swr/assets/css/style.scss
Normal file
@ -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;
|
||||
}
|
0
themes/swr/layouts/404.html
Normal file
0
themes/swr/layouts/404.html
Normal file
18
themes/swr/layouts/_default/baseof.html
Normal file
18
themes/swr/layouts/_default/baseof.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="wrapper">
|
||||
{{- partial "nav.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
<div id="player">
|
||||
<div id="p1"></div>
|
||||
<iframe frameborder="0" width="279" height="216" src="https://libretime.southwestradio.ru/embed/player?stream=auto&title=Now Playing"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
38
themes/swr/layouts/_default/list.html
Normal file
38
themes/swr/layouts/_default/list.html
Normal file
@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
<content>
|
||||
{{ if .Data.Singular }}
|
||||
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ "/news" | relURL }}">Remove filter</a>
|
||||
</small>
|
||||
{{ end }}
|
||||
<ul class="blog-posts">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<span>
|
||||
<i>
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||
</time>
|
||||
</i>
|
||||
</span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
No posts yet
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ if .Data.Singular }}
|
||||
{{else}}
|
||||
<small>
|
||||
<div>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</small>
|
||||
{{ end }}
|
||||
</content>
|
||||
{{ end }}
|
6
themes/swr/layouts/_default/single.html
Normal file
6
themes/swr/layouts/_default/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<content>
|
||||
{{ .Content }}
|
||||
</content>
|
||||
{{ end }}
|
3
themes/swr/layouts/index.html
Normal file
3
themes/swr/layouts/index.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
0
themes/swr/layouts/partials/footer.html
Normal file
0
themes/swr/layouts/partials/footer.html
Normal file
8
themes/swr/layouts/partials/head.html
Normal file
8
themes/swr/layouts/partials/head.html
Normal file
@ -0,0 +1,8 @@
|
||||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
{{ $sass := resources.Get "/css/style.scss" }}
|
||||
{{ $style := $sass | resources.ToCSS }}
|
||||
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
</head>
|
1
themes/swr/layouts/partials/header.html
Normal file
1
themes/swr/layouts/partials/header.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>{{ .Site.Title }}</h1>
|
27
themes/swr/layouts/partials/nav.html
Normal file
27
themes/swr/layouts/partials/nav.html
Normal file
@ -0,0 +1,27 @@
|
||||
<aside>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<p>
|
||||
<a href="#">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</p>
|
||||
<ul class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<li class="{{ if $currentPage.IsMenuCurrent " main" . }}active{{ end }}">
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<p>
|
||||
<a href="{{ .URL }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</aside>
|
5
themes/swr/layouts/section/schedule.html
Normal file
5
themes/swr/layouts/section/schedule.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div id="calendar">
|
||||
<iframe height="400px" width="550px" scrolling="no" frameborder="0" src="https://libretime.southwestradio.ru/embed/weekly-program"></iframe>
|
||||
</div>
|
||||
{{end}}
|
BIN
themes/swr/static/fonts/ShareTechMono-Regular.ttf
Normal file
BIN
themes/swr/static/fonts/ShareTechMono-Regular.ttf
Normal file
Binary file not shown.
21
themes/swr/theme.toml
Normal file
21
themes/swr/theme.toml
Normal file
@ -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 = ""
|
Loading…
Reference in New Issue
Block a user