Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an app to create expressions with a form #257

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ markdown: kramdown
theme: minima

include:
- expressions
# - expressions
- _pages

exclude:
Expand Down Expand Up @@ -44,10 +44,10 @@ plugins:
last-modified-at:
date-format: '%d-%b-%y'

collections:
expressions:
output: true
permalink: /:path/
#collections:
# expressions:
# output: true
# permalink: /:path/

pagination:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ <h2 class="footer-heading">{{ site.title | escape }}</h2>
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
{%- endif -%}
</ul>
<ul>
<li><a href="/new_expression">New expression</a></li>
</ul>
<ul>
<li><a href="/press">Press</a></li>
</ul>
Expand Down
23 changes: 23 additions & 0 deletions _pages/new_expression.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: post
title: "New Expression"
date: 2021-05-29
author: "Bruno P. Kinoshita"
permalink: "/new_expression"
nosocial: true
scripts:
- assets/js/vue.min.js
- assets/js/new_expression_app.js
---

<p>Use the form below to create a new expression. You can then paste the YAML generated into a
<a href="https://github.com/tupilabs/speaklikeabrazilian.com/issues">GitHub issue</a>
or <a href="https://github.com/tupilabs/speaklikeabrazilian.com/compare">pull request</a>.
Once your issue is closed, or your pull request merged, your expression should appear in a few minutes.</p>

{% raw %}
<div id="app">

{{ message }}
</div>
{% endraw %}
6 changes: 6 additions & 0 deletions assets/js/new_expression_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
6 changes: 6 additions & 0 deletions assets/js/vue.min.js

Large diffs are not rendered by default.