{"id":15011166,"url":"https://github.com/luoyan35714/lessormore","last_synced_at":"2025-04-06T17:12:36.216Z","repository":{"id":88021128,"uuid":"66158747","full_name":"luoyan35714/LessOrMore","owner":"luoyan35714","description":"Jekyll theme.","archived":false,"fork":false,"pushed_at":"2022-12-06T14:08:50.000Z","size":2698,"stargazers_count":182,"open_issues_count":0,"forks_count":210,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T17:12:29.559Z","etag":null,"topics":["jekyll","less","lessormore"],"latest_commit_sha":null,"homepage":"http://www.hifreud.com/LessOrMore/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luoyan35714.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-20T17:16:00.000Z","updated_at":"2025-02-14T15:44:14.000Z","dependencies_parsed_at":"2023-07-23T15:15:06.723Z","dependency_job_id":null,"html_url":"https://github.com/luoyan35714/LessOrMore","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoyan35714%2FLessOrMore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoyan35714%2FLessOrMore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoyan35714%2FLessOrMore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoyan35714%2FLessOrMore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luoyan35714","download_url":"https://codeload.github.com/luoyan35714/LessOrMore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517915,"owners_count":20951719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jekyll","less","lessormore"],"created_at":"2024-09-24T19:39:24.493Z","updated_at":"2025-04-06T17:12:36.192Z","avatar_url":"https://github.com/luoyan35714.png","language":"CSS","readme":"# LessOrMore\n\n\n致谢\n====================================\n+ 感谢[Less官网](http://lesscss.cn/)的样式，本Jekyll框架的样式都是基于Less官网的样式直接拷贝过来的。只是重构了JS，并且加入了Jekyll语法而已。\n+ 感谢[Github](https://github.com/)提供的代码维护和发布平台\n+ 感谢[Jekyll](https://jekyllrb.com/)团队做出如此优秀的产品\n+ 感谢[Solar](https://github.com/mattvh/solar-theme-jekyll)的原作者[Matt Harzewski](http://www.webmaster-source.com/)，在`2014.11`-`2016.09`的两年间，我的博客选用了此样式模版\n\n\n使用\n====================================\n\n下载\n------------------------------------\n\n使用git从[LessOrMore](https://github.com/luoyan35714/LessOrMore.git)主页下载项目\n\n``` bash\ngit clone https://github.com/luoyan35714/LessOrMore.git\n```\n\n配置\n------------------------------------\n\n`LessOrMore`项目需要配置的只有一个文件`_config.yml`，打开之后按照如下进行配置。\n\n\u003e 特别注意`baseurl`的配置。如果是`***.github.io`项目，不修改为空''的话，会导致JS,CSS等静态资源无法找到的错误\n\n``` bash\nname: 博客名称\nemail: 邮箱地址\nauthor: 作者名\nurl: 个人网站\n# baseurl修改为项目名，如果项目是'***.github.io'，则设置为空''\nbaseurl: \"/LessOrMore\"\nresume_site: 个人简历网站\ngithub: github地址\ngithub_username: github用户名称\n# 请到百度统计官网[https://tongji.baidu.com/](https://tongji.baidu.com/)申请自己的网站ID并在此处替换，否则将无法正常统计访问量\nbaidu_analysis: 94be4b0f9fc5d94cc0d0415ea6761ae9\n# 请到revolvermaps [http://www.revolvermaps.com/?target=setupgl](http://www.revolvermaps.com/?target=setupgl)申请自己的网站ID并在此处替换，否则将无法正常统计访问量\nrevolvermaps: 5ytn1ssq6za\n```\n\n关于统计\n------------------------------------\n\n本项目支持三种统计，分别是\n\n+ [百度统计](https://tongji.baidu.com)\n\n百度统计是后台统计，并没有再页面有任何展示，但是可以通过登录百度统计官网查看更详细的访问记录分析。\n当Fork本项目之后需要去百度统计官网申请自己的baidu统计ID替换 `_config.yml` 文件中的 `baidu_analysis`。\n\n+ [revolvermaps地图统计](http://www.revolvermaps.com/)\n\nrevolvermaps地图统计是展示在左侧当行栏的地图展示，具体展示形式可以去官网定制。\n当Fork本项目之后需要去revolvermaps地图官网申请自己的统计ID， 替换`_config.yml` 文件中的 `revolvermaps`。\n\n+ [不蒜子统计](http://busuanzi.ibruce.info/)\n\n不蒜子统计是出现在页面右上角的`本站总访问量n次`统计，本统计会自动识别客户所对应的域名，根据不同域名统计，所以并不需要Fork本项目者做任何修改。\n更多不蒜子的展示方式可以去官网查看。\n\n\n如何写文章\n------------------------------------\n\n在`LessOrMore/_posts`目录下新建一个文件，可以创建文件夹并在文件夹中添加文件，方便维护。在新建文件中粘贴如下信息，并修改以下的`titile`,`date`,`categories`,`tag`的相关信息，添加`* content {:toc}`为目录相关信息，在进行正文书写前需要在目录和正文之间输入至少2行空行。然后按照正常的Markdown语法书写正文。\n\n``` bash\n---\nlayout: post\n#标题配置\ntitle:  标题\n#时间配置\ndate:   2016-08-27 01:08:00 +0800\n#大类配置\ncategories: document\n#小类配置\ntag: 教程\n#设置文章置顶\ntopping: true\n---\n\n* content\n{:toc}\n\n\n我是正文。我是正文。我是正文。我是正文。我是正文。我是正文。\n```\n\n执行\n------------------------------------\n\n``` bash\njekyll server\n```\n\n效果\n------------------------------------\n打开浏览器并输入URL`http://localhost:4000/`,回车。\n\n\n为什么重复造轮子\n====================================\n\n很明显，我在重复造轮子。在13年接触到GIT，14年末接触到Jekyll，然后搭建了自己的博客，当时是选用了[JekyllThemes](http://jekyllthemes.org/)上的[Solar](https://github.com/mattvh/solar-theme-jekyll)主题，一直到现在。不过中间一直感觉页面风格还是偏暗，阅读不方便。并且有一些小的细节做的不是很好。在页面的跨平台浏览上有一些瑕疵。并且不区分一级标题和二级标题，导致没有重点强调。诸如此类，用了2年，用的越多，越发吃力，中间就一直在寻找新的能够让我一眼认定的主题。\n\n虽然设计好看的主题很多。但是真正适合拿来做博客的却不多。中间一直没有找到合适的主题。直到有一天看到Less官网的主题之后，豁然觉得这就是我的博客想要的样子。简单而又不平凡。所以就决定了要把博客迁移到这个主题，然后拿了两天晚上来把这个主题做出来。\n\n重复造了轮子，但是这个是迄今为止自己觉得最适合我的博客的轮子，所以是值得的！\n\n关于作者\n====================================\n\n热爱开源，热爱折腾的Java程序猿。更多个人信息和联系方式可以参照[我的首页](https://github.com/luoyan35714/)。\n\n写在最后\n====================================\n\n如果你也像我一样在寻觅一个简洁的博客主题。不妨试下LessOrMore。\n\n之前此处是有打赏功能的，不过最近在整理自己，发现打赏功能偏离了我写这个Jekyll主题的初衷，所以删除了打赏功能。\n\n非常感谢之前打赏过的朋友们！！","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoyan35714%2Flessormore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluoyan35714%2Flessormore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoyan35714%2Flessormore/lists"}