├── static ├── css │ ├── custom.css │ ├── syntax.css │ ├── style-dark.css │ ├── syntax-monokai.css │ ├── syntax-monokailight.css │ └── style.css └── js │ ├── custom.js │ └── script.js ├── layouts ├── shortcodes │ └── .gitkeep ├── partials │ ├── head_custom.html │ ├── toc.html │ ├── head_style.html │ ├── header.html │ ├── footer.html │ ├── author.html │ ├── share.html │ ├── head.html │ └── social.html ├── 404.html ├── _default │ ├── baseof.html │ ├── terms.html │ ├── list.html │ └── single.html └── section │ ├── about.html │ └── archives.html ├── exampleSite ├── content │ ├── archives │ │ └── _index.md │ ├── _index.md │ ├── homepage │ │ ├── index.md │ │ ├── about.md │ │ └── work.md │ ├── posts │ │ ├── _index.md │ │ ├── rich-content.md │ │ ├── emoji-support.md │ │ ├── math-typesetting.md │ │ ├── placeholder-text.md │ │ └── markdown-syntax.md │ └── about │ │ └── _index.md └── config.toml ├── images ├── tn.png └── screenshot.png ├── archetypes └── default.md ├── .circleci └── config.yml ├── theme.toml ├── LICENSE └── README.md /static/css/custom.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/custom.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/script.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/shortcodes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/head_custom.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/content/archives/_index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/content/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | +++ 4 | -------------------------------------------------------------------------------- /exampleSite/content/homepage/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | headless: true 3 | --- 4 | -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taikii/whiteplain/HEAD/images/tn.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taikii/whiteplain/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .TranslationBaseName "-" " " | title }}" 3 | date: {{ .Date }} 4 | subtitle: "" 5 | tags: [] 6 | --- 7 | -------------------------------------------------------------------------------- /static/css/syntax.css: -------------------------------------------------------------------------------- 1 | @import url(./syntax-monokailight.css) (prefers-color-scheme: light); 2 | @import url(./syntax-monokai.css) (prefers-color-scheme: dark); 3 | -------------------------------------------------------------------------------- /exampleSite/content/posts/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | aliases = ["posts", "articles", "blog", "showcase", "docs"] 3 | title = "Posts" 4 | author = "Hugo Authors" 5 | tags = ["index"] 6 | +++ 7 | -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main"}} 3 |
4 |
5 |

404 Not Found

6 |
7 |
8 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/toc.html: -------------------------------------------------------------------------------- 1 | 2 | {{- if or .Params.toc (and (gt .WordCount 400 ) (ne .Params.toc "false")) }} 3 | 6 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/head_style.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /exampleSite/content/homepage/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Our Difference' 3 | button: 'About us' 4 | weight: 2 5 | --- 6 | 7 | Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo. 8 | -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ partial "head.html" . }} 4 | 5 | {{ partial "header.html" . }} 6 | {{ block "main" . }}{{ end }} 7 | {{ partial "footer.html" . }} 8 | 9 | 10 | -------------------------------------------------------------------------------- /exampleSite/content/homepage/work.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'We Help Business Grow' 3 | button: 'Our Work' 4 | weight: 1 5 | --- 6 | 7 | Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. 8 | -------------------------------------------------------------------------------- /layouts/section/about.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main" }} 3 |
4 |
5 |

{{ .Title }}

6 | {{ with .Params.subtitle }}

{{ . }}

{{ end }} 7 |
8 | {{ partial "author.html" . }} 9 | {{ .Content }} 10 |
11 |
12 | {{ end }} -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | docker: 5 | - image: cibuilds/hugo:latest 6 | steps: 7 | - checkout: 8 | path: whiteplain 9 | - run: cd whiteplain/exampleSite && hugo --themesDir "../../" 10 | - run: 11 | name: "Test Website" 12 | command: htmlproofer whiteplain/exampleSite/public --allow-hash-href --check-html --empty-alt-ignore --disable_external --file-ignore "/\/page\/1\/index.html/" 13 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 | 2 | 12 |
-------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "Whiteplain" 2 | license = "MIT" 3 | licenselink = "https://github.com/taikii/whiteplain/blob/master/LICENSE" 4 | description = "Simple and functional theme for Hugo" 5 | homepage = "https://github.com/taikii/whiteplain" 6 | demosite = "https://whiteplain.pages.dev/" 7 | tags = ["blog", "white", "simple"] 8 | features = ["blog", "white", "simple"] 9 | min_version = "0.30" 10 | 11 | [author] 12 | name = "taikii" 13 | homepage = "https://taikii.net/" 14 | -------------------------------------------------------------------------------- /layouts/_default/terms.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main" }} 3 | {{ $data := .Data }} 4 | 7 |
8 |
9 | 17 |
18 |
19 | {{ end }} 20 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 20 | {{ template "_internal/google_analytics.html" . }} 21 | -------------------------------------------------------------------------------- /exampleSite/content/posts/rich-content.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Rich Content" 4 | date = "2019-03-10" 5 | description = "A brief description of Hugo Shortcodes" 6 | tags = [ 7 | "shortcodes", 8 | "privacy", 9 | ] 10 | +++ 11 | 12 | Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. 13 | 14 | --- 15 | 16 | ## YouTube Privacy Enhanced Shortcode 17 | 18 | {{< youtube ZJthWmvUzzc >}} 19 | 20 |
21 | 22 | --- 23 | 24 | ## Twitter Shortcode 25 | 26 | {{< twitter user="DesignReviewed" id="1085870671291310081" >}}. 27 | 28 |
29 | 30 | --- 31 | 32 | ## Vimeo Simple Shortcode 33 | 34 | {{< vimeo_simple 48912912 >}} 35 | -------------------------------------------------------------------------------- /static/css/style-dark.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #e0e0e0; 3 | background-color: #202020; 4 | } 5 | a { 6 | color: #5090ff; 7 | text-decoration: none; 8 | } 9 | a:hover, a:active { 10 | color: #80d0ff; 11 | } 12 | pre, code { 13 | background-color: inherit; 14 | } 15 | .site-navi a:hover, .site-navi a:active { 16 | color: white; 17 | } 18 | .list .article-titles:hover, .list .article-titles:active { 19 | color: white; 20 | } 21 | .article-title-series a:hover, .article-title-series a:active { 22 | color: white; 23 | } 24 | .article-meta a:hover, .article-meta a:active { 25 | color: white; 26 | } 27 | .article-series .series-title a:hover, .article-series .series-title a:active { 28 | color: white; 29 | } 30 | .archives .archives-item > a:visited { 31 | color: #707070; 32 | } 33 | .archives ul.taxonomies li a:hover, .archives ul.taxonomies li a:active { 34 | color: white; 35 | } 36 | .pagination li.active a:hover, .pagination li.active a:active { 37 | color: white; 38 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Taiki IKEGAME 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /layouts/partials/author.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | {{- with .Site.Params.author.name }}
{{ . }}
{{ end }} 4 |
5 | {{- if .Site.Params.author.gravatar }} 6 | {{- if in .Site.Params.author.gravatar "@" }} 7 | {{- $hash := trim .Site.Params.author.gravatar " " | lower | md5 }} 8 | 9 |
10 |
11 | {{- else }} 12 | 13 |
14 |
15 | {{- end }} 16 | {{- else if .Site.Params.author.avatar }} 17 |
18 | {{- else }} 19 |
20 | {{- end }} 21 |
22 | {{ partial "social.html" . }} 23 |
24 | -------------------------------------------------------------------------------- /exampleSite/content/about/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "About" 3 | description = "Hugo, the world's fastest framework for building websites" 4 | date = "2019-02-28" 5 | aliases = ["about-us", "about-hugo", "contact"] 6 | author = "Hugo Authors" 7 | +++ 8 | 9 | Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. 10 | 11 | Hugo makes use of a variety of open source projects including: 12 | 13 | * https://github.com/yuin/goldmark 14 | * https://github.com/alecthomas/chroma 15 | * https://github.com/muesli/smartcrop 16 | * https://github.com/spf13/cobra 17 | * https://github.com/spf13/viper 18 | 19 | Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. 20 | 21 | Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. 22 | 23 | Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. 24 | 25 | Learn more and contribute on [GitHub](https://github.com/gohugoio). 26 | -------------------------------------------------------------------------------- /layouts/section/archives.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main" }} 3 | 6 |
7 | {{ $paginator := .Paginate ((where .Site.Pages "Kind" "page").GroupByDate "2006-01") -}} 8 |
9 | 36 |
37 | {{ template "_internal/pagination.html" . }} 38 |
39 | {{ end }} 40 | -------------------------------------------------------------------------------- /exampleSite/content/posts/emoji-support.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Emoji Support" 4 | date = "2019-03-05" 5 | description = "Guide to emoji usage in Hugo" 6 | tags = [ 7 | "emoji", 8 | ] 9 | +++ 10 | 11 | Emoji can be enabled in a Hugo project in a number of ways. 12 | 13 | The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 14 | 15 | To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. 16 | 17 |

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

