在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:LeNPaul/Millennial开源软件地址:https://github.com/LeNPaul/Millennial开源编程语言:SCSS 45.3%开源软件介绍:MillennialMillennial is a minimalist Jekyll theme for running a simple, clean, content-focused publishing platform for your publication site or blog through Github Pages, or on your own server. Everything that you will ever need to know about this Jekyll theme is included in the README below, which you can also find in the demo site. For a guide on how to deploy a Jekyll site using GitHub Pages, please check out this article. If you like my work then please consider supporting me with Ko-fi. Notable features
Table of Contents
IntroductionMillennial is a Jekyll theme that was built to be 100% compatible with GitHub Pages. If you are unfamiliar with GitHub Pages, you can check out their documentation for more information. Jonathan McGlone's guide on creating and hosting a personal site on GitHub is also a good resource. What is Jekyll?Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites. Basically, Jekyll takes your page content along with template files and produces a complete website. For more information, visit the official Jekyll site for their documentation. Codecademy also offers a great course on how to deploy a Jekyll site for complete beginners. Never Used Jekyll Before?The beauty of hosting your website on GitHub is that you don't have to actually have Jekyll installed on your computer. Everything can be done through the GitHub code editor, with minimal knowledge of how to use Jekyll or the command line. All you have to do is add your posts to the InstallationGitHub Pages InstallationTo start using Jekyll right away with GitHub Pages, fork the Millennial repository on GitHub. From there, you can rename your repository to Head over to the Local InstallationFor a full local installation of Millennial, download your own copy of Millennial and unzip it into it's own directory. From there, open up your favorite command line tool, enter Directory StructureIf you are familiar with Jekyll, then the Millennial directory structure shouldn't be too difficult to navigate. The following some highlights of the differences you might notice between the default directory structure. More information on what these folders and files do can be found in the Jekyll documentation site. Millennial/
├── _data # Data files
| └── settings.yml # Theme settings and custom text
├── _includes # Theme includes
├── _layouts # Theme layouts (see below for details)
├── _posts # Where all your posts will go
├── assets # Style sheets and images are found here
| ├── css # Style sheets go here
| | └── _sass # Folder containing SCSS files
| | └── main.scss # Main SCSS file
| | └── syntax.css # Style sheet for code syntax highlighting
| └── img # Images go here
├── pages # Category pages
├── _config.yml # Site build settings
├── Gemfile # Ruby Gemfile for managing Jekyll plugins
├── index.md # Home page
├── LICENSE.md # License for this theme
├── README.md # Includes all of the documentation for this theme
└── rss-feed.xml # Generates RSS 2.0 file which Jekyll points to Starting From ScratchTo completely start from scratch, simply delete all the files in the ConfigurationSample PostsVisit the the demo site to find sample posts that show what different types of text formatting look like. You can find these posts in the Site VariablesTo change site build settings, edit the If you are hosting your site on GitHub Pages, then committing a change to the In the Adding Menu PagesThe menu pages are found in the PostsYou will find example posts in your To add new posts, simply add a file in the LayoutsThere are two main layout options that are included with Millennial: post and page. Layouts are specified through the YAML front block matter. Any file that contains a YAML front block matter will be processed by Jekyll. For example:
Examples of what posts looks like can be found in the Pages are essentially the post layout without any of the extra features of the posts layout. An example of what pages look like can be found at the documentation page. In addition to the two main layout options above, there are also custom layouts that have been created for the home page and the contacts page. These are simply just page layouts with some Liquid template code. Check out the YAML Front Block MatterThe recommended YAML front block is:
FeaturesDesign ConsiderationsMillennial was designed to be a minimalist theme in order for the focus to remain on your content. For example, links are signified mainly through an underline text-decoration, in order to maximize the perceived affordance of clickability (I originally just wanted to make the links a darker shade of grey). DisqusMillennial supports comments at the end of posts through Disqus. In order to activate Disqus commenting, set Google AnalyticsIt is possible to track your site statistics through Google Analytics. Similar to Disqus, you will have to create an account for Google Analytics, and enter the correct Google ID for your site under RSS FeedsAtom is supported by default through jekyll-feed. With jekyll-feed, you can set configuration variables such as 'title', 'description', and 'author', in the RSS 2.0 is also supported through RSS auto-discovery. The To use RSS 2.0, ensure the following is done:
Social Media IconsAll social media icons are courtesy of Font Awesome. You can change which icons appear, as well as the account that they link to, in the MathJaxMillennial comes out of the box with MathJax, which allows you to display mathematical equations in your posts through the use of LaTeX. Syntax HighlightingMillennial provides syntax highlighting through fenced code blocks. Syntax highlighting allows you to display source code in different colors and fonts depending on what programming language is being displayed. You can find the full list of supported programming languages here. Another option is to embed your code through Gist. MarkdownAs always, Jekyll offers support for GitHub Flavored Markdown, which allows you to format your posts using the Markdown syntax. Examples of these text formatting features can be seen below. You can find this post in the Everything ElseCheck out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll's GitHub repo. If you have questions, you can ask them on Jekyll Talk. ContributingIf you would like to make a feature request, or report a bug or typo in the documentation, then please submit a GitHub issue. If you would like to make a contribution, then feel free to submit a pull request - as a bonus, I will credit all contributors below! If this is your first pull request, it may be helpful to read up on the GitHub Flow first. Millennial has been designed as a base for users to customize and fit to their own unique needs. Please keep this in mind when requesting features and/or submitting pull requests. Some examples of changes that I would love to see are things that would make the site easier to use, or better ways of doing things. Please avoid changes that do not benefit the majority of users. Questions?This theme is completely free and open source software. You may use it however you want, as it is distributed under the MIT License. If you are having any problems, any questions or suggestions, feel free to tweet at me, or file a GitHub issue. CreditsCreatorPaul LeContributorsIcons + Demo ImagesOtherLicenseOpen sourced under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论