add default theme

pull/1/head
fadelkon 2 years ago
parent bf6aaf0730
commit 61d1a7dd62
  1. 0
      archetypes/.gitkeep
  2. 6
      archetypes/default.md
  3. 79
      config.toml
  4. 66
      config.toml.mainroad
  5. 23
      config.toml.tale
  6. 0
      content/.gitkeep
  7. 10
      content/about.md
  8. 0
      content/post/.gitkeep
  9. 24
      content/post/hola_mundo/index.md
  10. BIN
      content/post/hola_mundo/welcome-aboard-sign.jpg
  11. 0
      data/.gitkeep
  12. 52
      layouts/_default/baseof.html
  13. 52
      layouts/_default/baseof.html.mainroad
  14. 24
      layouts/index.html.tale
  15. 1
      layouts/partials/svg/gitea.svg
  16. 1
      layouts/partials/svg/mastodon.svg
  17. 1
      layouts/partials/svg/matrix.svg
  18. 1
      layouts/partials/svg/peertube.svg
  19. 0
      resources/.gitkeep
  20. 0
      static/.gitkeep
  21. 13
      static/css/custom.css
  22. 1311
      static/css/style.css.bak
  23. BIN
      static/img/hello-world.png
  24. BIN
      static/img/logo.png
  25. 0
      themes/.gitkeep
  26. 4
      themes/mainroad/.browserslistrc
  27. 19
      themes/mainroad/.editorconfig
  28. 9
      themes/mainroad/.eslintrc
  29. 19
      themes/mainroad/.gitignore
  30. 7
      themes/mainroad/.postcssrc
  31. 319
      themes/mainroad/.stylelintrc
  32. 12
      themes/mainroad/.travis.yml
  33. 105
      themes/mainroad/CONTRIBUTING.md
  34. 361
      themes/mainroad/LICENSE.md
  35. 263
      themes/mainroad/README.md
  36. 10
      themes/mainroad/archetypes/default.md
  37. 1306
      themes/mainroad/assets/css/style.css
  38. 2
      themes/mainroad/exampleSite/.gitignore
  39. 35
      themes/mainroad/exampleSite/config.toml
  40. 32
      themes/mainroad/exampleSite/content/about.md
  41. 166
      themes/mainroad/exampleSite/content/post/basic-elements.md
  42. 1143
      themes/mainroad/exampleSite/content/post/creating-a-new-theme.md
  43. 344
      themes/mainroad/exampleSite/content/post/goisforlovers.md
  44. 86
      themes/mainroad/exampleSite/content/post/hugoisforlovers.md
  45. 155
      themes/mainroad/exampleSite/content/post/migrate-from-jekyll.md
  46. 0
      themes/mainroad/exampleSite/data/.gitkeep
  47. 0
      themes/mainroad/exampleSite/static/.gitkeep
  48. 94
      themes/mainroad/i18n/bg.yaml
  49. 94
      themes/mainroad/i18n/cs.yaml
  50. 94
      themes/mainroad/i18n/de.yaml
  51. 94
      themes/mainroad/i18n/en.yaml
  52. 92
      themes/mainroad/i18n/es.yaml
  53. 93
      themes/mainroad/i18n/fr.yaml
  54. 95
      themes/mainroad/i18n/hu.yaml
  55. 94
      themes/mainroad/i18n/it.yaml
  56. 95
      themes/mainroad/i18n/ja.yaml
  57. 93
      themes/mainroad/i18n/nl.yaml
  58. 93
      themes/mainroad/i18n/pt-br.yaml
  59. 93
      themes/mainroad/i18n/pt.yaml
  60. 95
      themes/mainroad/i18n/ru.yaml
  61. 93
      themes/mainroad/i18n/vi.yaml
  62. 92
      themes/mainroad/i18n/zh-cn.yaml
  63. 93
      themes/mainroad/i18n/zh-tw.yaml
  64. BIN
      themes/mainroad/images/screenshot.png
  65. BIN
      themes/mainroad/images/tn.png
  66. 8
      themes/mainroad/layouts/404.html
  67. 58
      themes/mainroad/layouts/_default/baseof.html
  68. 18
      themes/mainroad/layouts/_default/list.html
  69. 32
      themes/mainroad/layouts/_default/single.html
  70. 32
      themes/mainroad/layouts/_default/summary.html
  71. 24
      themes/mainroad/layouts/index.html
  72. 24
      themes/mainroad/layouts/partials/authorbox.html
  73. 5
      themes/mainroad/layouts/partials/comments.html
  74. 9
      themes/mainroad/layouts/partials/footer.html
  75. 8
      themes/mainroad/layouts/partials/footer_links.html
  76. 6
      themes/mainroad/layouts/partials/header.html
  77. 24
      themes/mainroad/layouts/partials/logo.html
  78. 3
      themes/mainroad/layouts/partials/mathjax.html
  79. 23
      themes/mainroad/layouts/partials/menu.html
  80. 22
      themes/mainroad/layouts/partials/pager.html
  81. 13
      themes/mainroad/layouts/partials/pagination.html
  82. 7
      themes/mainroad/layouts/partials/post_meta.html
  83. 6
      themes/mainroad/layouts/partials/post_meta/author.html
  84. 16
      themes/mainroad/layouts/partials/post_meta/categories.html
  85. 13
      themes/mainroad/layouts/partials/post_meta/date.html
  86. 10
      themes/mainroad/layouts/partials/post_meta/translations.html
  87. 14
      themes/mainroad/layouts/partials/post_tags.html
  88. 8
      themes/mainroad/layouts/partials/post_toc.html
  89. 22
      themes/mainroad/layouts/partials/sidebar.html
  90. 1
      themes/mainroad/layouts/partials/svg/author.svg
  91. 1
      themes/mainroad/layouts/partials/svg/bitbucket.svg
  92. 1
      themes/mainroad/layouts/partials/svg/category.svg
  93. 1
      themes/mainroad/layouts/partials/svg/email.svg
  94. 1
      themes/mainroad/layouts/partials/svg/facebook.svg
  95. 1
      themes/mainroad/layouts/partials/svg/files.svg
  96. 1
      themes/mainroad/layouts/partials/svg/github.svg
  97. 1
      themes/mainroad/layouts/partials/svg/gitlab.svg
  98. 1
      themes/mainroad/layouts/partials/svg/instagram.svg
  99. 1
      themes/mainroad/layouts/partials/svg/linkedin.svg
  100. 1
      themes/mainroad/layouts/partials/svg/tag.svg
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

