rocksdb/docs/_includes/powered_by.html
Joel Marcey ea9e0757ff Add initial GitHub pages infra for RocksDB documentation move and update. (#1294)
This is the initial commit with the templates necessary to have our RocksDB user documentation hosted on GitHub pages.

Ensure you meet requirements here: https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/#requirements

Then you can run this right now by doing the following:

```
% bundle install
% bundle exec jekyll serve --config=_config.yml,_config_local_dev.yml
```

Then go to: http://127.0.0.1:4000/

Obviously, this is just the skeleton. Moving forward we will do these things in separate pull requests:

- Replace logos with RocksDB logos
- Update the color schemes
- Add current information on rocksdb.org to markdown in this infra
- Migrate current Wodpress blog to Jekyll and Disqus comments
- Etc.
2016-08-24 15:35:38 -07:00

29 lines
1.2 KiB
HTML

{% if site.data.powered_by.first.items or site.data.powered_by_highlight.first.items %}
<div class="poweredByContainer">
<div class="wrapper mainWrapper poweredByWrapper">
{% if site.data.powered_by_highlight.first.title %}
<h2>{{ site.data.powered_by_highlight.first.title }}</h2>
{% else %}
<h2>{{ site.data.powered_by.first.title }}</h2>
{% endif %}
{% if site.data.powered_by_highlight.first.items %}
<div class="poweredByItems">
{% for item in site.data.powered_by_highlight.first.items %}
<div class="poweredByItem itemLarge">
<a href="{{ item.url }}" target="_blank"><img src="{{ item.img }}" alt="{{ item.name }}" /></a>
</div>
{% endfor %}
</div>
{% endif %}
<div class="poweredByItems">
{% for item in site.data.powered_by.first.items %}
<div class="poweredByItem itemSmall">
<a href="{{ item.url }}" target="_blank">{{ item.name }}</a>
</div>
{% endfor %}
</div>
<div class="poweredByMessage">Does your app use {{ site.title }}? Add it to this list with <a href="https://github.com/{{ site.ghrepo }}/edit/gh-pages/_data/powered_by.yml" target="_blank">a pull request!</a></div>
</div>
</div>
{% endif %}