Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Your First Post on Bridgetown | Your awesome title</title>
- <meta name="description" content="Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description." />
- <link rel="stylesheet" href="/_bridgetown/static/css/main.ffe06e9e95f4774b4af7.css" />
- <script src="/_bridgetown/static/js/main.f07a37c53b30e1989ec1.js" defer></script>
- </head>
- <body class="post ">
- <nav>
- <a href="/">Home</a>
- <a href="/about">About</a>
- <a href="/posts">Posts</a>
- </nav>
- <main>
- <h1>Your First Post on Bridgetown</h1>
- <p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">bridgetown serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
- <p>Bridgetown requires blog post files to be named according to the following format:</p>
- <p><code class="highlighter-rouge">YEAR-MONTH-DAY-title.EXT</code></p>
- <p>Where <code class="highlighter-rouge">YEAR</code> is a four-digit number, <code class="highlighter-rouge">MONTH</code> and <code class="highlighter-rouge">DAY</code> are both two-digit numbers, and <code class="highlighter-rouge">EXT</code> is the file extension representing the format used in the file (for example, <code class="highlighter-rouge">md</code> for Markdown). After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
- <p>Bridgetown also offers powerful support for code snippets:</p>
- <div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
- <span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
- <span class="k">end</span>
- <span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
- <span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span>
- </code></pre></div></div>
- <p>Check out the <a href="https://bridgetownrb.com/docs/">Bridgetown docs</a> for more info on how to get the most out of Bridgetown. File all bugs/feature requests at <a href="https://github.com/bridgetownrb/bridgetown">Bridgetown’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://github.com/bridgetownrb/bridgetown/discussions">Bridgetown Discussions on GitHub</a>.</p>
- </main>
- <footer>
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment