WIP
This commit is contained in:
@@ -72,5 +72,10 @@ return [
|
||||
*/
|
||||
"disable" => [
|
||||
"editor",
|
||||
"gutenberg",
|
||||
"customizer",
|
||||
"emojis",
|
||||
"meta-generator",
|
||||
"patterns",
|
||||
],
|
||||
];
|
||||
|
||||
@@ -6,56 +6,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{#wp-title}}</title>
|
||||
|
||||
<!-- the following CSS is included for a fancy pants intro page. Feel free
|
||||
to delete it! -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=montserrat:400,400i,700,700i" rel="stylesheet" />
|
||||
<style>
|
||||
* {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
}
|
||||
body, html {
|
||||
background-color: #212529;
|
||||
color: #dee2e6;
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.container {
|
||||
max-width: 900px;
|
||||
padding: 0 1rem;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
a {
|
||||
color: #f472b6;
|
||||
text-decoration: none;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.m-0 {
|
||||
margin: 0;
|
||||
}
|
||||
.mb-4 {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
code {
|
||||
font-family: monospace;
|
||||
color: white;
|
||||
background-color: black;
|
||||
display: inline-block;
|
||||
line-height: 1.1;
|
||||
font-size: 1rem;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
.outro h2 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
footer {
|
||||
font-size: .8rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
{{#wp-header}}
|
||||
</head>
|
||||
<body {{#body-classes}}>
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
<section class="intro">
|
||||
<div class="container">
|
||||
<h1 class="text-center">
|
||||
<a href = "https://rad-theme-engine.ofco.cloud/" target = "_blank">Welcome to Rad Theme Engine!</a>
|
||||
</h1>
|
||||
<div class="col-lg-12 text-center mb-4">
|
||||
<a href = "https://rad-theme-engine.ofco.cloud/" target = "_blank">
|
||||
<h1>
|
||||
<img class="title-logo" src="https://rad-theme-engine.ofco.cloud/images/rebrand/Rad%20Logo%201%20OF-TOP.png" alt="Check out the RAD Theme Engine Docs">
|
||||
</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p id="get-started">Get started by editing these template files to build out your site layouts and content.</p>
|
||||
<p id="description">All template files need to be valid <a href="https://rad-theme-engine.ofco.cloud/docs/guides/handlebars/" target="_blank">handlebars</a> files, with tags that look like this: <code>{{#raw}}{{#formatDate now}}{{/raw}}</code>. Note: the <code>now</code> variable got its value passed by the PHP file to this template, and the <code>#formatDate</code> prefix is a <a href="https://rad-theme-engine.ofco.cloud/docs/guides/helpers/" target="_blank">handlebars helper</a>. You can write your own helpers very easily, and RAD comes preloaded with a bunch of really useful ones!</p>
|
||||
|
||||
<p>That tag is rendered into this: <code>{{#formatDate now }}</code></p>
|
||||
<hr/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<div class="container">
|
||||
<p>We also passed the WordPress saved content to this template, asking specifically for the content, title, and published_at date. Here is a quick example of how to use that data:</p>
|
||||
<p class="m-0">Title: {{ post.title }}</p>
|
||||
<p class="m-0">Published: {{ post.published_at }}</p>
|
||||
<p class="m-0">Content:</p>
|
||||
{{{ post.content }}}
|
||||
<hr/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="outro">
|
||||
<h2 class="text-center">
|
||||
For more help getting started on your new <em>RAD</em> project, visit the <br />
|
||||
<a class="bottom-link" href="https://rad-theme-engine.ofco.cloud" target="_blank">RAD Theme Engine Docs</a>
|
||||
</h2>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user