@ -0,0 +1,79 @@
baseURL = ""
title = "Mi web"
languageCode = "es-ES"
#enableGitInfo = true #enable last modification info close to creation date on post view
paginate = "10" # Number of posts per page
theme = "mainroad"
disqusShortname = "" # Enable comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Author]
name = "Yo"
bio = "Texto que acompaña al autor."
avatar = "img/avatar.png"
[Params]
description = "John Doe's Personal blog about everything" # Description of your site
opengraph = true
twitter_cards = false
readmore = false # Show "Read more" button in list if true
authorbox = false # Bloque bajo la página de cada artículo con datos definidos arriba en [Author]
toc = false # Enable Table of Contents
pager = true
post_meta = ["date", "categories"] # Order of post meta information
mainSections = ["post"] # Specify section pages to show on home page and the "Recent articles" widget
dateformat = "01 jun 2006" # Change the format of dates
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
[Params.logo]
image = "img/logo.png" # Logo image. Path relative to "static"
title = "" # Logo title (banner site title), if empty will use site title
subtitle = "Otro sitio de sindominio.net" # Logo subtitle
[Params.sidebar]
home = "right" # Configure layout for home page
list = "right" # Configure layout for list pages
single = "right" # Configure layout for single pages
# Enable widgets in given order
widgets = ["recent", "categories", "taglist", "social"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget (disabled by default)
#[Params.widgets.social]
# # Enable parts of social widget
# facebook = "username"
# twitter = "username"
# instagram = "username"
# linkedin = "username"
# telegram = "username"
# github = "pebelino"
# gitlab = "username"
# bitbucket = "username"
# email = "example@example.com"
#
# Custom social links
#[[Params.widgets.social.custom]]
# title = ""
# url = ""
# icon = "svg/gitea.svg" # Optional. Path relative to "layouts/partials"
#
#[[Params.widgets.social.custom]]
# title = ""
# url = ""
# icon = "svg/mastodon.svg" # Optional. Path relative to "layouts/partials"
#
#[[Params.widgets.social.custom]]
# title = ""
# url = ""
# icon = "svg/matrix.svg" # Optional. Path relative to "layouts/partials"
#
#[[Params.widgets.social.custom]]
# title = ""
# url = ""
# icon = "svg/peertube.svg" # Optional. Path relative to "layouts/partials"

@ -0,0 +1,66 @@
baseURL = ""
title = "Mi web"
#enableGitInfo = true
languageCode = "es-ES"
paginate = "10" # Number of posts per page
theme = "mainroad"
disqusShortname = "" # Enable comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Author]
name = "Yo"
bio = "Texto que acompaña al autor."
avatar = "img/avatar.png"
[Params]
description = "John Doe's Personal blog about everything" # Description of your site
opengraph = true
twitter_cards = false
readmore = false # Show "Read more" button in list if true
authorbox = false # Bloque bajo la página de cada artículo con datos definidos arriba en [Author]
toc = true # Enable Table of Contents
pager = true
post_meta = ["date", "categories"] # Order of post meta information
mainSections = ["post"] # Specify section pages to show on home page and the "Recent articles" widget
dateformat = "01 jun 2006" # Change the format of dates
[Params.logo]
image = "img/logo.png" # Logo image. Path relative to "static"
title = "" # Logo title (banner site title), if empty will use site title
subtitle = "Otro sitio de sindominio.net" # Logo subtitle
[Params.sidebar]
home = "right" # Configure layout for home page
list = "right" # Configure layout for list pages
single = "right" # Configure layout for single pages
# Enable widgets in given order
widgets = ["recent", "categories", "taglist"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget (disabled by default)
#[Params.widgets.social]
# # Enable parts of social widget
# facebook = "username"
# twitter = "username"
# instagram = "username"
# linkedin = "username"
# telegram = "username"
# github = "username"
# gitlab = "username"
# bitbucket = "username"
# email = "example@example.com"
#
## Custom social links
#[[Params.widgets.social.custom]]
# title = "Youtube"
# url = "https://youtube.com/user/username"
# icon = "youtube.svg" # Optional. Path relative to "layouts/partials"
#
#[[Params.widgets.social.custom]]
# title = "My Home Page"
# url = "http://example.com"

@ -0,0 +1,23 @@
baseURL = ""
title = "Mi web"
#enableGitInfo = true
languageCode = "es-ES"
theme = "tale"
[Author]
name = "yo"
[menu]
[[menu.main]]
identifier = "about"
name = "About"
title = "About"
url = "/about/"
weight = 0
[[menu.main]]
identifier = "posts"
name = "Posts"
title = "Posts"
url = "/post/"
weight = 0

@ -0,0 +1,10 @@
---
title: "Presentación"
date: 2019-06-30T20:57:50+02:00
draft: false
menu: main
---
**¿Quién soy yo?**
No te importa. Si acaso lo que pienso.

@ -0,0 +1,24 @@
---
title: "Hola mundo"
date: 2019-06-11
tags: ["lectura","ocio"]
thumbnail: "img/hello-world.png"
---
Éste es un artículo de ejemplo.
Puedes añadir más editando tu repo. Lo puedes hacer desde [gitea](https://git.sindominio.net) (interfaz web) o si lo prefieres hacer en local puedes trabajar con git en tu terminal.
<!--more-->
Aquí tienes algunas ayudas de cómo trabajar con hugo y tu web estática:
* [Webs estáticas con git](https://sindominio.net/trastienda/manuales/web_git/)
* [Markdown](https://sindominio.net/trastienda/manuales/markdown_intro/)
* [Cómo conectar a mi home (ssh, sftp)](https://sindominio.net/trastienda/manuales/conectar_home/)
El tema hugo que utilizas al desplegar la web desde lowry es [mainroad](https://github.com/Vimux/Mainroad/search?q=image&type=Issues). Consulta su página para ver cómo cambiar los parámetros de configuración en el fichero *config.toml* de tu repo.
Dos cosas importantes en este tema:
* El artículo en cada carpeta tiene el nombre *index.md*, no *_index.md*.
* Las imágenes de los artículos van dentro de la carpeta de los mismos pero las miniaturas (thumbnail) que defines en cada artículo (imagen destacada) las tienes que incluir en la carpeta */static/* del repositorio. En los manuales señalados tienes más información de cómo cambiar de tema.
![Bienvenido a bordo](welcome-aboard-sign.jpg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
{{- if .Site.Params.opengraph }}
{{ template "_internal/opengraph.html" . }}
{{- end }}
{{- if .Site.Params.schema }}
{{ template "_internal/schema.html" . }}
{{- end }}
{{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
</head>
<body class="body">
<div class="container container--outer">
{{ partial "header" . }}
<div class="wrapper flex">
<div class="primary">
{{ block "main" . }}
{{ with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{ end }}
{{ end }}
</div>
{{ partial "sidebar.html" . }}
</div>
{{ partial "footer" . }}
</div>
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
{{ range .Site.Params.customJS -}}
<script src="{{ . | relURL }}"></script>
{{- end }}
{{- partial "mathjax.html" . -}}
</body>
</html>

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
{{- if .Site.Params.opengraph }}
{{ template "_internal/opengraph.html" . }}
{{- end }}
{{- if .Site.Params.schema }}
{{ template "_internal/schema.html" . }}
{{- end }}
{{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
</head>
<body class="body">
<div class="container container--outer">
{{ partial "header" . }}
<div class="wrapper flex">
<div class="primary">
{{ block "main" . }}
{{ with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{ end }}
{{ end }}
</div>
{{ partial "sidebar.html" . }}
</div>
{{ partial "footer" . }}
</div>
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
{{ range .Site.Params.customJS -}}
<script src="{{ . | relURL }}"></script>
{{- end }}
{{- partial "mathjax.html" . -}}
</body>
</html>

@ -0,0 +1,24 @@
{{ define "main" }}
<main>
{{ partial "index/introduction.html" . }}
<div class="catalogue">
{{ range where (.Paginate .Site.RegularPages).Pages "Section" "post" }}
{{ .Render "summary" }}
{{ end }}
</div>
<div class="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
{{ end }}
<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>
{{ end }}

@ -0,0 +1 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon" xmlns="http://www.w3.org/2000/svg" width="75.404" height="20.002" viewBox="0 0 19.951 5.292"><text style="line-height:1.25" x="-46.659" y="128.305" font-weight="400" font-size="5.873" letter-spacing="0" word-spacing="0" font-family="sans-serif" stroke-width=".147" transform="translate(55.878 -123.674)"><tspan x="-46.659" y="128.305" style="-inkscape-font-specification:'PT Sans Narrow'" font-family="PT Sans Narrow">Gitea</tspan></text><path d="M1.512.034C.86.032-.013.498.036 1.664.111 3.49 1.773 3.66 2.437 3.674c.073.342.855 1.522 1.433 1.584h2.537C7.927 5.143 9.064.088 8.22.068c-3.192.17-3.41.146-6.046 0-.17-.002-.407-.034-.662-.034zm.17.645c.092.935.243 1.481.547 2.316C1.452 2.893.791 2.64.67 1.691.605 1.186.833.656 1.682.68z" fill="#609926" stroke="#428f29" stroke-width=".068"/><g transform="translate(-.379 -2.26) scale(.06824)" fill="#fff"><rect ry="5.483" height="34.762" width="34.762" y="18.292" x="87.509" transform="rotate(25.915)"/><path d="M79.805 57.359l3.241 1.61V35.256h-3.263z"/></g><g transform="translate(-.379 -2.26) scale(.06824)"><circle r="3.474" cy="90.078" cx="49.065" transform="rotate(-19.796)" fill="#609926"/><circle r="3.474" cy="102.1" cx="36.81" transform="rotate(-19.796)" fill="#609926"/><circle r="3.474" cy="111.44" cx="46.484" transform="rotate(-19.796)" fill="#609926"/><path d="M79.54 58.935l2.402 1.173-11.96 24.497-2.403-1.173z" fill="#609926"/><path d="M76.558 68.116c12.976 6.395 13.013 4.102 4.89 20.907" fill="none" stroke="#609926" stroke-width="2.68"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -0,0 +1 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 91.265 22.5" height="24" width="97.349"><path d="M20.54 13.489c-.308 1.587-2.762 3.324-5.581 3.66-1.47.176-2.918.337-4.461.266-2.525-.115-4.516-.602-4.516-.602 0 .245.015.48.045.698.328 2.491 2.47 2.64 4.5 2.71 2.047.07 3.87-.505 3.87-.505l.085 1.852s-1.433.769-3.984.91c-1.407.077-3.154-.035-5.19-.574C.896 20.736.137 16.032.02 11.258-.015 9.841.007 8.505.007 7.388c0-4.882 3.198-6.313 3.198-6.313C4.817.335 7.585.024 10.46 0h.07c2.877.024 5.645.335 7.258 1.075 0 0 3.198 1.431 3.198 6.312 0 0 .04 3.601-.446 6.102" fill="#3088d4"/><path d="M4.434 6.204a1.286 1.286 0 112.573 0 1.286 1.286 0 01-2.573 0m18.45 1.562v5.91h-2.342V7.939c0-1.209-.509-1.823-1.527-1.823-1.125 0-1.689.729-1.689 2.168v3.14H15v-3.14c0-1.44-.564-2.168-1.69-2.168-1.017 0-1.526.614-1.526 1.823v5.737H9.442v-5.91c0-1.208.307-2.168.925-2.878.637-.71 1.471-1.074 2.507-1.074 1.198 0 2.105.46 2.705 1.381l.584.978.583-.978c.6-.92 1.507-1.381 2.705-1.381 1.036 0 1.87.364 2.507 1.074.618.71.925 1.67.925 2.878m8.067 2.938c.483-.51.715-1.154.715-1.929 0-.775-.232-1.418-.715-1.91-.466-.51-1.056-.756-1.772-.756s-1.307.246-1.772.756c-.465.492-.698 1.135-.698 1.91 0 .775.233 1.418.698 1.929.465.491 1.056.737 1.772.737s1.306-.246 1.772-.737m.715-6.656h2.31v9.454h-2.31v-1.115c-.697.926-1.664 1.38-2.917 1.38-1.199 0-2.219-.473-3.078-1.437-.841-.965-1.27-2.156-1.27-3.555 0-1.38.429-2.572 1.27-3.536.86-.964 1.88-1.456 3.078-1.456 1.253 0 2.22.454 2.917 1.38zm10.077 4.557c.68.51 1.02 1.229 1.002 2.136 0 .965-.34 1.721-1.038 2.25-.698.511-1.539.776-2.56.776-1.843 0-3.095-.756-3.758-2.25l2.005-1.191c.268.813.859 1.229 1.754 1.229.823 0 1.235-.265 1.235-.814 0-.397-.537-.756-1.629-1.04a15.028 15.028 0 01-1.02-.321 4.004 4.004 0 01-.966-.53c-.663-.51-1.003-1.19-1.003-2.06 0-.927.322-1.664.967-2.194.662-.548 1.467-.813 2.434-.813 1.539 0 2.667.662 3.4 2.004l-1.968 1.135c-.287-.643-.77-.964-1.432-.964-.698 0-1.038.264-1.038.775 0 .397.537.756 1.628 1.04.842.189 1.504.473 1.987.832m7.338-2.212h-2.022v3.933c0 .472.179.756.519.888.25.095.751.114 1.503.076v2.212c-1.557.19-2.684.038-3.347-.473-.662-.491-.984-1.399-.984-2.703V6.393h-1.557V4.048h1.557v-1.91l2.309-.737v2.647h2.022zm7.356 4.254c.466-.492.698-1.116.698-1.872s-.232-1.38-.698-1.872c-.465-.492-1.038-.737-1.736-.737s-1.27.245-1.736.737c-.447.51-.68 1.135-.68 1.872 0 .738.233 1.362.68 1.872.466.492 1.038.737 1.736.737s1.27-.245 1.736-.737m-5.1 1.683c-.913-.964-1.36-2.137-1.36-3.555 0-1.4.447-2.572 1.36-3.536.912-.964 2.04-1.456 3.364-1.456 1.325 0 2.452.492 3.365 1.456.913.964 1.378 2.156 1.378 3.536 0 1.4-.465 2.59-1.378 3.555-.913.964-2.023 1.437-3.365 1.437s-2.452-.473-3.364-1.437m15.82-1.626c.466-.51.699-1.154.699-1.929 0-.775-.233-1.418-.698-1.91-.465-.51-1.056-.756-1.772-.756s-1.306.246-1.79.756c-.465.492-.698 1.135-.698 1.91 0 .775.233 1.418.698 1.929.484.491 1.092.737 1.79.737.716 0 1.307-.246 1.772-.737M67.855.266h2.309v13.236h-2.31v-1.115c-.68.926-1.646 1.38-2.898 1.38-1.2 0-2.237-.473-3.097-1.437-.84-.965-1.27-2.156-1.27-3.555 0-1.38.43-2.572 1.27-3.536.86-.964 1.897-1.456 3.097-1.456 1.252 0 2.219.454 2.899 1.38zM78.27 10.647c.466-.492.698-1.116.698-1.872s-.232-1.38-.698-1.872c-.465-.492-1.038-.737-1.736-.737s-1.27.245-1.736.737c-.447.51-.68 1.135-.68 1.872 0 .738.233 1.362.68 1.872.466.492 1.038.737 1.736.737s1.271-.245 1.736-.737m-5.1 1.683c-.913-.964-1.36-2.137-1.36-3.555 0-1.4.447-2.572 1.36-3.536s2.04-1.456 3.364-1.456c1.325 0 2.452.492 3.365 1.456.913.964 1.378 2.156 1.378 3.536 0 1.4-.465 2.59-1.378 3.555-.913.964-2.022 1.437-3.365 1.437-1.342 0-2.451-.473-3.364-1.437m18.094-4.633v5.805h-2.309V8c0-.624-.16-1.097-.483-1.456-.304-.322-.734-.492-1.289-.492-1.306 0-1.968.775-1.968 2.345v5.105h-2.309V4.048h2.309v1.059c.555-.89 1.431-1.324 2.666-1.324.985 0 1.79.34 2.417 1.04.644.7.966 1.645.966 2.874" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

@ -0,0 +1 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon" xmlns="http://www.w3.org/2000/svg" width="56.583" height="24" viewBox="0 0 14.971 6.35"><g paint-order="stroke" fill="#fff"><path d="M.404.376v5.598H.83v.135H.24V.24H.83v.135z" stroke="#fff" stroke-width=".382" stroke-linejoin="round"/><path d="M2.04 2.15v.284h.01a.848.848 0 01.287-.251.814.814 0 01.386-.09c.14 0 .266.027.382.078a.52.52 0 01.262.271.917.917 0 01.266-.243.738.738 0 01.4-.105c.116 0 .224.014.323.04a.596.596 0 01.422.362c.04.097.06.212.06.347v1.4h-.606V3.057c0-.07-.003-.136-.009-.198a.41.41 0 00-.046-.162.278.278 0 00-.114-.11.427.427 0 00-.202-.04.404.404 0 00-.207.047.345.345 0 00-.124.121.471.471 0 00-.06.17 1.22 1.22 0 00-.014.193v1.165H2.85V3.07a5.57 5.57 0 00-.004-.184.5.5 0 00-.036-.168.263.263 0 00-.107-.123.42.42 0 00-.22-.047.528.528 0 00-.113.018.383.383 0 00-.25.215.565.565 0 00-.046.249v1.214h-.605V2.151zM5.226 2.458a.711.711 0 01.238-.214c.097-.054.206-.093.327-.116.12-.023.242-.034.364-.034.111 0 .223.008.337.022.114.015.218.044.312.087.093.043.17.103.23.18s.09.179.09.306v1.089c0 .094.005.184.017.27a.47.47 0 00.06.195h-.615a.793.793 0 01-.043-.202.799.799 0 01-.34.198 1.44 1.44 0 01-.402.057c-.105 0-.203-.012-.294-.037a.688.688 0 01-.239-.113.532.532 0 01-.16-.194.628.628 0 01-.057-.28c0-.118.022-.216.066-.293a.534.534 0 01.17-.184c.07-.046.15-.08.24-.103.089-.023.179-.041.27-.055.091-.013.18-.024.269-.032.088-.01.166-.02.234-.037a.419.419 0 00.162-.07c.04-.031.059-.077.056-.136a.291.291 0 00-.032-.148.23.23 0 00-.086-.085.347.347 0 00-.123-.04 1.031 1.031 0 00-.152-.01.478.478 0 00-.281.072c-.068.049-.108.13-.12.243H5.12a.646.646 0 01.106-.336zm1.196.812a1.532 1.532 0 01-.262.05 1.348 1.348 0 00-.276.053.406.406 0 00-.115.055.263.263 0 00-.08.087.268.268 0 00-.03.133c0 .051.01.095.03.13.02.035.048.062.082.083.034.02.074.034.12.042a.723.723 0 00.14.012c.12 0 .212-.019.277-.056a.39.39 0 00.203-.296c.007-.054.01-.097.01-.13V3.22a.275.275 0 01-.096.05z" stroke="#fff" stroke-width=".094" stroke-linejoin="round"/><path d="M8.718 2.15v.385h-.443v1.036c0 .097.017.162.051.194.034.033.102.049.205.049a1.012 1.012 0 00.187-.016v.445a1.331 1.331 0 01-.17.016 3.818 3.818 0 01-.184.004c-.094 0-.183-.007-.266-.018a.648.648 0 01-.222-.07.384.384 0 01-.152-.15.511.511 0 01-.055-.255V2.535h-.367v-.384h.367v-.628h.606v.628z"/><path d="M9.584 2.15v.39h.009a.745.745 0 01.281-.322.758.758 0 01.422-.123c.04-.001.085.006.133.02v.533a1.163 1.163 0 00-.218-.021.674.674 0 00-.281.053.482.482 0 00-.186.144.563.563 0 00-.1.212 1.1 1.1 0 00-.03.263v.943H9.01V2.15zM10.684 1.827v-.474h.606v.474zm.606.323v2.093h-.606V2.15zM11.605 2.15h.691l.388.547.384-.547h.67l-.725.98.814 1.113h-.69l-.461-.66-.46.66h-.679l.793-1.1z" stroke="#fff" stroke-width=".094" stroke-linejoin="round"/><path d="M14.567 5.974V.376h-.425V.24h.588V6.11h-.588v-.135z" stroke="#fff" stroke-width=".382" stroke-linejoin="round"/></g></svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon" xmlns="http://www.w3.org/2000/svg" width="112.6" height="24" viewBox="0 0 29.792 6.35"><path d="M.853.266v2.936l2.201-1.468" fill="#322e30"/><path d="M.853 3.202v2.935l2.201-1.468" fill="#737373"/><path d="M3.054 1.734v2.935l2.201-1.467" fill="#f1680d"/><text style="line-height:1.25" x="15.935" y="94.423" font-weight="400" font-size="5.36" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".084" transform="translate(-9.887 -89.095)"><tspan x="15.935" y="94.423" style="-inkscape-font-specification:'Source Sans Pro Bold'" font-weight="700" font-family="Source Sans Pro">PeerTube</tspan></text></svg>

After

Width:  |  Height:  |  Size: 692 B

@ -0,0 +1,13 @@
/* CUSTOM CSS */
body {
font-size: 1.1rem;
}
/* Social widgets small and inline */
.widget-social__item {
padding: 0;
border: 0;
display: inline-block;
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

@ -0,0 +1,4 @@
> 0.25%
not dead
IE >= 11
iOS >= 7

@ -0,0 +1,19 @@
# editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.html]
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false
[*.{json,yaml,yml,toml,md,babelrc,eslintrc,stylelintrc}]
indent_style = space
indent_size = 2

@ -0,0 +1,9 @@
{
"extends": "airbnb-base/legacy",
"rules": {
"indent": [2, "tab"],
"no-tabs": 0,
"no-unused-vars": 0,
"no-shadow-restricted-names": 0
}
}

@ -0,0 +1,19 @@
# NPM
node_modules/
npm-debug.log
# IDE
.idea
*.sublime-project
*.sublime-workspace
.vscode/*
# OS
._*
Thumbs.db
.DS_Store
.Trashes
.Spotlight-V100
.AppleDouble
.LSOverride
Desktop.ini

@ -0,0 +1,7 @@
{
"plugins": {
"autoprefixer": {
cascade: false
}
}
}

@ -0,0 +1,319 @@
{
"plugins": [
"stylelint-order"
],
"rules": {
"at-rule-empty-line-before": [
"always",
{
"except": [
"blockless-after-same-name-blockless",
"first-nested"
],
"ignore": [
"after-comment"
]
}
],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-empty-line-before": "never",
"block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": [
"consecutive-duplicates-with-different-values"
]
}
],
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-whitespace-after": "always",
"indentation": "tab",
"keyframe-declaration-no-important": true,
"length-zero-no-unit": true,
"max-empty-lines": 1,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": "lower",
"media-feature-name-no-unknown": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"number-no-trailing-zeros": true,
"property-case": "lower",
"property-no-unknown": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"unit-case": "lower",
"unit-no-unknown": true,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0,
"order/properties-order": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"box-sizing",
"display",
"flex",
"flex-align",
"flex-basis",
"flex-direction",
"flex-wrap",
"flex-flow",
"flex-shrink",
"flex-grow",
"flex-wrap",
"align-content",
"align-items",
"align-self",
"justify-content",
"order",
"float",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"overflow",
"overflow-x",
"overflow-y",
"-webkit-overflow-scrolling",
"-ms-overflow-x",
"-ms-overflow-y",
"-ms-overflow-style",
"columns",
"column-count",
"column-fill",
"column-gap",
"column-rule",
"column-rule-width",
"column-rule-style",
"column-rule-color",
"column-span",
"column-width",
"orphans",
"widows",
"clip",
"clear",
"font",
"font-family",
"font-size",
"font-style",
"font-weight",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
"font-emphasize",
"font-emphasize-position",
"font-emphasize-style",
"font-smooth",
"src",
"hyphens",
"line-height",
"color",
"text-align",
"text-align-last",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-style",
"text-emphasis-position",
"text-decoration",
"text-indent",
"text-justify",
"text-outline",
"-ms-text-overflow",
"text-overflow",
"text-overflow-ellipsis",
"text-overflow-mode",
"text-shadow",
"text-transform",
"text-wrap",
"-webkit-text-size-adjust",
"-ms-text-size-adjust",
"letter-spacing",
"-ms-word-break",
"word-break",
"word-spacing",
"-ms-word-wrap",
"word-wrap",
"overflow-wrap",
"tab-size",
"white-space",
"vertical-align",
"direction",
"unicode-bidi",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image",
"pointer-events",
"-ms-touch-action",
"touch-action",
"cursor",
"visibility",
"zoom",
"table-layout",
"empty-cells",
"caption-side",
"border-spacing",
"border-collapse",
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"background",
"background-color",
"background-image",
"filter",
"background-repeat",
"background-attachment",
"background-position",
"background-position-x",
"background-position-y",
"background-clip",
"background-origin",
"background-size",
"border",
"border-color",
"border-style",
"border-width",
"border-top",
"border-top-color",
"border-top-style",
"border-top-width",
"border-right",
"border-right-color",
"border-right-style",
"border-right-width",
"border-bottom",
"border-bottom-color",
"border-bottom-style",
"border-bottom-width",
"border-left",
"border-left-color",
"border-left-style",
"border-left-width",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-image",
"border-image-source",
"border-image-slice",
"border-image-width",
"border-image-outset",
"border-image-repeat",
"outline",
"outline-width",
"outline-style",
"outline-color",
"outline-offset",
"box-shadow",
"opacity",
"-ms-interpolation-mode",
"page-break-after",
"page-break-before",
"page-break-inside",
"transition",
"transition-delay",
"transition-timing-function",
"transition-duration",
"transition-property",
"transform",
"transform-origin",
"perspective",
"appearance",
"animation",
"animation-name",
"animation-duration",
"animation-play-state",
"animation-timing-function",
"animation-delay",
"animation-iteration-count",
"animation-direction",
"animation-fill-mode",
"quotes",
"will-change",
"fill",
"fill-rule",
"stroke"
]
}
}

@ -0,0 +1,12 @@
language: node_js
node_js:
- "8"
sudo: false
script:
- npm run lint
branches:
only:
- master

@ -0,0 +1,105 @@
# Contributing to Mainroad
**Mainroad** welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines
below. If you're a newcomer to open source and you haven't contributed to other projects or used
[Git](https://git-scm.com/) before, you should make yourself familiar before proceeding.
## Issues
The [issue tracker](https://github.com/vimux/mainroad/issues) is the preferred channel for bug reports and features
requests, but please respect the following restrictions:
### General requirements
* Issue must be written in English.
* Please **do not** combine a few problems or feature requests in one issue. Create separate issues if needed.
* Please **do not** create an issue that contains only title. Write a clear title and useful description.
* Please **do not** use the issue tracker for personal support requests.
* Please **do not** post comments consisting solely of "+1" or emoji. The project maintainer reserve the right to delete
such comments. Use
[GitHub's reactions feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.
* Search first before filing a new issue. Please check existing open or recently closed issues to make sure somebody
else hasn't already reported the issue.
### Reporting bugs
When creating a new bug issue make sure to include the following information:
* Your environment e.g. OS version, Hugo version, theme is up to date? Anything unusual about your environment or
deployment.
* Specify the exact steps to reproduce the bug in as many details as possible with code examples. Include links to files
or demo projects, or copy/pasteable snippets, which you use in those examples.
* Any message or error you get from Hugo, if you do.
* A screenshot of any visual bug.
**Note:** If you find a **Closed** issue that seems like it is the same bug that you're experiencing, open a new issue
and include a link to the original issue in the body of your new one.
### Proposing features
* Explain the proposed feature, what it should do, why it is useful, and alternatives considered if possible. Please
note that the project maintainer may close this issue or ask you to create a Pull Request if this is not something that
the project maintainer sees as a sufficiently high priority.
Following these guidelines helps maintainer and the community understand your suggestion and find related suggestions.
## Pull Requests (PR)
**Please ask first** before embarking on any significant pull request (e.g. implementing features or refactoring code),
otherwise, you risk spending a lot of time working on something that the project maintainer might not want to merge into
the project.
Please respect our Pull Request Acceptance Criteria. For larger changes, you will likely receive multiple rounds of
comments and it may take some time to complete.
### Pull Request Acceptance Criteria
* Keep the change in a single PR as small as possible
* 1 PR = 1 FIX or FEATURE (do not combine things, send separate PR if needed)
* PR with irrelevant changes won't be merged. If you do want to fix formatting or style, do that in a separate PR
* Use a clear and descriptive branch name (e.g. **NOT** "patch-1" or "update")
* Don't create a Pull Request from master branch
* Provide a reasonable PR title and description
* PR must be written in English
* If the PR changes the UI it should include before-and-after screenshots or a link to a video
* Keep PR up to date with upstream/master
* Pay attention to any automated CI failures reported in the Pull Request
* PR solves a common use case that several users will need in their real-life projects, not only your specific problems
* If you've added or modify SVG, ensure that each SVG file:
* Be less than 2048 bytes
* Be minified to a single line with no formatting
* Not contain any JS or CSS section inside it
* Not contain any additional transformations (matrix, translate, scale)
* Сompatible with [GPLv2 License](LICENSE.md)
* Maintain clean commit history and use meaningful commit messages. Pull Requests with messy commit history (with
commit messages like "update", "another update", etc) are difficult to review and won't be merged, even if the changes
are good enough
* Be prepared to answer questions and make code changes. The project maintainer expect you to be reasonably responsive
to those feedback, otherwise the PR will be closed after 2-4 weeks of inactivity
### Pull Request Contribution Prerequisites
* You have Node & npm installed
* You have Hugo installed at v0.48.0+
* You are familiar with Git
### Pull Request Process
1. Fork the repository
1. Clone down the repository to your local system
1. Run `npm i` in the repository root
1. Create a new *dedicated branch* with descriptive name from `master`
1. Make your change and commit to the new branch from the previous step
1. Write a clear commit message
1. If you've added code that need documentation, update the README.md
1. Make sure your code lints (`npm test`)
1. Push to your fork
1. Submit a Pull Request (PR) to the upstream
---
**⚠ IMPORTANT: No guarantees can be made that your pull request will be accepted.**
## License
By contributing to Mainroad, you agree that your contributions will be licensed under [GPLv2 License](LICENSE.md).

@ -0,0 +1,361 @@
### GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
### Preamble
The licenses for most software are designed to take away your freedom
to share and change it. By contrast, the GNU General Public License is
intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on,
we want its recipients to know that what they have is not the
original, so that any problems introduced by others will not reflect
on the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at
all.
The precise terms and conditions for copying, distribution and
modification follow.
### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
**0.** This License applies to any program or other work which
contains a notice placed by the copyright holder saying it may be
distributed under the terms of this General Public License. The
"Program", below, refers to any such program or work, and a "work
based on the Program" means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program or
a portion of it, either verbatim or with modifications and/or
translated into another language. (Hereinafter, translation is
included without limitation in the term "modification".) Each licensee
is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the Program
(independent of having been made by running the Program). Whether that
is true depends on what the Program does.
**1.** You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a
fee.
**2.** You may modify your copy or copies of the Program or any
portion of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
**a)** You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
**b)** You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any part
thereof, to be licensed as a whole at no charge to all third parties
under the terms of this License.
**c)** If the modified program normally reads commands interactively
when run, you must cause it, when started running for such interactive
use in the most ordinary way, to print or display an announcement
including an appropriate copyright notice and a notice that there is
no warranty (or else, saying that you provide a warranty) and that
users may redistribute the program under these conditions, and telling
the user how to view a copy of this License. (Exception: if the
Program itself is interactive but does not normally print such an
announcement, your work based on the Program is not required to print
an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
**3.** You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
**a)** Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections 1
and 2 above on a medium customarily used for software interchange; or,
**b)** Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your cost of
physically performing source distribution, a complete machine-readable
copy of the corresponding source code, to be distributed under the
terms of Sections 1 and 2 above on a medium customarily used for
software interchange; or,
**c)** Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is allowed
only for noncommercial distribution and only if you received the
program in object code or executable form with such an offer, in
accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
**4.** You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt otherwise
to copy, modify, sublicense or distribute the Program is void, and
will automatically terminate your rights under this License. However,
parties who have received copies, or rights, from you under this
License will not have their licenses terminated so long as such
parties remain in full compliance.
**5.** You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
**6.** Each time you redistribute the Program (or any work based on
the Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
**7.** If, as a consequence of a court judgment or allegation of
patent infringement or for any other reason (not limited to patent
issues), conditions are imposed on you (whether by court order,
agreement or otherwise) that contradict the conditions of this
License, they do not excuse you from the conditions of this License.
If you cannot distribute so as to satisfy simultaneously your
obligations under this License and any other pertinent obligations,
then as a consequence you may not distribute the Program at all. For
example, if a patent license would not permit royalty-free
redistribution of the Program by all those who receive copies directly
or indirectly through you, then the only way you could satisfy both it
and this License would be to refrain entirely from distribution of the
Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
**8.** If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
**9.** The Free Software Foundation may publish revised and/or new
versions of the General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Program does not specify a
version number of this License, you may choose any version ever
published by the Free Software Foundation.
**10.** If you wish to incorporate parts of the Program into other
free programs whose distribution conditions are different, write to
the author to ask for permission. For software which is copyrighted by
the Free Software Foundation, write to the Free Software Foundation;
we sometimes make exceptions for this. Our decision will be guided by
the two goals of preserving the free status of all derivatives of our
free software and of promoting the sharing and reuse of software
generally.
**NO WARRANTY**
**11.** BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
**12.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
### END OF TERMS AND CONDITIONS
### How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
one line to give the program's name and an idea of what it does.
Copyright (C) yyyy name of author
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Also add information on how to contact you by electronic and paper
mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.
The hypothetical commands \`show w' and \`show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than \`show w' and
\`show c'; they could even be mouse-clicks or menu items--whatever
suits your program.
You should also get your employer (if you work as a programmer) or
your school, if any, to sign a "copyright disclaimer" for the program,
if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.
signature of Ty Coon, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library,
you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
[GNU Lesser General Public
License](http://www.gnu.org/licenses/lgpl.html) instead of this
License.

@ -0,0 +1,263 @@
# Mainroad
**Mainroad** is a responsive, simple, clean and content-focused [Hugo](https://gohugo.io/) theme based on the
[MH Magazine lite](https://wordpress.org/themes/mh-magazine-lite/) WordPress theme by
[MH Themes](https://www.mhthemes.com/).
**[Demo (Fast update)](https://mainroad-demo.netlify.app/)** | [Standart Demo](https://themes.gohugo.io/theme/mainroad/)
![screenshot](https://github.com/Vimux/mainroad/blob/master/images/screenshot.png)
**Features:**
+ Hugo internal templates (Open Graph, Schema, Twitter Cards, Disqus, Google Analytics)
+ Responsive menu
+ Secondary menus
+ SVG icons
+ Theme options (Sidebar position, Author Box, Post Navigation, highlight color) available through config.toml file
parameters
+ Table of Contents
+ MathJax
**Browser support:**
+ **Desktop:** IE11+, Chrome, Firefox, Safari
+ **Mobile:** Android browser (on Android 4.4+), Safari (on iOS 7+), Google Chrome, Opera mini
Other browsers (like Opera on Blink engine) are also supported, but not tested.
## Installation
*Before starting, please be sure that you have
[installed Hugo](https://gohugo.io/getting-started/quick-start/#step-1-install-hugo) and
[created a new site](https://gohugo.io/getting-started/quick-start/#step-2-create-a-new-site). After that, you ready to
install **Mainroad**.*
In your Hugo site `themes` directory, run:
```
git clone https://github.com/vimux/mainroad
```
Or, if you don't plan to make any significant changes, but want to track and update the theme, you can add it as a git
submodule via the following command:
```
git submodule add https://github.com/vimux/mainroad
```
Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `mainroad`:
```
theme = "mainroad"
```
For more information read the official [setup guide](https://gohugo.io/themes/installing-and-using-themes/) of Hugo.
## Configuration
### Config.toml example
```toml
baseurl = "/"
title = "Mainroad"
languageCode = "en-us"
paginate = "10" # Number of posts per page
theme = "mainroad"
disqusShortname = "" # Enable Disqus comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Author] # Used in authorbox
name = "John Doe"
bio = "John Doe's true identity is unknown. Maybe he is a successful blogger or writer. Nobody knows it."
avatar = "img/avatar.png"
[Params]
subtitle = "" # Deprecated in favor of .Site.Params.logo.subtitle
description = "John Doe's Personal blog about everything" # Site description. Used in meta description
copyright = "John Doe" # Footer copyright holder, otherwise will use site title
opengraph = true # Enable OpenGraph if true
schema = true # Enable Schema
twitter_cards = true # Enable Twitter Cards if true
readmore = false # Show "Read more" button in list if true
authorbox = true # Show authorbox at bottom of pages if true
toc = true # Enable Table of Contents
pager = true # Show pager navigation (prev/next links) at the bottom of pages if true
post_meta = ["author", "date", "categories", "translations"] # Order of post meta information
mainSections = ["post", "blog", "news"] # Specify section pages to show on home page and the "Recent articles" widget
dateformat = "2006-01-02" # Change the format of dates
mathjax = true # Enable MathJax
mathjaxPath = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js" # Specify MathJax path
mathjaxConfig = "TeX-AMS-MML_HTMLorMML" # Specify MathJax config
highlightColor = "#e22d30" # Override highlight color
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
[Params.logo]
image = "img/placeholder.png" # Logo image. Path relative to "static"
title = "Mainroad" # Logo title, otherwise will use site title
subtitle = "Just another site" # Logo subtitle
[Params.sidebar]
home = "right" # Configure layout for home page
list = "left" # Configure layout for list pages
single = false # Configure layout for single pages
# Enable widgets in given order
widgets = ["search", "recent", "categories", "taglist", "social", "languages"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget
[Params.widgets.social]
# Enable parts of social widget
facebook = "username"
twitter = "username"
instagram = "username"
linkedin = "username"
telegram = "username"
github = "username"
gitlab = "username"
bitbucket = "username"
email = "example@example.com"
# Custom social links
[[Params.widgets.social.custom]]
title = "Youtube"
url = "https://youtube.com/user/username"
icon = "youtube.svg" # Optional. Path relative to "layouts/partials"
[[Params.widgets.social.custom]]
title = "My Home Page"
url = "http://example.com"
```
A good idea is not to copy all these settings without understanding how it works. Use only those parameters that you
need.
For more information about all available standard configuration settings, please read
[All Hugo Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings).
### Front Matter example
```yaml
---
# Common-Defined params
title: "Example article title"
date: "2017-08-21"
description: "Example article description"
categories:
- "Category 1"
- "Category 2"
tags:
- "Test"
- "Another test"
menu: main # Optional, add page to a menu. Options: main, side, footer
# Theme-Defined params
thumbnail: "img/placeholder.jpg" # Thumbnail image
lead: "Example lead - highlighted near the title" # Lead text
comments: false # Enable Disqus comments for specific page
authorbox: true # Enable authorbox for specific page
pager: true # Enable pager navigation (prev/next) for specific page
toc: true # Enable Table of Contents for specific page
mathjax: true # Enable MathJax for specific page
sidebar: "right" # Enable sidebar (on the right side) per page
widgets: # Enable sidebar widgets in given order per page
- "search"
- "recent"
- "taglist"
---
```
For more information about front matter variables read
[Hugo Front Matter](https://gohugo.io/content-management/front-matter) from Hugo official documentation.
### Logo
**Mainroad** allows you to set a custom logo in the site header. You may use text, or image, or both. Use the following
options in your site config:
```toml
[Params.logo]
image = "img/placeholder.png"
title = "Mainroad"
subtitle = "Just another site"
```
Please be noted that the logo image will display at a maximum width of 128 pixels and a maximum height of 128 pixels
when you use text and image simultaneously. When the only logo image is active, it will display at a maximum height of
256 pixels. Ideally, your image should be SVG.
### Sidebar
**Mainroad** comes with a configurable sidebar that can be on the left, on the right, or disabled. The default layout
can be specified in the `[Params.sidebar]` section of the configuration. The position can be specified for home, list
and single pages individually. Use the keys `home`, `list` and `single` with values `"left"`, `"right"` or `false`. The
layout can be configured per page, by setting the `sidebar` parameter with one of the same values in the page's front
matter.
The sidebar consists of multiple widgets. Widgets can be enabled individually using the `widgets` key with a list of