diff --git a/hugo-labs/LICENSE b/hugo-labs/LICENSE new file mode 100644 index 0000000..624b3f3 --- /dev/null +++ b/hugo-labs/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 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/hugo-labs/README.md b/hugo-labs/README.md new file mode 100644 index 0000000..809113a --- /dev/null +++ b/hugo-labs/README.md @@ -0,0 +1,2 @@ +# hugo-labs + diff --git a/hugo-labs/archetypes/default.md b/hugo-labs/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/hugo-labs/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/hugo-labs/layouts/.index.html.swp b/hugo-labs/layouts/.index.html.swp new file mode 100644 index 0000000..09bbd62 Binary files /dev/null and b/hugo-labs/layouts/.index.html.swp differ diff --git a/hugo-labs/layouts/404.html b/hugo-labs/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/hugo-labs/layouts/_default/baseof.html b/hugo-labs/layouts/_default/baseof.html new file mode 100644 index 0000000..2de3c7f --- /dev/null +++ b/hugo-labs/layouts/_default/baseof.html @@ -0,0 +1,45 @@ + + + + + + + {{ block "title" . }} + {{ .Title}}{{ if ne .Title .Site.Title }} | {{ .Site.Title }}{{ end }} + {{ end }} + + + + + +{{ block "navbar" . }} + {{ partial "navbar" . }} +{{ end }} +
+
+ +
+ {{ block "main" . }} + {{ end }} +
+
+
+ + + + + diff --git a/hugo-labs/layouts/_default/content.html b/hugo-labs/layouts/_default/content.html new file mode 100644 index 0000000..0492fd0 --- /dev/null +++ b/hugo-labs/layouts/_default/content.html @@ -0,0 +1,4 @@ +{{ $dateFormat := default "02-01-2006 15:04" (index .Site.Params "date_format") }} + +

{{ .Title | markdownify }}{{ if not .Date.IsZero }} {{ .Date.Format $dateFormat }}{{ end }}

+{{ .Content }} diff --git a/hugo-labs/layouts/_default/list.html b/hugo-labs/layouts/_default/list.html new file mode 100644 index 0000000..7410409 --- /dev/null +++ b/hugo-labs/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} + +{{ range .Pages }} + {{ .Render "content" }} +{{ end }} + + +{{ end }} diff --git a/hugo-labs/layouts/_default/single.html b/hugo-labs/layouts/_default/single.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/hugo-labs/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/hugo-labs/layouts/index.html b/hugo-labs/layouts/index.html new file mode 100644 index 0000000..ae73980 --- /dev/null +++ b/hugo-labs/layouts/index.html @@ -0,0 +1,17 @@ +{{ define "main" }} +

{{ .Site.Title }}

