在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:samarsault/plainwhite-jekyll开源软件地址:https://github.com/samarsault/plainwhite-jekyll开源编程语言:SCSS 66.8%开源软件介绍:plainwhiteSimplistic jekyll portfolio-style theme for writers. Demo: samarsault.com Installation on Github PagesAdd this line to your site's remote_theme: samarsault/plainwhite-jekyll InstallationAdd this line to your Jekyll site's gem "plainwhite" And add this line to your Jekyll site's theme: plainwhite And then execute:
Or install it yourself as:
UsageThe "plainwhite" key in _config.yml is used to customize the theme data. plainwhite:
name: Adam Denisov
tagline: Developer. Designer
date_format: "%b %-d, %Y"
social_links:
twitter: samarsault
github: samarsault
linkedIn: in/samarsault # format: locale/username Updating Placeholder Image The placeholder portfolio image can be replaced by the desired image by placing it as plainwhite:
portfolio_image: "assets/portfolio.png" # the path from the base directory of the site to the image to display (no / at the start) To use a different image for dark mode, e.g. with different colors that work better in dark mode, add a plainwhite:
portfolio_image: "assets/portfolio.png"
portfolio_image_dark: "assets/portfolio_dark.png" Comments (Disqus) Comments on posts can be enabled by specifying your disqus_shortname under plainwhite in plainwhite:
disqus_shortname: games Google Analytics It can be enabled by specifying your analytics id under plainwhite in plainwhite:
analytics_id: "< YOUR ID >" Sitemap It can be toggled by the following line to under plainwhite in plainwhite:
sitemap: true Excerpts Excerpts can be enabled by adding the following line to your show_excerpts: true Layouts
Navigation Navigation can be enabled by adding the following line to your plainwhite:
navigation:
- title: My Work
url: "/my-work"
- title: Resume
url: "/resume" Mobile By default, Plainwhite places the sidebar (logo, name, tagline etc.) above the content on mobile (narrow screens).
To condense it (moving some things to the bottom of the page and making the rest smaller) so it takes up less space, add the following to your plainwhite:
condensed_mobile:
- home
- post
- page This chooses which layouts (types of page) should be condensed on mobile screens. E.g. if you want everything but the landing page to be condensed, remove Dark mode Dark mode can be enabled by setting the The website will check the OS preferred color scheme and set the theme accordingly, the preference will then be saved in a cookie plainwhite:
dark_mode: true Multiline tagline Tagline can be multiline in this way plainwhite:
tagline: |
First Line.
Second Line.
Third Line. Search-bar Search-bar can be enabled by adding the following line to plainwhite:
search: true Search is powered by Simple-Jekyll-Search Jekyll plugin. A Base URL You can specify a custom base URL (eg. example.com/blog/) by adding the following line to baseurl: "/blog" Language You can set the plainwhite:
html_lang: "en" See here for a full list of available language codes ContributingBug reports and pull requests are welcome on GitHub at https://github.com/samarsault/plainwhite-jekyll. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. DevelopmentTo set up your environment to develop this theme, run Your theme is setup just like a normal Jekyll site! To test your theme, run When your theme is released, only the files in DonationIf this project help you reduce time to develop, you can give me a cup of coffee :) LicenseThe theme is available as open source under the terms of the MIT License. More themes |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论