diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/hugo-xmin/.github/FUNDING.yml | 3 | ||||
| -rw-r--r-- | themes/hugo-xmin/.gitignore | 6 | ||||
| -rw-r--r-- | themes/hugo-xmin/LICENSE.md | 20 | ||||
| -rw-r--r-- | themes/hugo-xmin/README.md | 28 | ||||
| -rw-r--r-- | themes/hugo-xmin/archetypes/default.md | 4 | ||||
| -rw-r--r-- | themes/hugo-xmin/hugo-xmin.Rproj | 16 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/404.html | 5 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/_default/list.html | 16 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/_default/single.html | 12 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/_default/terms.html | 13 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/index.html | 28 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/partials/footer.html | 8 | ||||
| -rw-r--r-- | themes/hugo-xmin/layouts/partials/header.html | 21 | ||||
| -rw-r--r-- | themes/hugo-xmin/static/css/fonts.css | 7 | ||||
| -rw-r--r-- | themes/hugo-xmin/static/css/style.css | 162 | ||||
| -rw-r--r-- | themes/hugo-xmin/theme.toml | 13 |
16 files changed, 0 insertions, 362 deletions
diff --git a/themes/hugo-xmin/.github/FUNDING.yml b/themes/hugo-xmin/.github/FUNDING.yml deleted file mode 100644 index 9a5a186..0000000 --- a/themes/hugo-xmin/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -github: [yihui] -patreon: -custom: diff --git a/themes/hugo-xmin/.gitignore b/themes/hugo-xmin/.gitignore deleted file mode 100644 index a057323..0000000 --- a/themes/hugo-xmin/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.Rproj.user -.Rhistory -.RData -.Ruserdata -exampleSite/.hugo_build.lock -exampleSite/public diff --git a/themes/hugo-xmin/LICENSE.md b/themes/hugo-xmin/LICENSE.md deleted file mode 100644 index 259e3d6..0000000 --- a/themes/hugo-xmin/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017-2022 Yihui Xie - -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/hugo-xmin/README.md b/themes/hugo-xmin/README.md deleted file mode 100644 index ea15b29..0000000 --- a/themes/hugo-xmin/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# HUGO XMIN - -## _Keep it simple, but not simpler_ - -**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 140 lines of code in total, including the code in HTML templates and CSS (also counting empty lines). - - -```bash -find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xargs wc -l -``` - -``` - 5 ./layouts/404.html - 12 ./layouts/_default/single.html - 20 ./layouts/_default/list.html - 13 ./layouts/_default/terms.html - 0 ./layouts/partials/foot_custom.html - 0 ./layouts/partials/head_custom.html - 9 ./layouts/partials/footer.html - 20 ./layouts/partials/header.html - 51 ./static/css/style.css - 7 ./static/css/fonts.css - 137 total -``` - -I can certainly further reduce the code, for example, by eliminating the CSS, but I believe a tiny bit of CSS can greatly improve readability. You cannot really find many CSS frameworks that only contain 50 lines of code. - -[](https://xmin.yihui.org) diff --git a/themes/hugo-xmin/archetypes/default.md b/themes/hugo-xmin/archetypes/default.md deleted file mode 100644 index fb98e92..0000000 --- a/themes/hugo-xmin/archetypes/default.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: '' -date: '' ---- diff --git a/themes/hugo-xmin/hugo-xmin.Rproj b/themes/hugo-xmin/hugo-xmin.Rproj deleted file mode 100644 index d64e28b..0000000 --- a/themes/hugo-xmin/hugo-xmin.Rproj +++ /dev/null @@ -1,16 +0,0 @@ -Version: 1.0 - -RestoreWorkspace: Default -SaveWorkspace: Default -AlwaysSaveHistory: Default - -EnableCodeIndexing: Yes -UseSpacesForTab: Yes -NumSpacesForTab: 2 -Encoding: UTF-8 - -RnwWeave: knitr -LaTeX: pdfLaTeX - -AutoAppendNewline: Yes -StripTrailingWhitespace: Yes diff --git a/themes/hugo-xmin/layouts/404.html b/themes/hugo-xmin/layouts/404.html deleted file mode 100644 index c2e4e40..0000000 --- a/themes/hugo-xmin/layouts/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ partial "header.html" . }} - -404 NOT FOUND - -{{ partial "footer.html" . }} diff --git a/themes/hugo-xmin/layouts/_default/list.html b/themes/hugo-xmin/layouts/_default/list.html deleted file mode 100644 index 6940251..0000000 --- a/themes/hugo-xmin/layouts/_default/list.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ partial "header.html" . }} - -{{ .Content }} - -<ul> - {{ $pages := .Pages }} - {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} - {{ range (where $pages "Section" "!=" "") }} - <li> - <span class="date">{{ .Date.Format "01/02/2006" }}</span> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> - </li> - {{ end }} -</ul> - -{{ partial "footer.html" . }} diff --git a/themes/hugo-xmin/layouts/_default/single.html b/themes/hugo-xmin/layouts/_default/single.html deleted file mode 100644 index a9a9f86..0000000 --- a/themes/hugo-xmin/layouts/_default/single.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "header.html" . }} -<div class="article-meta"> -<h1>{{ .Title | markdownify }}</h1> -{{ with .Params.author }}<p class="author">{{ . }}</p>{{ end }} -{{ if (gt .Params.date 0) }}<p class="date">{{ .Date.Format "01/02/2006" }}</p>{{ end }} -</div> - -<main class="main"> -{{ .Content }} -</main> - -{{ partial "footer.html" . }} diff --git a/themes/hugo-xmin/layouts/_default/terms.html b/themes/hugo-xmin/layouts/_default/terms.html deleted file mode 100644 index 71f47e7..0000000 --- a/themes/hugo-xmin/layouts/_default/terms.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ partial "header.html" . }} - -<h1>{{ .Title }}</h1> - -<ul class="terms"> - {{ range .Data.Terms }} - <li> - <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }}) - </li> - {{ end }} -</ul> - -{{ partial "footer.html" . }} diff --git a/themes/hugo-xmin/layouts/index.html b/themes/hugo-xmin/layouts/index.html deleted file mode 100644 index dcaf3c2..0000000 --- a/themes/hugo-xmin/layouts/index.html +++ /dev/null @@ -1,28 +0,0 @@ -{{ partial "header.html" . }} - -{{ .Content }} - -<!-- -<h2>Cheat Sheets:</h2> -<ul> - {{ $pages := .Site.RegularPages }} - {{ range (where $pages "Section" "cheatsheets") }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> - </li> - {{ end }} -</ul> - -<h2>Articles:</h2> -<ul> - {{ $pages := .Site.RegularPages }} - {{ range (where $pages "Section" "articles") }} - <li> - <span class="date">{{ .Date.Format "01/02/2006" }}</span> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> - </li> - {{ end }} -</ul> ---> - -{{ partial "footer.html" . }} diff --git a/themes/hugo-xmin/layouts/partials/footer.html b/themes/hugo-xmin/layouts/partials/footer.html deleted file mode 100644 index e8560f2..0000000 --- a/themes/hugo-xmin/layouts/partials/footer.html +++ /dev/null @@ -1,8 +0,0 @@ - <footer> - {{ with .Site.Params.footer }} - <hr/> - {{ replace . "{Year}" now.Year | markdownify}} - {{ end }} - </footer> - </body> -</html> diff --git a/themes/hugo-xmin/layouts/partials/header.html b/themes/hugo-xmin/layouts/partials/header.html deleted file mode 100644 index c7ab268..0000000 --- a/themes/hugo-xmin/layouts/partials/header.html +++ /dev/null @@ -1,21 +0,0 @@ -<!DOCTYPE html> -<html lang="{{ .Site.LanguageCode }}"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ .Title }} | {{ .Site.Title }}</title> - <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" /> - <link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}" /> - <link rel="stylesheet" href="{{ "css/syntax.css" | relURL }}" /> - </head> - - <body> - <nav> - <a href="/">Home</a> - <a href="/about/">About</a> - <ul class="menu"> - {{ range .Site.Menus.main }} - <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> - {{ end }} - </ul> - </nav> diff --git a/themes/hugo-xmin/static/css/fonts.css b/themes/hugo-xmin/static/css/fonts.css deleted file mode 100644 index 8f5a82c..0000000 --- a/themes/hugo-xmin/static/css/fonts.css +++ /dev/null @@ -1,7 +0,0 @@ -body { - font-family: Georgia, "Times New Roman", serif; - font-size: 16px; -} -code { - font-family: ui-monospace, "SF Mono", Consolas, monospace; -} diff --git a/themes/hugo-xmin/static/css/style.css b/themes/hugo-xmin/static/css/style.css deleted file mode 100644 index a6d9ccb..0000000 --- a/themes/hugo-xmin/static/css/style.css +++ /dev/null @@ -1,162 +0,0 @@ -body { - max-width: 800px; - margin: auto; - padding: 2em 1.5em; - line-height: 1.55; - color: #18181b; - background: #f9f8f5; -} - -a { color: #166534; } -a:hover { color: #14532d; } - -/* nav */ -nav { - margin-bottom: 2.5em; -} -nav a, -.menu a { - font-family: Georgia, "Times New Roman", serif; - font-size: 0.75em; - text-decoration: none; - letter-spacing: 0.08em; - text-transform: uppercase; - color: #71717a; - margin-right: 1.2em; -} -nav a:hover, -.menu a:hover { - color: #18181b; -} -.menu { - display: inline; - list-style: none; - padding: 0; - margin: 0; -} -.menu li { display: inline; } - -/* article meta */ -.article-meta { - margin-bottom: 1.5em; -} -.article-meta h1, -.article-meta h2 { - font-family: Georgia, "Times New Roman", serif; - font-size: 1.5em; - font-weight: 700; - line-height: 1.2; - margin: 0 0 0.25em; - color: #111; -} -.date { - font-family: Georgia, "Times New Roman", serif; - font-size: 0.78em; - color: #71717a; -} - -/* footer */ -footer { - margin-top: 3em; - text-align: center; - font-family: Georgia, "Times New Roman", serif; - font-size: 0.78em; - color: #a1a1aa; -} -footer a { - text-decoration: none; - color: #71717a; -} -hr { - border: none; - border-top: 1px solid #e4e4e7; - margin: 2em 0; -} - -/* main */ -.main { margin-top: 0; } - -/* headings */ -h1, h2, h3, h4 { - font-family: Georgia, "Times New Roman", serif; - font-weight: 600; - line-height: 1.25; - margin-top: 1.7em; - margin-bottom: 0.3em; - color: #111; -} -h1 { font-size: 1.4em; } -h2 { - font-size: 1.15em; - border-top: 1px solid #d4d4d8; - padding-top: 0.75em; - margin-top: 1.5em; -} -h3 { font-size: 1em; } - -/* paragraphs */ -p { margin: 0.65em 0; } - -/* lists */ -ul, ol { - padding-left: 1.4em; - margin: 0.2em 0; -} -li { margin: 0.1em 0; } - -/* code */ -pre { - background: #dedad3; - border-left: 3px solid #c0bdb5; - padding: 0.85em 1em; - overflow-x: auto; - margin: 0.75em 0; - font-size: 88%; -} -code { - background: #dedad3; - padding: 0.12em 0.3em; - border-radius: 3px; - font-size: 88%; -} -pre code { - background: none; - padding: 0; - border-radius: 0; - font-size: inherit; -} - -/* blockquote */ -blockquote { - border-left: 3px solid #d4d4d8; - padding: 0 0.9em; - color: #52525b; - margin: 0.75em 0; -} - -/* table */ -table { - width: 100%; - border-collapse: collapse; - font-size: 0.9em; - margin: 0.75em 0; -} -thead th { - border-bottom: 2px solid #d4d4d8; - text-align: left; - padding: 0.3em 0.6em; - font-family: Georgia, "Times New Roman", serif; - font-size: 0.82em; - letter-spacing: 0.05em; - text-transform: uppercase; - color: #71717a; -} -td { - padding: 0.28em 0.6em; - border-bottom: 1px solid #ebebea; -} -tr:last-child td { border-bottom: none; } - -/* misc */ -img, iframe, video { max-width: 100%; } -main { hyphens: auto; } diff --git a/themes/hugo-xmin/theme.toml b/themes/hugo-xmin/theme.toml deleted file mode 100644 index bb3c8ac..0000000 --- a/themes/hugo-xmin/theme.toml +++ /dev/null @@ -1,13 +0,0 @@ -name = "XMin" -license = "MIT" -licenselink = "https://github.com/yihui/hugo-xmin/blob/master/LICENSE.md" -description = "eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS" -homepage = "https://xmin.yihui.org" -demosite = "https://xmin.yihui.org" -tags = ["minimal", "blog", "personal", "clean", "simple", "starter", "minimalist"] -features = ["blog"] -min_version = "0.18" - -[author] - name = "Yihui Xie" - homepage = "https://yihui.org" |