+
+
+
+ {{ block "news" . }} + {{ range first 3 (where .Pages "Section" "wiadomosci")}} + {{ .Render "content" }} + {{ end }} + {{ end }} +
+
+ {{ .Content }} +
+
+ +{{ end }} diff --git a/hugo-labs/layouts/partials/footer.html b/hugo-labs/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/hugo-labs/layouts/partials/header.html b/hugo-labs/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 diff --git a/hugo-labs/layouts/partials/navbar.html b/hugo-labs/layouts/partials/navbar.html new file mode 100644 index 0000000..c7fc4db --- /dev/null +++ b/hugo-labs/layouts/partials/navbar.html @@ -0,0 +1,30 @@ + diff --git a/hugo-labs/layouts/partials/sidebar.html b/hugo-labs/layouts/partials/sidebar.html new file mode 100644 index 0000000..9f1fa2c --- /dev/null +++ b/hugo-labs/layouts/partials/sidebar.html @@ -0,0 +1,32 @@ +{{ $currentPage := . }} + diff --git a/hugo-labs/static/css/labs.css b/hugo-labs/static/css/labs.css new file mode 100644 index 0000000..5c8f8be --- /dev/null +++ b/hugo-labs/static/css/labs.css @@ -0,0 +1,253 @@ +BODY { + padding-top: 75px; +/* font-family: "Work Sans","Source Sans Pro","Open Sans","Helvetica Neue","Helvetica","Tahoma","Geneva","Arial",sans-serif; +*/ + letter-spacing: +.02rem; + font-weight: 300; + font-size: 1.8rem; + line-height: 2; + color: #4d5363; +} + +code { + color: f00; + font-size: 1.7rem; +} + +h1 { + text-align: center; + font-size: 4rem; + +} +h1, h2, h3, h4, h5, h6 { + font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif; + /*font-family: "Lato","Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;*/ + text-rendering: optimizeLegibility; + line-height: 100%; + letter-spacing: 0; +} + +h2 { + font-size: 3rem; +} + +h3 { + font-size: 2.6rem; +} + +h4 { + font-size: 2.2rem; +} + +img{ + max-width: 500px; + height: auto; +} + +video { + max-width: 100%; + height: auto; +} + +pre { + font-size: 1.7rem; + line-height: 1.7; +} + +.navbar { + + padding-left: 0px; + padding-right: 20px; +/*background-color: #ba3232; + border-right: 20px solid #fff; +*/letter-spacing: +.05rem; + font-weight: bold; + font-size: 2rem; +} + +a:link { + color: #e00; +} + +a:visited { + color: #e00; +} + +a:hover { + color: #000; +} + +.navbar a:link{ + color: #ba3232; + font-size: 2rem; +} + +.navbar a:visited { + color: #ba3232; + font-size: 2rem; +} + +.navbar a:hover { + color: #ba3232; + font-size: 2rem; +} + +.sidebar-toggle { + float: left; + margin-left: 15px; +} + +.sidebar { +/*padding-top: 100px; +*/margin-top: 5px; + /*display: none; + */position: fixed; + top: 51px; + bottom: 0; + left: 0; + z-index: 1050; + padding-left: 20px; + overflow-x: hidden; + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ + background-color: #292929; + border-right: 1px solid #eee; + /*letter-spacing: +.05rem;*/ + font-weight: 400; + font-size: 1.6rem; + line-height: 1.55; +} + +.sidebar.active { + display: block; + +} + +@media (min-width: 768px) { + .sidebar { + display: block; + } +} + +.sidebar a { + display: block; + padding: 10px 20px; + text-decoration: none; + color: #ccc; +} + +.sidebar ul { + list-style-type: none; + padding: 0; +} + +.sidebar > ul { + margin-right: -21px; /* 20px padding + 1px border */ + margin-bottom: 20px; + margin-left: -20px; +} + +.sidebar .sub-item > a{ + padding-left: 40px; + background-color: #111; +} + +.sidebar .subsub-item > a{ + padding-left: 60px; + background-color: #111; +} + +.sidebar .subsubsub-item > a{ + padding-left: 80px; + background-color: #111; +} + +.sidebar .active > a { + color: #fff; + background-color: #ba3232; + font-weight: bold; + +} + +.sidebar a:hover { + color: #fff; +/* background-color: #ba3232; +*/ font-weight: bold; + +} + +.main { + padding: 20px; +} +@media (min-width: 768px) { + .main { + padding-right: 80px; + padding-left: 80px; + } +} +.main .page-header { + margin-top: 0; +} + +.property-name { + font-weight: bold; +} + +.bs-callout { + padding: 20px; + margin: 20px 0; + border: 1px solid #eee; + border-left-width: 5px; + border-radius: 3px; +} +.bs-callout:first-child { + margin-top: 0; +} +.bs-callout h4 { + margin-top: 0; + margin-bottom: 5px; +} +.bs-callout p:last-child { + margin-bottom: 0; +} +.bs-callout code { + border-radius: 3px; +} +.bs-callout+.bs-callout { + margin-top: -5px; +} +.bs-callout-default { + border-left-color: #777; +} +.bs-callout-default h4 { + color: #777; +} +.bs-callout-primary { + border-left-color: #428bca; +} +.bs-callout-primary h4 { + color: #428bca; +} +.bs-callout-success { + border-left-color: #5cb85c; +} +.bs-callout-success h4 { + color: #5cb85c; +} +.bs-callout-danger { + border-left-color: #d9534f; +} +.bs-callout-danger h4 { + color: #d9534f; +} +.bs-callout-warning { + border-left-color: #f0ad4e; +} +.bs-callout-warning h4 { + color: #f0ad4e; +} +.bs-callout-info { + border-left-color: #5bc0de; +} +.bs-callout-info h4 { + color: #5bc0de; +} diff --git a/hugo-labs/static/js/fix.js b/hugo-labs/static/js/fix.js new file mode 100644 index 0000000..0984977 --- /dev/null +++ b/hugo-labs/static/js/fix.js @@ -0,0 +1 @@ +$(function() { $('table').addClass('table table-striped'); }) diff --git a/hugo-labs/theme.toml b/hugo-labs/theme.toml new file mode 100644 index 0000000..d6b50c8 --- /dev/null +++ b/hugo-labs/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Hugo Labs" +license = "MIT" +licenselink = "https://git.wmi.amu.edu.pl/labs/hugo-labs/raw/master/LICENSE" +description = "" +homepage = "https://laboratoria.wmi.amu.edu.pl" +tags = [] +features = [] +min_version = "0.38" + +[author] + name = "Mateusz Hromada" + homepage = "https://blog.ruanda.pl" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""