18 |
19 | 20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. 21 | 22 | *** 23 | 24 | **N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. 25 | 26 | {{< highlight html >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/posts/math-typesetting.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Math Typesetting 4 | date: 2019-03-08 5 | description: A brief guide to setup KaTeX 6 | math: true 7 | --- 8 | 9 | Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. 10 | 11 | 12 | In this example we will be using [KaTeX](https://katex.org/) 13 | 14 | - Create a partial under `/layouts/partials/math.html` 15 | - Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. 16 | - Include the partial in your templates like so: 17 | 18 | ```bash 19 | {{ if or .Params.math .Site.Params.math }} 20 | {{ partial "math.html" . }} 21 | {{ end }} 22 | ``` 23 | 24 | - To enable KaTex globally set the parameter `math` to `true` in a project's configuration 25 | - To enable KaTex on a per page basis include the parameter `math: true` in content files 26 | 27 | **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) 28 | 29 | {{< math.inline >}} 30 | {{ if or .Page.Params.math .Site.Params.math }} 31 | 32 | 33 | 34 | 35 | {{ end }} 36 | {{}} 37 | 38 | ### Examples 39 | 40 | {{< math.inline >}} 41 |

42 | Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) 43 |

44 | {{}} 45 | 46 | Block math: 47 | $$ 48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 49 | $$ 50 | -------------------------------------------------------------------------------- /layouts/partials/share.html: -------------------------------------------------------------------------------- 1 | {{- if .Site.Params.showShareIcons | default true }} 2 | 35 | 36 | {{- end }} 37 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main" }} 3 | {{- if eq .Kind "taxonomy" }} 4 | 7 | {{- else if eq .Kind "section" }} 8 | 11 | {{- end }} 12 |
13 |
14 | {{- $paginator := .Paginator }} 15 | {{- range $paginator.Pages }} 16 |
17 | 18 |

{{ .Title }}

19 | {{ with .Params.subtitle }}

{{ . }}

{{ end }} 20 |
21 | 44 | {{- if .Params.image }} 45 | 46 | {{- end }} 47 |
48 | {{- if .Truncated }} 49 | {{ .Summary }} 50 | {{- else }} 51 | {{ .Content }} 52 | {{- end }} 53 |
54 |
Read more...
55 |
56 |
57 | {{- end }} 58 |
59 | {{ template "_internal/pagination.html" . }} 60 |
61 | 62 | {{ end }} 63 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{- if .IsHome }} 5 | {{ .Site.Title }} 6 | 7 | 8 | {{- else }} 9 | {{ .Title }} - {{ .Site.Title }} 10 | 11 | 12 | {{- end }} 13 | {{- with .Description | default .Params.subtitle | default .Summary }} 14 | 15 | 16 | 17 | {{- end }} 18 | 19 | {{- with .Site.Params.favicon }} 20 | 21 | {{- end }} 22 | 23 | 24 | {{- if .IsPage }} 25 | 26 | {{- else }} 27 | 28 | {{- end }} 29 | {{- with default .Params.image | default .Site.Params.logo }} 30 | 31 | 32 | {{- end }} 33 | 34 | {{- with .Site.Params.twitter }} 35 | 36 | 37 | {{- end }} 38 | {{ hugo.Generator }} 39 | 40 | {{- with .OutputFormats.Get "RSS" }} 41 | 42 | 43 | {{- end }} 44 | 45 | {{- partial "head_custom.html" . }} 46 | 47 | {{- partial "head_style.html" . }} 48 | 49 | 50 | 51 | 52 | 53 | 54 | {{- if .Site.Params.useCDN | default false }} 55 | 56 | {{- else }} 57 | 58 | {{- end }} 59 | 60 | -------------------------------------------------------------------------------- /exampleSite/content/posts/placeholder-text.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Placeholder Text" 4 | date = "2019-03-09" 5 | description = "Lorem Ipsum Dolor Si Amet" 6 | tags = [ 7 | "markdown", 8 | "text", 9 | ] 10 | +++ 11 | 12 | Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. 13 | 14 | 1. Exierant elisi ambit vivere dedere 15 | 2. Duce pollice 16 | 3. Eris modo 17 | 4. Spargitque ferrea quos palude 18 | 19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 20 | 21 | 1. Comas hunc haec pietate fetum procerum dixit 22 | 2. Post torum vates letum Tiresia 23 | 3. Flumen querellas 24 | 4. Arcanaque montibus omnes 25 | 5. Quidem et 26 | 27 | # Vagus elidunt 28 | 29 | 30 | 31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 32 | 33 | ## Mane refeci capiebant unda mulcebat 34 | 35 | Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. 36 | 37 | Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. 38 | 39 | Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. 40 | 41 | {{< css.inline >}} 42 | 45 | {{< /css.inline >}} 46 | -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | baseurl = "https://example.com/" 2 | title = "Whiteplain" 3 | # themesDir = "../../" 4 | theme = ["whiteplain"] 5 | languageCode = "ja" 6 | # Disqus shortname 7 | #disqusShortname = "" 8 | # google analytics tracking id 9 | #googleAnalytics = "" 10 | pygmentsCodefences = true 11 | pygmentsUseClasses = true 12 | pygmentsOptions = "linenos=table" 13 | # Copyright notice. This is displayer in the footer. 14 | copyright = "© Copyright 2017 Foo Bar" 15 | 16 | [params] 17 | # useCDN = false 18 | # showShareIcons = true 19 | # Date format 20 | #dateFormat = "January 2, 2006" 21 | # Put images/favicon.ico file 22 | #favicon = "images/favicon.ico" 23 | 24 | # This is displayer in About page. 25 | [params.author] 26 | name = "Foo Bar" 27 | 28 | # Gravatar or Abatar image 29 | #gravatar = "Gravatar email or MD5 Hash" 30 | #avatar = "/path/to/avatar" 31 | 32 | #x = "X username" 33 | #twitter = "Twitter username" 34 | #facebook = "Facebook username" 35 | #googleplus = "Googleplus username" 36 | #instagram = "Instagram username" 37 | #threads = "Threads username" 38 | #tumblr = "Tumblr username" 39 | #flickr = "Flickr username" 40 | #reddit = "Reddit username" 41 | #linkedin = "Linkedin username" 42 | #slideshare = "Slideshare username" 43 | #github = "Github username" 44 | #gitlab = "Gitlab username" 45 | #bitbucket = "Bitbucket username" 46 | #stackoverflow = "Stackoverflow username" 47 | #jsfiddle = "Jsfiddle username" 48 | #codepen = "Codepen username" 49 | #deviantart = "Deviantart username" 50 | #behance = "Behance username" 51 | #dribbble = "Dribbble username" 52 | #wordpress = "Wordpress username" 53 | #medium = "Medium username" 54 | #foursquare = "Foursquare username" 55 | #xing = "Xing username" 56 | #quora = "Quora username" 57 | #youtube = "YouTube username" 58 | #tiktok = "TikTok username" 59 | #vimeo = "Vimeo username" 60 | #whatsapp = "Whatsapp username" 61 | #skype = "Skype username" 62 | #snapchat = "Snapchat username" 63 | #pinterest = "Pinterest username" 64 | #telegram = "Telegram username" 65 | #vine = "Vine username" 66 | #email = "Your email" 67 | 68 | [[params.author.social]] 69 | name = "Custom social link1" 70 | iclass = "fa-brands fa-github" 71 | url = "https://example.com/whiteplain" 72 | 73 | [[params.author.social]] 74 | name = "Custom social link2" 75 | iclass = "fa-brands fa-google" 76 | url = "https://example.com/whiteplain" 77 | 78 | [taxonomies] 79 | category = "categories" 80 | tag = "tags" 81 | series = "series" 82 | 83 | [[menu.main]] 84 | name = "Categories" 85 | weight = 1 86 | identifier = "categories" 87 | url = "/categories/" 88 | [[menu.main]] 89 | name = "Tags" 90 | weight = 2 91 | identifier = "tags" 92 | url = "/tags/" 93 | [[menu.main]] 94 | name = "Archives" 95 | weight = 3 96 | identifier = "archives" 97 | url = "/archives/" 98 | [[menu.main]] 99 | name = "About" 100 | weight = 4 101 | identifier = "about" 102 | url = "/about/" 103 | 104 | [[menu.footer]] 105 | name = "About" 106 | weight = 1 107 | identifier = "about" 108 | url = "/about/" 109 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | 2 | {{ define "main" }} 3 |
4 |
5 | {{ with .Params.image }}{{ end }} 6 | {{ with .Params.series }}

{{ index . 0 }} /

{{ end }} 7 |

{{ .Title }}

8 | {{ with .Params.subtitle }}

{{ . }}

{{ end }} 9 |
10 | 33 | {{ partial "toc.html" . }} 34 | {{ .Content }} 35 |
36 | 37 | {{- if .Params.series }} 38 |
39 | {{- $thispagefilepath := .File.Path }} 40 | {{- range .Params.series }} 41 | {{- $lseries := replaceRE "( |–)" "-" (lower .) }} 42 |

 {{ . }}

43 |
    44 | {{- range (index $.Site.Taxonomies.series $lseries).Pages.ByDate.Reverse }} 45 | {{- if eq $thispagefilepath .File.Path }} 46 |
  1. {{ .LinkTitle }}
  2. 47 | {{- else }} 48 |
  3. {{ .LinkTitle }}
  4. 49 | {{- end }} 50 | {{- end }} 51 |
52 | {{- end }} 53 |
54 | {{- end }} 55 | 56 | {{ partial "share.html" . }} 57 | 58 | {{- if and .Site.Config.Services.Disqus.Shortname (or (not (isset .Params "comments")) (eq .Params.comments nil) .Params.comments) }} 59 |
60 | {{ template "_internal/disqus.html" . }} 61 |
62 | {{- end }} 63 | 64 | 80 |
81 | {{ end }} 82 | -------------------------------------------------------------------------------- /static/css/syntax-monokai.css: -------------------------------------------------------------------------------- 1 | /* Background */ .chroma { color: #f8f8f2; background-color: #272822 } 2 | /* Error */ .chroma .err { color: #960050; background-color: #1e0010 } 3 | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } 4 | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } 5 | /* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } 6 | /* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 7 | /* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 8 | /* Keyword */ .chroma .k { color: #66d9ef } 9 | /* KeywordConstant */ .chroma .kc { color: #66d9ef } 10 | /* KeywordDeclaration */ .chroma .kd { color: #66d9ef } 11 | /* KeywordNamespace */ .chroma .kn { color: #f92672 } 12 | /* KeywordPseudo */ .chroma .kp { color: #66d9ef } 13 | /* KeywordReserved */ .chroma .kr { color: #66d9ef } 14 | /* KeywordType */ .chroma .kt { color: #66d9ef } 15 | /* NameAttribute */ .chroma .na { color: #a6e22e } 16 | /* NameClass */ .chroma .nc { color: #a6e22e } 17 | /* NameConstant */ .chroma .no { color: #66d9ef } 18 | /* NameDecorator */ .chroma .nd { color: #a6e22e } 19 | /* NameException */ .chroma .ne { color: #a6e22e } 20 | /* NameFunction */ .chroma .nf { color: #a6e22e } 21 | /* NameOther */ .chroma .nx { color: #a6e22e } 22 | /* NameTag */ .chroma .nt { color: #f92672 } 23 | /* Literal */ .chroma .l { color: #ae81ff } 24 | /* LiteralDate */ .chroma .ld { color: #e6db74 } 25 | /* LiteralString */ .chroma .s { color: #e6db74 } 26 | /* LiteralStringAffix */ .chroma .sa { color: #e6db74 } 27 | /* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } 28 | /* LiteralStringChar */ .chroma .sc { color: #e6db74 } 29 | /* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } 30 | /* LiteralStringDoc */ .chroma .sd { color: #e6db74 } 31 | /* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } 32 | /* LiteralStringEscape */ .chroma .se { color: #ae81ff } 33 | /* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } 34 | /* LiteralStringInterpol */ .chroma .si { color: #e6db74 } 35 | /* LiteralStringOther */ .chroma .sx { color: #e6db74 } 36 | /* LiteralStringRegex */ .chroma .sr { color: #e6db74 } 37 | /* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } 38 | /* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } 39 | /* LiteralNumber */ .chroma .m { color: #ae81ff } 40 | /* LiteralNumberBin */ .chroma .mb { color: #ae81ff } 41 | /* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } 42 | /* LiteralNumberHex */ .chroma .mh { color: #ae81ff } 43 | /* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } 44 | /* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } 45 | /* LiteralNumberOct */ .chroma .mo { color: #ae81ff } 46 | /* Operator */ .chroma .o { color: #f92672 } 47 | /* OperatorWord */ .chroma .ow { color: #f92672 } 48 | /* Comment */ .chroma .c { color: #75715e } 49 | /* CommentHashbang */ .chroma .ch { color: #75715e } 50 | /* CommentMultiline */ .chroma .cm { color: #75715e } 51 | /* CommentSingle */ .chroma .c1 { color: #75715e } 52 | /* CommentSpecial */ .chroma .cs { color: #75715e } 53 | /* CommentPreproc */ .chroma .cp { color: #75715e } 54 | /* CommentPreprocFile */ .chroma .cpf { color: #75715e } 55 | /* GenericDeleted */ .chroma .gd { color: #f92672 } 56 | /* GenericEmph */ .chroma .ge { font-style: italic } 57 | /* GenericInserted */ .chroma .gi { color: #a6e22e } 58 | /* GenericStrong */ .chroma .gs { font-weight: bold } 59 | /* GenericSubheading */ .chroma .gu { color: #75715e } 60 | -------------------------------------------------------------------------------- /static/css/syntax-monokailight.css: -------------------------------------------------------------------------------- 1 | /* Background */ .chroma { color: #272822; background-color: #fafafa } 2 | /* Error */ .chroma .err { color: #960050; background-color: #1e0010 } 3 | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } 4 | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } 5 | /* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } 6 | /* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 7 | /* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 8 | /* Keyword */ .chroma .k { color: #00a8c8 } 9 | /* KeywordConstant */ .chroma .kc { color: #00a8c8 } 10 | /* KeywordDeclaration */ .chroma .kd { color: #00a8c8 } 11 | /* KeywordNamespace */ .chroma .kn { color: #f92672 } 12 | /* KeywordPseudo */ .chroma .kp { color: #00a8c8 } 13 | /* KeywordReserved */ .chroma .kr { color: #00a8c8 } 14 | /* KeywordType */ .chroma .kt { color: #00a8c8 } 15 | /* Name */ .chroma .n { color: #111111 } 16 | /* NameAttribute */ .chroma .na { color: #75af00 } 17 | /* NameBuiltin */ .chroma .nb { color: #111111 } 18 | /* NameBuiltinPseudo */ .chroma .bp { color: #111111 } 19 | /* NameClass */ .chroma .nc { color: #75af00 } 20 | /* NameConstant */ .chroma .no { color: #00a8c8 } 21 | /* NameDecorator */ .chroma .nd { color: #75af00 } 22 | /* NameEntity */ .chroma .ni { color: #111111 } 23 | /* NameException */ .chroma .ne { color: #75af00 } 24 | /* NameFunction */ .chroma .nf { color: #75af00 } 25 | /* NameFunctionMagic */ .chroma .fm { color: #111111 } 26 | /* NameLabel */ .chroma .nl { color: #111111 } 27 | /* NameNamespace */ .chroma .nn { color: #111111 } 28 | /* NameOther */ .chroma .nx { color: #75af00 } 29 | /* NameProperty */ .chroma .py { color: #111111 } 30 | /* NameTag */ .chroma .nt { color: #f92672 } 31 | /* NameVariable */ .chroma .nv { color: #111111 } 32 | /* NameVariableClass */ .chroma .vc { color: #111111 } 33 | /* NameVariableGlobal */ .chroma .vg { color: #111111 } 34 | /* NameVariableInstance */ .chroma .vi { color: #111111 } 35 | /* NameVariableMagic */ .chroma .vm { color: #111111 } 36 | /* Literal */ .chroma .l { color: #ae81ff } 37 | /* LiteralDate */ .chroma .ld { color: #d88200 } 38 | /* LiteralString */ .chroma .s { color: #d88200 } 39 | /* LiteralStringAffix */ .chroma .sa { color: #d88200 } 40 | /* LiteralStringBacktick */ .chroma .sb { color: #d88200 } 41 | /* LiteralStringChar */ .chroma .sc { color: #d88200 } 42 | /* LiteralStringDelimiter */ .chroma .dl { color: #d88200 } 43 | /* LiteralStringDoc */ .chroma .sd { color: #d88200 } 44 | /* LiteralStringDouble */ .chroma .s2 { color: #d88200 } 45 | /* LiteralStringEscape */ .chroma .se { color: #8045ff } 46 | /* LiteralStringHeredoc */ .chroma .sh { color: #d88200 } 47 | /* LiteralStringInterpol */ .chroma .si { color: #d88200 } 48 | /* LiteralStringOther */ .chroma .sx { color: #d88200 } 49 | /* LiteralStringRegex */ .chroma .sr { color: #d88200 } 50 | /* LiteralStringSingle */ .chroma .s1 { color: #d88200 } 51 | /* LiteralStringSymbol */ .chroma .ss { color: #d88200 } 52 | /* LiteralNumber */ .chroma .m { color: #ae81ff } 53 | /* LiteralNumberBin */ .chroma .mb { color: #ae81ff } 54 | /* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } 55 | /* LiteralNumberHex */ .chroma .mh { color: #ae81ff } 56 | /* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } 57 | /* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } 58 | /* LiteralNumberOct */ .chroma .mo { color: #ae81ff } 59 | /* Operator */ .chroma .o { color: #f92672 } 60 | /* OperatorWord */ .chroma .ow { color: #f92672 } 61 | /* Punctuation */ .chroma .p { color: #111111 } 62 | /* Comment */ .chroma .c { color: #75715e } 63 | /* CommentHashbang */ .chroma .ch { color: #75715e } 64 | /* CommentMultiline */ .chroma .cm { color: #75715e } 65 | /* CommentSingle */ .chroma .c1 { color: #75715e } 66 | /* CommentSpecial */ .chroma .cs { color: #75715e } 67 | /* CommentPreproc */ .chroma .cp { color: #75715e } 68 | /* CommentPreprocFile */ .chroma .cpf { color: #75715e } 69 | /* GenericEmph */ .chroma .ge { font-style: italic } 70 | /* GenericStrong */ .chroma .gs { font-weight: bold } 71 | -------------------------------------------------------------------------------- /exampleSite/content/posts/markdown-syntax.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Markdown Syntax Guide" 4 | date = "2019-03-11" 5 | description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." 6 | tags = [ 7 | "markdown", 8 | "css", 9 | "html", 10 | ] 11 | categories = [ 12 | "themes", 13 | "syntax", 14 | ] 15 | series = ["Themes Guide"] 16 | aliases = ["migrate-from-jekyl"] 17 | +++ 18 | 19 | This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. 20 | 21 | 22 | ## Headings 23 | 24 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 25 | 26 | # H1 27 | ## H2 28 | ### H3 29 | #### H4 30 | ##### H5 31 | ###### H6 32 | 33 | ## Paragraph 34 | 35 | Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. 36 | 37 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 38 | 39 | ## Blockquotes 40 | 41 | The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. 42 | 43 | #### Blockquote without attribution 44 | 45 | > Tiam, ad mint andaepu dandae nostion secatur sequo quae. 46 | > **Note** that you can use *Markdown syntax* within a blockquote. 47 | 48 | #### Blockquote with attribution 49 | 50 | > Don't communicate by sharing memory, share memory by communicating.
51 | > — Rob Pike[^1] 52 | 53 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 54 | 55 | ## Tables 56 | 57 | Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. 58 | 59 | Name | Age 60 | --------|------ 61 | Bob | 27 62 | Alice | 23 63 | 64 | #### Inline Markdown within tables 65 | 66 | | Italics | Bold | Code | 67 | | -------- | -------- | ------ | 68 | | *italics* | **bold** | `code` | 69 | 70 | ## Code Blocks 71 | 72 | #### Code block with backticks 73 | 74 | ```html 75 | 76 | 77 | 78 | 79 | Example HTML5 Document 80 | 81 | 82 |

Test

83 | 84 | 85 | ``` 86 | 87 | #### Code block indented with four spaces 88 | 89 | 90 | 91 | 92 | 93 | Example HTML5 Document 94 | 95 | 96 |

Test

97 | 98 | 99 | 100 | #### Code block with Hugo's internal highlight shortcode 101 | {{< highlight html >}} 102 | 103 | 104 | 105 | 106 | Example HTML5 Document 107 | 108 | 109 |

Test

110 | 111 | 112 | {{< /highlight >}} 113 | 114 | ## List Types 115 | 116 | #### Ordered List 117 | 118 | 1. First item 119 | 2. Second item 120 | 3. Third item 121 | 122 | #### Unordered List 123 | 124 | * List item 125 | * Another item 126 | * And another item 127 | 128 | #### Nested list 129 | 130 | * Fruit 131 | * Apple 132 | * Orange 133 | * Banana 134 | * Dairy 135 | * Milk 136 | * Cheese 137 | 138 | ## Other Elements — abbr, sub, sup, kbd, mark 139 | 140 | GIF is a bitmap image format. 141 | 142 | H2O 143 | 144 | Xn + Yn = Zn 145 | 146 | Press CTRL+ALT+Delete to end the session. 147 | 148 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 149 | -------------------------------------------------------------------------------- /layouts/partials/social.html: -------------------------------------------------------------------------------- 1 | 2 | {{- with .Site.Params.author }} 3 | 113 | {{- end }} 114 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Whiteplain 2 | 3 | [![CircleCI](https://circleci.com/gh/taikii/whiteplain.svg?style=shield)](https://circleci.com/gh/taikii/whiteplain) 4 | 5 | This is simple and functional [Hugo](https://gohugo.io/) theme. 6 | 7 | ![](images/tn.png) 8 | 9 | ## Installation 10 | 11 | ``` 12 | $ git clone https://github.com/taikii/whiteplain.git themes/whiteplain 13 | ``` 14 | Or 15 | ``` 16 | $ git submodule add https://github.com/taikii/whiteplain.git themes/whiteplain 17 | ``` 18 | 19 | ## More colors 20 | 21 | This theme automatically switches between light and dark styles depending on the OS color scheme. You can fix the light or dark style by adding the following theme. 22 | 23 | * [Dark](https://github.com/taikii/whiteplain-dark) Fix in dark style. 24 | * [Light](https://github.com/taikii/whiteplain-light) Fix in light style. 25 | 26 | ## Usage 27 | 28 | ### Configration 29 | 30 | ```toml 31 | baseurl = "https://example.com/" 32 | title = "Whiteplain" 33 | theme = "whiteplain" 34 | languageCode = "en" 35 | # Disqus shortname 36 | disqusShortname = "Shortname" 37 | # google analytics tracking id 38 | googleAnalytics = "Toracking ID" 39 | 40 | # Copyright notice. This is displayer in the footer. 41 | copyright = "© Copyright 2017 Your name" 42 | 43 | [params] 44 | # whether to use CDN or local file for fontawesome 45 | #useCDN = false 46 | # whether to include external sharing scripts and icons for twitter, facebook and co. 47 | #showShareIcons = false 48 | # Date format 49 | #dateFormat = "January 2, 2006" 50 | 51 | # This is displayer in About page. 52 | [params.author] 53 | name = "Your name" 54 | # Gravatar or Abatar image 55 | gravatar = "Gravatar email or MD5 Hash" 56 | #avatar = "/path/to/avatar" 57 | 58 | x = "X username" 59 | twitter = "Twitter username" 60 | facebook = "Facebook username" 61 | googleplus = "Googleplus username" 62 | instagram = "Instagram username" 63 | threads = "Threads username" 64 | tumblr = "Tumblr username" 65 | flickr = "Flickr username" 66 | reddit = "Reddit username" 67 | linkedin = "Linkedin username" 68 | slideshare = "Slideshare username" 69 | github = "Github username" 70 | gitlab = "Gitlab username" 71 | bitbucket = "Bitbucket username" 72 | stackoverflow = "Stackoverflow username" 73 | jsfiddle = "Jsfiddle username" 74 | codepen = "Codepen username" 75 | deviantart = "Deviantart username" 76 | behance = "Behance username" 77 | dribbble = "Dribbble username" 78 | wordpress = "Wordpress username" 79 | medium = "Medium username" 80 | foursquare = "Foursquare username" 81 | xing = "Xing username" 82 | quora = "Quora username" 83 | youtube = "YouTube username" 84 | tiktok = "TikTok username" 85 | vimeo = "Vimeo username" 86 | whatsapp = "Whatsapp username" 87 | skype = "Skype username" 88 | snapchat = "Snapchat username" 89 | pinterest = "Pinterest username" 90 | telegram = "Telegram username" 91 | vine = "Vine username" 92 | email = "Your email" 93 | 94 | [[params.author.social]] 95 | name = "Custom social link1" 96 | iclass = "fa-brands fa-github" 97 | url = "https://example.com/whiteplain" 98 | 99 | [[params.author.social]] 100 | name = "Custom social link2" 101 | iclass = "fa-brands fa-google" 102 | url = "https://example.com/whiteplain" 103 | 104 | [taxonomies] 105 | category = "categories" 106 | tag = "tags" 107 | series = "series" 108 | 109 | # Header Menu 110 | [[menu.main]] 111 | name = "Categories" 112 | identifier = "categories" 113 | url = "/categories/" 114 | weight = 1 115 | [[menu.main]] 116 | name = "Tags" 117 | identifier = "tags" 118 | url = "/tags/" 119 | weight = 2 120 | [[menu.main]] 121 | name = "Archives" 122 | identifier = "archives" 123 | url = "/archives/" 124 | weight = 3 125 | [[menu.main]] 126 | name = "About" 127 | identifier = "about" 128 | url = "/about/" 129 | weight = 4 130 | 131 | # Footer Menu 132 | [[menu.footer]] 133 | name = "About" 134 | weight = 1 135 | identifier = "about" 136 | url = "/about/" 137 | ``` 138 | 139 | ### Archives page 140 | The Archive page will be displayed, if you create `content/archives/_index.html`. 141 | The file can be 0 bytes. 142 | ``` 143 | Hugo site direcctory 144 | └── content 145 | └── archives 146 | └── _index.md 147 | ``` 148 | 149 | ### About page 150 | The author information is displayed on the About page. You should create an About page in `content/about/_index.md`. 151 | ``` 152 | Your site direcctory 153 | └── content 154 | └── about 155 | └── _index.md 156 | ``` 157 | 158 | ### Customize Stylesheet and Javascript 159 | You can customize Stylesheet and Javascript. When you create `static/css/custom.css` `static/js/custom.js`, it will be loaded automatically. 160 | 161 | Default Syntax highlighter style is `monokai`. If you want to change the style, create `static/css/syntax.css`. See [Hugo Syntax Highlighting](https://gohugo.io/content-management/syntax-highlighting/) about Syntax highlighting. 162 | ``` 163 | Your site direcctory 164 | └── static 165 | ├── css 166 | │ ├── custom.css 167 | │ └── syntax.css 168 | └── js 169 | └── custom.js 170 | ``` 171 | 172 | If you want to use libraries and frameworks, create `layouts/partials/head_custom.html`. Its contents are read into `...`. 173 | ``` 174 | Your site direcctory 175 | ├── layouts 176 | └── partials 177 | └── head_custom.html 178 | ``` 179 | 180 | ### Customize Share Buttons 181 | 1. Copy `themes/whiteplain/layouts/partials/share.html` to `layouts/partials/share.html`. 182 | 2. Customize `layouts/partials/share.html`. 183 | ``` 184 | Your site direcctory 185 | ├── layouts 186 | │ └── partials 187 | │ └── share.html 188 | └── themes 189 | └── whiteplain 190 | └── layouts 191 | └── partials 192 | └── share.html 193 | ``` 194 | 195 | ### Customize Author SNS Icons 196 | 1. Copy `themes/whiteplain/layouts/partials/social.html` to `layouts/partials/social.html`. 197 | 2. Customize `layouts/partials/social.html`. 198 | ``` 199 | Your site direcctory 200 | ├── layouts 201 | │ └── partials 202 | │ └── social.html 203 | └── themes 204 | └── whiteplain 205 | └── layouts 206 | └── partials 207 | └── social.html 208 | ``` 209 | 210 | ## Icons 211 | This theme using [Font Awesome](https://fontawesome.com/). 212 | 213 | ## License 214 | [MIT](LICENSE) 215 | -------------------------------------------------------------------------------- /static/css/style.css: -------------------------------------------------------------------------------- 1 | html { 2 | font-size: 1em; 3 | } 4 | body { 5 | font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Noto Sans Japanese", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif; 6 | color: #444444; 7 | overflow-y: scroll; 8 | line-height: 1.2; 9 | } 10 | a { 11 | color: #2060d0; 12 | text-decoration: none; 13 | } 14 | a:hover, a:active { 15 | color: #5090ff; 16 | } 17 | hr { 18 | height: 1px; 19 | border: 0; 20 | border-top: solid 1px lightgray; 21 | margin: 0; 22 | } 23 | pre, code { 24 | font-family: Consolas, 'Courier New', Courier, Monaco, monospace; 25 | background-color: #F0F3F3; 26 | } 27 | pre { 28 | padding: 4px 8px; 29 | } 30 | :not(pre) > code { 31 | padding: 2px 4px; 32 | margin: 0 2px; 33 | } 34 | blockquote { 35 | margin: 0; 36 | margin-left: 40px; 37 | border-left: solid 4px #b4c6c7; 38 | padding-left: 8px; 39 | font-style: normal; 40 | color: #7080a0; 41 | } 42 | blockquote blockquote { 43 | margin-left: 0; 44 | border-left-color: #e7c3e5; 45 | } 46 | blockquote blockquote blockquote { 47 | border-left-color: #c3e7d2; 48 | } 49 | blockquote blockquote blockquote blockquote { 50 | border-left-color: lightgray; 51 | } 52 | 53 | /* Site header */ 54 | .site-header { 55 | max-width: 900px; 56 | margin-left: auto; 57 | margin-right: auto; 58 | } 59 | .site-navi { 60 | display: -webkit-flex; 61 | display: flex; 62 | -webkit-justify-content: flex-end; 63 | justify-content: flex-end; 64 | -webkit-align-items: baseline; 65 | align-items: baseline; 66 | padding-bottom: 8px; 67 | } 68 | .site-navi a { 69 | color: inherit; 70 | text-decoration: none; 71 | } 72 | .site-navi a:hover, .site-navi a:active { 73 | color: gray; 74 | } 75 | .site-title { 76 | -webkit-flex-grow: 1; 77 | flex-grow: 1; 78 | font-size: 2rem; 79 | margin: 0; 80 | margin-top: 10px; 81 | padding: 0; 82 | font-weight: normal; 83 | } 84 | .site-navi-items { 85 | -webkit-flex-grow: 0; 86 | flex-grow: 0; 87 | display: -webkit-flex; 88 | display: flex; 89 | -webkit-align-items: flex-end; 90 | -webkit-flex-wrap: wrap; 91 | -webkit-justify-content: flex-end; 92 | justify-content: flex-end; 93 | flex-wrap: wrap; 94 | align-items: flex-end; 95 | font-size: 1.2em; 96 | list-style-type: none; 97 | margin: 0; 98 | margin-top: 10px; 99 | padding: 0; 100 | } 101 | .site-navi-items li { 102 | padding-left: 20px; 103 | white-space: nowrap; 104 | } 105 | .site-header-bottom { 106 | margin-top: 0; 107 | margin-bottom: 40px; 108 | margin-left: auto; 109 | margin-right: auto; 110 | width: 100%; 111 | } 112 | 113 | /* Breadcrumb */ 114 | .breadcrumb { 115 | max-width: 900px; 116 | margin-left: auto; 117 | margin-right: auto; 118 | margin-bottom: 20px; 119 | font-size: 1.6em; 120 | } 121 | 122 | /* Code highlight */ 123 | .highlight pre, .highlight code { 124 | background-color: inherit; 125 | padding: 0; 126 | } 127 | 128 | /* Main contents */ 129 | .main { 130 | max-width: 900px; 131 | margin-left: auto; 132 | margin-right: auto; 133 | } 134 | 135 | /* article */ 136 | .article { 137 | margin-bottom: 40px; 138 | line-height: 1.5; 139 | } 140 | .article img { 141 | max-width: 100%; 142 | box-sizing: border-box; 143 | border: solid 1px lightgray; 144 | padding: 4px; 145 | } 146 | .article > table { 147 | width: auto; 148 | overflow-x: auto; 149 | overflow-y: hidden; 150 | border: solid 1px lightgray; 151 | border-spacing: 0; 152 | border-collapse: collapse; 153 | } 154 | .article > table th, .article > table td { 155 | border: solid 1px lightgray; 156 | padding: 4px; 157 | } 158 | .article > div { 159 | width: auto; 160 | overflow-x: auto; 161 | overflow-y: hidden; 162 | } 163 | .article > pre { 164 | width: auto; 165 | overflow-x: auto; 166 | overflow-y: hidden; 167 | } 168 | .article-image { 169 | width: 100%; 170 | box-sizing: border-box; 171 | margin-bottom: 20px; 172 | } 173 | .article-title { 174 | margin: 0; 175 | padding: 0; 176 | } 177 | .article-subtitle { 178 | margin: 0; 179 | padding: 0; 180 | } 181 | .article-title-series { 182 | margin: 0; 183 | padding: 0; 184 | } 185 | .article-title-series a { 186 | color: inherit; 187 | } 188 | .article-title-series a:hover, .article-title-series a:active { 189 | color: gray; 190 | } 191 | .article-title-bottom { 192 | margin-top: 5px; 193 | } 194 | .about .article-title-bottom { 195 | margin-bottom: 40px; 196 | } 197 | .article .article-meta { 198 | list-style-type: none; 199 | padding: 0; 200 | margin: 5px 0 40px 0; 201 | display: -webkit-flex; 202 | display: flex; 203 | -webkit-align-items: flex-end; 204 | align-items: flex-end; 205 | -webkit-flex-wrap: wrap; 206 | flex-wrap: wrap; 207 | } 208 | .article-meta a { 209 | color: inherit; 210 | } 211 | .article-meta a:hover, .article-meta a:active { 212 | color: gray; 213 | } 214 | .article-meta li { 215 | padding: 0; 216 | padding-right: 4px; 217 | margin: 0; 218 | } 219 | .article-meta li.article-meta-date { 220 | padding: 0; 221 | padding-right: 24px; 222 | } 223 | 224 | .article-series { 225 | margin-bottom: 40px; 226 | } 227 | .article-series .series-title a { 228 | color: inherit; 229 | } 230 | .article-series .series-title a:hover, .article-series .series-title a:active { 231 | color: gray; 232 | } 233 | .article-series .active { 234 | } 235 | 236 | .article-share { 237 | list-style-type: none; 238 | padding: 0; 239 | margin: 0; 240 | margin-bottom: 40px; 241 | display: -webkit-flex; 242 | display: flex; 243 | -webkit-align-items: flex-end; 244 | align-items: flex-end; 245 | -webkit-flex-wrap: wrap; 246 | flex-wrap: wrap; 247 | } 248 | .article-share li { 249 | margin-right: 4px; 250 | vertical-align: bottom; 251 | padding: 0; 252 | font-size: 0.8em; 253 | } 254 | 255 | .article-share li a:hover, .article-share li a:active { 256 | color: #fff; 257 | } 258 | 259 | .disqus-comments { 260 | margin-bottom: 40px; 261 | } 262 | .article-pager { 263 | } 264 | 265 | .toc { 266 | float: right; 267 | padding: 4px; 268 | margin: 0; 269 | margin-left: 10px; 270 | margin-bottom: 10px; 271 | border: solid 1px lightgray; 272 | } 273 | .toc ul { 274 | list-style-type: none; 275 | padding: 0; 276 | padding-left: 12px; 277 | margin: 0; 278 | } 279 | .toc nav > ul { 280 | padding-left: 0; 281 | } 282 | 283 | /* pager */ 284 | .pager { 285 | list-style-type: none; 286 | padding: 0; 287 | display: -webkit-flex; 288 | display: flex; 289 | -webkit-justify-content: center; 290 | justify-content: center; 291 | } 292 | .pager-newer { 293 | margin-right: 40px; 294 | } 295 | .pager-older { 296 | } 297 | .pager-noitem { 298 | color: gray; 299 | } 300 | 301 | /* About */ 302 | .author { 303 | } 304 | .author-name { 305 | font-size: 1.2em; 306 | font-weight: bold; 307 | margin-bottom: 10px; 308 | text-align: center; 309 | } 310 | .author-avatar-wrapper { 311 | margin-left: auto; 312 | margin-right: auto; 313 | padding: 0; 314 | width:158px; 315 | height:158px; 316 | border-radius: 50%; 317 | border: solid 1px lightgray; 318 | } 319 | .author-avatar { 320 | width:150px; 321 | height:150px; 322 | margin: 4px; 323 | border-radius: 50%; 324 | background-color: lightgray; 325 | background-repeat: no-repeat; 326 | background-position: center center; 327 | background-size: contain; 328 | } 329 | .author-social { 330 | list-style-type: none; 331 | padding: 0; 332 | display: -webkit-flex; 333 | display: flex; 334 | -webkit-justify-content: center; 335 | justify-content: center; 336 | -webkit-flex-wrap: wrap; 337 | flex-wrap: wrap; 338 | } 339 | .author-social li { 340 | font-size: 1.5em; 341 | margin-left: 6px; 342 | margin-right: 6px; 343 | } 344 | .author-social a { 345 | color: inherit; 346 | } 347 | .author-social a:hover, .author-social a:active { 348 | color: gray; 349 | } 350 | 351 | /* List page */ 352 | .list { 353 | } 354 | .list .article { 355 | padding-bottom: 40px; 356 | margin-bottom: 40px; 357 | border-bottom: solid 1px lightgray; 358 | } 359 | .list .article-titles { 360 | color: inherit; 361 | } 362 | .list .article-titles:hover, .list .article-titles:active { 363 | color: gray; 364 | } 365 | .list .article-meta { 366 | margin-top: 6px; 367 | margin-bottom: 15px; 368 | } 369 | .list .article-image { 370 | width: 200px; 371 | float: left; 372 | margin: 0; 373 | margin-right: 8px; 374 | } 375 | .list .article-content { 376 | } 377 | .list .article-readmore { 378 | } 379 | .list .article-floatclear { 380 | clear: both; 381 | height: 0; 382 | } 383 | 384 | /* Site footer */ 385 | .site-footer { 386 | max-width: 900px; 387 | margin-left: auto; 388 | margin-right: auto; 389 | margin-top: 70px; 390 | margin-bottom: 20px; 391 | font-size: 0.8rem; 392 | display: -webkit-flex; 393 | display: flex; 394 | -webkit-align-items: baseline; 395 | align-items: baseline; 396 | -webkit-flex-wrap: wrap; 397 | flex-wrap: wrap; 398 | 399 | } 400 | 401 | /* Footer */ 402 | .site-footer .copyright { 403 | -webkit-flex-grow: 0; 404 | flex-grow: 0; 405 | margin-right: 10px; 406 | } 407 | .site-footer-items { 408 | -webkit-flex-grow: 0; 409 | flex-grow: 0; 410 | list-style-type: none; 411 | margin: 0; 412 | padding: 0; 413 | display: -webkit-flex; 414 | display: flex; 415 | -webkit-align-items: baseline; 416 | align-items: baseline; 417 | -webkit-flex-wrap: wrap; 418 | flex-wrap: wrap; 419 | } 420 | .site-footer-items li { 421 | font-size: 0.8rem; 422 | margin: 0 4px 0 4px; 423 | padding: 0; 424 | } 425 | .site-footer .powerdby { 426 | -webkit-flex-grow: 1; 427 | flex-grow: 1; 428 | margin-left: 10px; 429 | text-align: right; 430 | } 431 | 432 | /* Terms page */ 433 | .terms { 434 | padding: 0 20px 0 20px; 435 | } 436 | .terms > ul { 437 | list-style-type: none; 438 | margin: 0; 439 | padding: 0; 440 | } 441 | .terms > ul > li { 442 | padding: 0 0 3px 0; 443 | margin: 0 0 3px 0; 444 | border-bottom: 1px solid lightgray; 445 | display: -webkit-flex; 446 | display: flex; 447 | } 448 | .archives > ul > li > a { 449 | -webkit-flex-grow: 0; 450 | flex-grow: 0; 451 | } 452 | .terms > ul > li time { 453 | -webkit-flex-grow: 1; 454 | flex-grow: 1; 455 | text-align: right; 456 | } 457 | 458 | /* Archives page */ 459 | .archives { 460 | padding: 0 20px 0 20px; 461 | } 462 | .archives ul:not(.taxonomies) { 463 | list-style-type: none; 464 | margin: 0; 465 | padding: 0; 466 | } 467 | .archives .archives-month, .archives .archives-item { 468 | padding: 0 0 3px 0; 469 | margin: 0 0 3px 0; 470 | border-bottom: 1px solid lightgray; 471 | display: -webkit-flex; 472 | display: flex; 473 | } 474 | .archives .archives-monthly-container { 475 | padding: 0; 476 | margin: 0; 477 | margin-bottom: 20px; 478 | border: 0; 479 | } 480 | .archives .archives-item > a { 481 | -webkit-flex-grow: 0; 482 | flex-grow: 0; 483 | } 484 | .archives .archives-item > a:visited { 485 | color: #a8a8a8; 486 | } 487 | .archives .archives-item time { 488 | -webkit-flex-grow: 1; 489 | flex-grow: 1; 490 | text-align: right; 491 | } 492 | .archives ul.taxonomies { 493 | -webkit-flex-grow: 0; 494 | flex-grow: 0; 495 | list-style-type: none; 496 | margin: 0; 497 | padding: 0 0 0 10px; 498 | display: -webkit-flex; 499 | display: flex; 500 | } 501 | .archives ul.taxonomies li { 502 | padding: 0 0 0 8px; 503 | } 504 | .archives ul.taxonomies li a { 505 | color: inherit; 506 | font-size: 0.8em; 507 | } 508 | .archives ul.taxonomies li a:hover, .archives ul.taxonomies li a:active { 509 | color: gray; 510 | } 511 | 512 | .pagination { 513 | list-style-type: none; 514 | padding: 0; 515 | margin-top: 20px; 516 | margin-bottom: 0px; 517 | display: -webkit-flex; 518 | display: flex; 519 | -webkit-justify-content: center; 520 | justify-content: center; 521 | } 522 | .pagination li { 523 | padding: 0 5px 0 5px; 524 | } 525 | .pagination li.active a { 526 | pointer-events: none; 527 | cursor: default; 528 | text-decoration:none; 529 | color: inherit; 530 | } 531 | .pagination li.active a:hover, .pagination li.active a:active { 532 | color: gray; 533 | } 534 | 535 | .icon { 536 | display: inline-block; 537 | width: 1em; 538 | height: 1em; 539 | stroke-width: 0; 540 | stroke: currentColor; 541 | fill: currentColor; 542 | } 543 | 544 | .error h1 { 545 | text-align: center; 546 | } 547 | 548 | /* Mobile */ 549 | @media screen and (max-width: 768px) { 550 | .site-header, .site-header-bottom, .main, .breadcrumb, .site-footer { 551 | width: 98%; 552 | box-sizing: border-box; 553 | } 554 | .list .article-image { 555 | width: 100%; 556 | box-sizing: border-box; 557 | float: none; 558 | margin: 0; 559 | } 560 | .toc { 561 | display: none; 562 | } 563 | .archives ul.taxonomies, .archives .archives-item time { 564 | display: none; 565 | } 566 | .terms > ul > li time { 567 | display: none; 568 | } 569 | .site-navi { 570 | -webkit-flex-wrap: wrap; 571 | flex-wrap: wrap; 572 | } 573 | .terms, .archives { 574 | padding: 0; 575 | } 576 | } 577 | 578 | @media print { 579 | .site-header, .site-header-bottom, .toc, .site-footer, .pager, .disqus-comments, .article-share { 580 | display: none; 581 | } 582 | .main, .breadcrumb { 583 | width: 100%; 584 | box-sizing: border-box; 585 | } 586 | 587 | } 588 | 589 | 590 | /* === sharingbuttons.io start === */ 591 | .resp-sharing-button__link, 592 | .resp-sharing-button__icon { 593 | display: inline-block 594 | } 595 | 596 | .resp-sharing-button__link { 597 | text-decoration: none; 598 | color: #fff; 599 | margin: 0.5em 600 | } 601 | 602 | .resp-sharing-button { 603 | border-radius: 5px; 604 | transition: 25ms ease-out; 605 | padding: 0.5em 0.75em; 606 | font-family: Helvetica Neue,Helvetica,Arial,sans-serif 607 | } 608 | 609 | .resp-sharing-button__icon svg { 610 | width: 1em; 611 | height: 1em; 612 | margin-right: 0.4em; 613 | vertical-align: top 614 | } 615 | 616 | .resp-sharing-button--small svg { 617 | margin: 0; 618 | vertical-align: middle 619 | } 620 | 621 | /* Non solid icons get a stroke */ 622 | .resp-sharing-button__icon { 623 | stroke: #fff; 624 | fill: none 625 | } 626 | 627 | /* Solid icons get a fill */ 628 | .resp-sharing-button__icon--solid, 629 | .resp-sharing-button__icon--solidcircle { 630 | fill: #fff; 631 | stroke: none 632 | } 633 | 634 | .resp-sharing-button--twitter { 635 | background-color: #55acee 636 | } 637 | 638 | .resp-sharing-button--twitter:hover { 639 | background-color: #2795e9 640 | } 641 | 642 | .resp-sharing-button--bluesky { 643 | background-color: #1185FE 644 | } 645 | 646 | .resp-sharing-button--bluesky:hover { 647 | background-color: #252b37 648 | } 649 | 650 | .resp-sharing-button--pinterest { 651 | background-color: #bd081c 652 | } 653 | 654 | .resp-sharing-button--pinterest:hover { 655 | background-color: #8c0615 656 | } 657 | 658 | .resp-sharing-button--facebook { 659 | background-color: #3b5998 660 | } 661 | 662 | .resp-sharing-button--facebook:hover { 663 | background-color: #2d4373 664 | } 665 | 666 | .resp-sharing-button--tumblr { 667 | background-color: #35465C 668 | } 669 | 670 | .resp-sharing-button--tumblr:hover { 671 | background-color: #222d3c 672 | } 673 | 674 | .resp-sharing-button--reddit { 675 | background-color: #5f99cf 676 | } 677 | 678 | .resp-sharing-button--reddit:hover { 679 | background-color: #3a80c1 680 | } 681 | 682 | .resp-sharing-button--google { 683 | background-color: #dd4b39 684 | } 685 | 686 | .resp-sharing-button--google:hover { 687 | background-color: #c23321 688 | } 689 | 690 | .resp-sharing-button--linkedin { 691 | background-color: #0077b5 692 | } 693 | 694 | .resp-sharing-button--linkedin:hover { 695 | background-color: #046293 696 | } 697 | 698 | .resp-sharing-button--email { 699 | background-color: #777 700 | } 701 | 702 | .resp-sharing-button--email:hover { 703 | background-color: #5e5e5e 704 | } 705 | 706 | .resp-sharing-button--xing { 707 | background-color: #1a7576 708 | } 709 | 710 | .resp-sharing-button--xing:hover { 711 | background-color: #114c4c 712 | } 713 | 714 | .resp-sharing-button--whatsapp { 715 | background-color: #25D366 716 | } 717 | 718 | .resp-sharing-button--whatsapp:hover { 719 | background-color: #1da851 720 | } 721 | 722 | .resp-sharing-button--hackernews { 723 | background-color: #FF6600 724 | } 725 | .resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus { background-color: #FB6200 } 726 | 727 | .resp-sharing-button--vk { 728 | background-color: #507299 729 | } 730 | 731 | .resp-sharing-button--vk:hover { 732 | background-color: #43648c 733 | } 734 | 735 | .resp-sharing-button--facebook { 736 | background-color: #3b5998; 737 | border-color: #3b5998; 738 | } 739 | 740 | .resp-sharing-button--facebook:hover, 741 | .resp-sharing-button--facebook:active { 742 | background-color: #2d4373; 743 | border-color: #2d4373; 744 | } 745 | 746 | .resp-sharing-button--twitter { 747 | background-color: #55acee; 748 | border-color: #55acee; 749 | } 750 | 751 | .resp-sharing-button--twitter:hover, 752 | .resp-sharing-button--twitter:active { 753 | background-color: #2795e9; 754 | border-color: #2795e9; 755 | } 756 | 757 | .resp-sharing-button--x { 758 | background-color: #000000; 759 | border-color: #000000; 760 | } 761 | 762 | .resp-sharing-button--x:hover, 763 | .resp-sharing-button--x:active { 764 | background-color: #505050; 765 | border-color: #505050; 766 | } 767 | 768 | .resp-sharing-button--bluesky { 769 | background-color: #1185FE; 770 | border-color: #1185FE; 771 | } 772 | 773 | .resp-sharing-button--bluesky:hover, 774 | .resp-sharing-button--bluesky:active { 775 | background-color: #0675DE; 776 | border-color: #0675DE; 777 | } 778 | 779 | /* === sharingbuttons.io end === */ 780 | --------------------------------------------------------------------------------