{"id":19070571,"url":"https://github.com/siteserver/template-scevola","last_synced_at":"2026-01-31T05:31:41.650Z","repository":{"id":90459215,"uuid":"101615915","full_name":"siteserver/template-scevola","owner":"siteserver","description":"scevola 响应式模板","archived":false,"fork":false,"pushed_at":"2018-03-13T09:05:41.000Z","size":5458,"stargazers_count":10,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-11T03:12:03.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siteserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-28T07:26:19.000Z","updated_at":"2021-11-17T00:59:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a03a8db3-929b-46db-9559-4d17f7373490","html_url":"https://github.com/siteserver/template-scevola","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siteserver/template-scevola","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siteserver%2Ftemplate-scevola","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siteserver%2Ftemplate-scevola/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siteserver%2Ftemplate-scevola/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siteserver%2Ftemplate-scevola/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siteserver","download_url":"https://codeload.github.com/siteserver/template-scevola/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siteserver%2Ftemplate-scevola/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28930364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T01:19:36.280Z","updated_at":"2026-01-31T05:31:41.636Z","avatar_url":"https://github.com/siteserver.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"**模版演示地址：** http://theme.demo.siteserver.cn/scevola/index.html\r\n\r\n如果还未安装产品的特提供相应链接：\r\n\r\n**产品下载：** http://cms.siteserver.cn\r\n\r\n**产品安装：** http://docs.siteserver.cn/getting-started/index.html\r\n\r\n**模版下载：** http://templates.siteserver.cn/t-scevola/index.html\r\n\r\n**新建站点：** http://docs.siteserver.cn/getting-started/create.html\r\n\r\n这次，我们提供了一套企业模板，一套响应式网站模版，适应于企业、科技、个人博客、互联网、媒体等产品型公司以及各种企业集团网站模板所有图片在手机端都进行过处理，简单而又清爽的企业、博客响应式网站模板。\r\n\r\n**一、首页(栏目页)**\r\n**二、树状结构页**\r\n**三、内容页**\r\n**四、福利篇**\r\n\r\n**一、首页(栏目页)**\r\n\r\n![](/assets/image001.png)\r\n \r\n这里扯点本模版之外的事，个人来说，拿到一套网站或者说模版，我喜欢第一时间进入到后台，看看它的信息管理或者栏目管理（因为这是最容易或直接知道一个网站结构的地方。可能有人会说，看看前台导航不就行了，是的，是有些网站前台导航结构就反应整个网站的结构，前台页面很多干扰，注意有以下几个地方：页面容易遗漏、不直观、有些栏目不在导航栏目显示）\r\n \r\n![](/assets/image002.png)\r\n\r\n我们可以看到，整个网站的栏目结构非常简单，结合一下网站前端网页（也可以到显示管理—模版匹配去看看网站模版情况），我们很容易的知道，这个是一个博客型的轻型网站。\r\n那回到这个网站我们会发现干货、动态、服务（其实首页也是）使用了同一个模版页。\r\n\r\n![](/assets/image003.png)\r\n \r\n**1.1 文章列表**\r\n \r\n![](/assets/image004.png)\r\n\r\n通过这个图，我们会发现首页的列表里，第一篇文章跟后面的文章样式是不一样，那我们接下来看看具体的代码（STL语言嵌套）——显示管理——模版管理——首页模版（我们查看模版匹配会知道，首页使用的模版具体是哪一个）\r\n\r\n![](/assets/image005.png)\r\n \r\n\u003cstl:pageContents topLevel=\"0\" isNoDup=\"true\" scope=\"All\" groupChannelNot=\"not\" pageNum=\"10\" order=\"AddDate\"\u003e\r\n          \u003cstl:if type=\"ItemIndex\" operate=\"Equals\" value=\"1\"\u003e\r\n            \u003cstl:yes\u003e\r\n第一篇文章\r\n\u003c/stl:yes\u003e\r\n \u003cstl:no\u003e\r\n   其他文章\r\n \u003c/stl:no\u003e\r\n\u003c/stl:pageContents\u003e\r\n\r\n我们大概的解读一下这端代码：\r\n首先外层我们用到了一个标签 \u003cstl:pageContents\u003e\u003c/stl:pageContents\u003e，这是一个翻页标签，相比普通的内容Contents列表，意味着这个页面是可以翻页的。这也是这两标签的唯一区别，所有他们的属性是共用的，\r\n\r\n参考：（ http://stl.siteserver.cn/contents/index.html http://stl.siteserver.cn/pageItems/index.html）我们会知道这里调取的是首页（topLevel=\"0\" ）下所有（scope=\"All\"）不属于栏目组not(groupChannelNot=\"not\")里不重复的（isNoDup=\"true\"）最新（order=\"AddDate\"）文章列表，并且每页显示十条（pageNum=\"10\"）\r\n\r\n然后，翻页列表标签里面，用了一个If判断标签http://stl.siteserver.cn/if/index.html，当前项序号（ItemIndex）的值为是否为1（operate=\"Equals\" value=\"1\"），是的时候是什么展现方式，不是的时候又是什么样的。\r\n\r\n**1.2首页右侧（网站标签+随机散文）**\r\n\r\n![](/assets/image006.png)\r\n \r\n首先，标签的管理在设置管理——组别和标签设置——内容标签管理\r\n\r\n![](/assets/image007.png)\r\n \r\n在每篇文章的最后的内容标签字段里填上相应的标签即可，像首页右边的这些标签，点击这些标签，就能把有这个标签的文章都给列出来。\r\n 那随机散文用到的调取方式，也就是我们上文讲过的contents内容列表标签。\r\n \r\n![](/assets/image008.png)\r\n\r\n可能有的新人会发现在首页模版里，找不到上图这段代码。先卖个关子，我们把下面这个章节看我就懂了。\r\n\r\n**二、树状结构页（关于我们、公司简介）**\r\n\r\n![](/assets/image009.png)\r\n \r\n我们可以看到这个模版页面的左侧是一个树状切换效果，一般我们把这样的公用模块作为包含文件（多个页面共用的部分），比如一般网页的头部、底部。然后再调用到需要的模版页里。\r\n\r\n![](/assets/image010.png)\r\n \r\n比如这里的调取代码\u003cstl:include file=\"/include/left_nav.html\"\u003e\u003c/stl:include\u003e\r\n这样我们只需要在包含文件left进行嵌套或者修改，那所有用到了这个包含文件的页面都会跟着改变。\r\n我们现在知道上一章节标签和随机热文那段代码在哪了吧，也是在另一个包含文件(aside)里。\r\n\r\n**三、内容页**\r\n\r\n![](/assets/image011.png)\r\n \r\n我们会发现内容页跟栏目列表页的基本框架是一样的。只是一个调取的是内容列表（contents）一个调取的是内容（content）\r\n \r\n![](/assets/image012.png)\r\n\r\n**四、福利篇**\r\n\r\n本次，我们增加一个实体标签的解读，我们在上图看见的标签里｛Stl.SiteUrl｝\r\n\r\n![](/assets/image013.png)\r\n \r\n这是站点根目录地址的实体标签。为了灵活的调取，我们的模版标签分为STL常规标签和STL实体标签。举个例子：\r\n\r\n比如我们调取内容\u003cstl:content type=”title”\u003e\u003c/stl:content\u003e，它的实体标签{content.Title}  是不是更简单？图片{content.ImageUrl}、内容简介{content. Summary}。像一些站点ID、站点名称等必须用实体标签\r\n\r\n实体标签参考:http://stl.siteserver.cn/channels/79.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiteserver%2Ftemplate-scevola","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiteserver%2Ftemplate-scevola","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiteserver%2Ftemplate-scevola/lists"}