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

Add Blog #639

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Please also read our [Code of Conduct](https://github.com/RefugeRestrooms/refuge

If you want to join the Refuge Restrooms Slack channel, you can do so by [clicking on this link.](https://join.slack.com/t/refugelgbt/shared_invite/zt-3zaagpad-DvyfAPcepuRzFBJix1uYkg)

## Blog

See our latest blog posts [here.](https://RefugeRestrooms.github.io/refugerestrooms/blog/)

## License

Copyright (C) 2014–2017 Teagan Widmer and contributors
Expand Down
1 change: 1 addition & 0 deletions blog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site/
31 changes: 31 additions & 0 deletions blog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Set up the Blog
In the repository settings, navigate to GitHub pages. Select a branch to build the website from, a theme if desired, and a custom domain if desired. Save the settings.

# How to Create a Blog Post
Go to the _posts/ directory and create a new file with the format: YYYY-MM-DD-title-of-post.md
<br>
Post titles must be in this format to work correctly!


Format the contents of the post like so:

<code>
---
</code>
<br>
layout: post
<br>
title: title of your blog post
<br>
<code>
---
</code>
<br>
Then, simply write your post here, using any desired formatting.
<br>
<br>
References:
<br>
Writing Blog Posts: https://jekyllrb.com/docs/posts/
<br>
Markdown Syntax: https://www.markdownguide.org/basic-syntax/
2 changes: 2 additions & 0 deletions blog/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: Refuge Restrooms
permalink: /:year/:month/:day/:title:output_ext
15 changes: 15 additions & 0 deletions blog/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>{{page.title}}</title>
<meta charset="utf-8">
</head>
<body>
<div class="container">
{{content}}
</div>
<footer>
<a href="https://github.com/RefugeRestrooms/refugerestrooms">github.com/refugerestrooms</a>
</footer>
</body>
</html>
17 changes: 17 additions & 0 deletions blog/_layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>{{page.title}}</title>
<meta charset="utf-8">
</head>
<body>
<h1>{{ page.title }}</h1>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="container">
{{ content }}
</div>
<footer>
<a href="https://github.com/RefugeRestrooms/refugerestrooms">github.com/refugerestrooms</a>
</footer>
</body>
</html>
7 changes: 7 additions & 0 deletions blog/_posts/2020-10-04-hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: post
title: "Hello World!"
date: 2020-10-04
---

Just a quick test of the blog post functionality.
19 changes: 19 additions & 0 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: default
title: Refuge Restrooms
---
<div>
<h1>Welcome to Our Blog</h1>
<p>REFUGE restrooms indexes and maps safe restroom locations for trans, intersex, and gender nonconforming individuals.</p>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="/refugerestrooms{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<h2>Our Code of Conduct</h2>
<p>In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making
participation in our project and our community a harassment-free experience for everyone, regardless of age,
body size, disability, ethnicity, gender identity and expression, level of experience, nationality,
personal appearance, race, religion, or sexual identity and orientation.</p>
<a href="https://github.com/RefugeRestrooms/refugerestrooms/blob/develop/CODE_OF_CONDUCT.md">Read our full code of conduct here</a>
</div>