【发布时间】:2017-11-04 03:26:48
【问题描述】:
我想建立一个简单的静态网站,其中包含简介、入门、下载、常见问题解答等页面。顶部也会有一个导航链接。这是随处可见的基本布局。
What I have done a year ago 只是复制和粘贴。所以每个 .html 页面都会有相同的标签代码。
<nav class="text-center">
<a href="index.html">Introduction</a> |
<a href="getting-started.html">Getting Started</a> |
<a href="reference.html">Reference</a> |
<a href="demo.html">Demo</a> |
<a href="faq.html">FAQ</a>
<span id="get"><a href="https://www.assetstore.unity3d.com/#!/content/51095" target="_blank">Get Introloop</a></span>
<br>
</nav>
然后还有很多头像,几乎一样,但每一页都有点不同。
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Raleway:400,600' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Cutive+Mono' rel='stylesheet' type='text/css'>
<meta name="keywords" content="Introloop - Easily play looping music with intro section. (Unity plugin)"/>
<meta charset="utf-8">
<meta property="og:title" content="Introloop - Demo"/>
<meta property="og:description" content="Let's see how well it performs by yourself!">
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.exceed7.com/introloop/demo.html"/>
<meta property="og:image" content="http://www.exceed7.com/introloop/img/HeaderImage.png"/>
<meta property="og:site_name" content="Introloop" />
<title>Introloop - Easily play looping music with intro section (Unity Plugin)</title>
<link rel="stylesheet" href="css/main.css">
</head>
阅读我一年前写的代码,我觉得它不利于可维护性。我正在考虑重做这个网站,所以我想要目前的状态。但我似乎无法从 Google 搜索中获得解决方案,因为很难获得正确的搜索查询...
现在我们肯定会使用某种构建工具,我对学习 Webpack 非常感兴趣。我想知道制作这种小型模板网站的通常工作流程是什么?
我想合并的其他工具是 npm + Babel + cssnext + 任何 Bootstrap 替代方案 + 没有 Gulp,以防它们与可能的解决方案重叠。没有 Bootstrap 和 Gulp 的原因是我已经使用它们很长时间了,并且想探索其他替代方案,我想现在可以使用它们
还查看了 Vue.js / Semantic UI / UIKit,对我来说都是全新的。但是 Vue.js 看起来太像 React,我的网站只是一个通用信息网站,似乎不需要任何实时 JS 到 DOM 更新..
【问题讨论】:
标签: html