使您的网站看起来像Linux终端

您看过我的个人网站JeffWeisbein.com吗?没有?继续,检查一下。我给你一分钟左右的时间。好吧,你现在回来了。因此,现在您可能想知道如何创建与该网站相似的网站。幸运的是,这很容易。您需要做的就是在JeffWeisbein.com上复制源代码,复制文本文件,对源代码和文本文件进行一些小的修改,然后将文档上载到Web服务器。

但是首先,您如何查看源代码?根据您的网络浏览器,它可能会略有不同,但是通常您可以右键单击该页面,然后选择“查看源代码”或类似的功能。它将打开一个包含源代码的新窗口。只需复制所有代码,打开您喜欢的HTML编辑器,然后将代码粘贴到其中即可。从那里,您可以进行所需的任何修改。例如,您可以(并且可能会想要)将文档标题从Jeff Weisbein更改为您自己的名字(例如John Doe)。您还可以通过修改样式/ CSS来更改页面上使用的颜色。

除了这些更改之外,您还需要在源代码中向下滚动到大约第161行,您将在其中更改以下代码行:

Typer.file="jeffweisbein.txt";Typer.file="yourname.txt";

当然,您可以将“您的姓名”替换为您的真实姓名。完成此操作后,将文件另存为.html(HTML)文件。

现在,最后一步。返回您的Web浏览器并访问http://www.jeffweisbein.com/jeffweisbein.txt

<span id="a">jeff@weisbein</span>:<span id="b">~</span><span id="c">$</span> cat jeffweisbein.txt<br/><br/>
Hi, I'm Jeff Weisbein.<!-- laglaglaglaglaglaglaglaglaglaglaglag --><p>I majored in Business Administration with a concentration in Finance. I graduated Summa Cum Laude. I'm currently enrolled in the <a href="https://analytics.hbs.edu">Business Analytics Program at Harvard</a>.</p><!-- qowifjqwoeijfoqweijfqweoifjqweofijqweoqwoijefoqwijefoijfqiwoefjj -->
<p>I'm the founder and CEO of <a href="http://www.besttechie.com">BestTechie</a> and <a href="https://getkya.com">KYA</a>.</p><!- oqwipjefqwioefjwioqfjoiqwjfeioqwjefoi -->
<p>I got started with technology at the age of 13 when I convinced my parents to let me use their credit card to buy the BestTechie domain along with some web hosting. I haven't looked back since.</p><!-- owlsqweoifjqwoefijqwoeifjqwoefijwef -->
If you would like to get in touch with me, whether it be for tech support, a business venture, or to just say hi<!-- slightdelayhere-->, feel free to send me an email or a tweet.<!-- longlongcomment --> My email address is: <a href="mailto:jeff@besttechie.com">jeff@besttechie.com</a> and my Twitter is: <a href="http://twitter.com/jeffweisbein">@jeffweisbein</a>.
<p>And if you haven't already, be sure to check out my tech publication <a href="http://www.besttechie.com">http://www.besttechie.com</a> and analytics startup <a href="https://getkya.com">https://getkya.com</a>.</p>

到那里后,复制文本文件的内容,然后将其粘贴到计算机上自己的文本文件中。同样,您将需要编辑内容以适合您的需求,但是,请确保将所有段落括号以及所有注释保留在文本文件中。它们是站点正常运行所必需的。进行更改后,将文档另存为yourname.txt(再次将“ yourname”替换为您的真实姓名)。我还应注意,您必须将其另存为文本文件 (扩展名为.txt)才能正常工作。

如果您有任何疑问,评论或问题,请随时发表评论,我会尽力提供帮助。

最后,我要感谢我的朋友Sam Phippen,让我与大家分享他出色的网站构想和编码技巧。