Merge pull request #1027

Blog: Use only one 'Blog' menu and add category selector
This commit is contained in:
luigi1111 2020-07-27 21:33:34 -05:00 committed by GitHub
commit ef9d4e4864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 175 additions and 200 deletions

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: التنزيلات - title: التنزيلات
url: downloads/ url: downloads/
- title: آخر الأخبار - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: الإصدارات
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: سجل الإجتماعات
url: blog/tags/dev%20diaries.html
- page: جميع المشاركات
url: blog
- title: المجتمع - title: المجتمع
subfolderitems: subfolderitems:
- page: الفريق - page: الفريق

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Downloads - title: Downloads
url: downloads/ url: downloads/
- title: Neuigkeiten - title: Blog
subfolderitems: url: blog
- page: Dringend
url: blog/tags/urgent.html
- page: Versionen
url: blog/tags/releases.html
- page: Gemeinschaft
url: blog/tags/community.html
- page: Protokolle
url: blog/tags/dev%20diaries.html
- page: Alle Einträge
url: blog
- title: Community - title: Community
subfolderitems: subfolderitems:
- page: Team - page: Team

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Downloads - title: Downloads
url: downloads/ url: downloads/
- title: Recent News - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: Releases
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: Meeting Logs
url: blog/tags/dev%20diaries.html
- page: All Posts
url: blog
- title: Community - title: Community
subfolderitems: subfolderitems:
- page: Team - page: Team

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Descargas - title: Descargas
url: downloads url: downloads
- title: Noticias - title: Blog
subfolderitems: url: blog
- page: Urgente
url: blog/tags/urgent.html
- page: Lanzamientos
url: blog/tags/releases.html
- page: Comunidad
url: blog/tags/community.html
- page: Transcripciones de reuniones
url: blog/tags/dev%20diaries.html
- page: Todas publicaciones
url: blog
- title: Comunidad - title: Comunidad
subfolderitems: subfolderitems:
- page: Equipo - page: Equipo

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Téléchargements - title: Téléchargements
url: downloads/ url: downloads/
- title: Actualités - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: Versions
url: blog/tags/releases.html
- page: Communauté
url: blog/tags/community.html
- page: Comptes-rendus de Réunions
url: blog/tags/dev%20diaries.html
- page: Toutes
url: blog
- title: Communauté - title: Communauté
subfolderitems: subfolderitems:
- page: Équipe - page: Équipe

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Download - title: Download
url: downloads/ url: downloads/
- title: Notizie recenti - title: Blog
subfolderitems: url: blog
- page: Urgente
url: blog/tags/urgent.html
- page: Uscite
url: blog/tags/releases.html
- page: Comunità
url: blog/tags/community.html
- page: Log dei meeting
url: blog/tags/dev%20diaries.html
- page: Tutti i post
url: blog
- title: Comunità - title: Comunità
subfolderitems: subfolderitems:
- page: Team - page: Team

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Downloads - title: Downloads
url: downloads/ url: downloads/
- title: Nieuws - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: Releases
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: Vergaderingen
url: blog/tags/dev%20diaries.html
- page: Alles
url: blog
- title: Community - title: Community
subfolderitems: subfolderitems:
- page: Team - page: Team

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Downloads - title: Downloads
url: downloads/ url: downloads/
- title: Najnowsze - title: Blog
subfolderitems: url: blog
- page: Ważne
url: blog/tags/urgent.html
- page: Aktualizacje
url: blog/tags/releases.html
- page: Społeczność
url: blog/tags/community.html
- page: Zapisy z czatów
url: blog/tags/dev%20diaries.html
- page: Wszystkie wpisy
url: blog
- title: Społeczność - title: Społeczność
subfolderitems: subfolderitems:
- page: Zespół - page: Zespół

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Downloads - title: Downloads
url: downloads/ url: downloads/
- title: Notícias - title: Blog
subfolderitems: url: blog
- page: Urgente
url: blog/tags/urgent.html
- page: Lançamentos
url: blog/tags/releases.html
- page: Comunidade
url: blog/tags/community.html
- page: Logs das Reuniões
url: blog/tags/dev%20diaries.html
- page: Todos os Posts
url: blog
- title: Comunidade - title: Comunidade
subfolderitems: subfolderitems:
- page: Equipe - page: Equipe

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: Загрузки - title: Загрузки
url: downloads/ url: downloads/
- title: Последние новости - title: Blog
subfolderitems: url: blog
- page: Срочные
url: blog/tags/urgent.html
- page: Релизы
url: blog/tags/releases.html
- page: Сообщество
url: blog/tags/community.html
- page: Журналы встреч
url: blog/tags/dev%20diaries.html
- page: Все новости
url: blog
- title: Сообщество - title: Сообщество
subfolderitems: subfolderitems:
- page: Команда - page: Команда

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: İndirmeler - title: İndirmeler
url: downloads/ url: downloads/
- title: Son Haberler - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: Bültenler
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: Toplantı Kayıtları
url: blog/tags/dev%20diaries.html
- page: Tüm Gönderiler
url: blog
- title: Topluluk - title: Topluluk
subfolderitems: subfolderitems:
- page: Ekip - page: Ekip

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: 下载 - title: 下载
url: downloads/ url: downloads/
- title: 最新资讯 - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: 发布
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: 会议记录
url: blog/tags/dev%20diaries.html
- page: 所有文章
url: blog
- title: 社区 - title: 社区
subfolderitems: subfolderitems:
- page: 团队 - page: 团队

View file

@ -12,18 +12,8 @@
url: get-started/faq url: get-started/faq
- title: 下載 - title: 下載
url: downloads/ url: downloads/
- title: 最新消息 - title: Blog
subfolderitems: url: blog
- page: Urgent
url: blog/tags/urgent.html
- page: 版本發佈
url: blog/tags/releases.html
- page: Community
url: blog/tags/community.html
- page: 會議記錄
url: blog/tags/dev%20diaries.html
- page: 所有文章
url: blog
- title: 社群 - title: 社群
subfolderitems: subfolderitems:
- page: 合作團隊 - page: 合作團隊

View file

@ -735,12 +735,15 @@ moneropedia:
wallet: Wallet wallet: Wallet
blog: blog:
title_1: All allposts: All Posts
title_2: Blog urgent: Urgent
title_3: Posts releases: Releases
community: Community
meetinglogs: Meeting Logs
author: Posted by author: Posted by
date: Posted at date: Posted at
forum: Click here to join the discussion for this entry on the Monero Forum filter: "Filter by category:"
tags: tags:
notags: There are no posts for this tag. notags: There are no posts for this tag.

View file

@ -9,21 +9,55 @@ layout: custom
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<div class="blog">
<!-- Category selector: desktop -->
<div class="container full desktop-only">
<div class="info-block blog-nav row">
<div class="col"><a href="{{ site.baseurl_root }}/blog">{% t blog.allposts %}</a></div>
<div class="col {% if filename == 'urgent' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
<div class="col {% if filename == 'releases' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
<div class="col {% if filename == 'community' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></div>
<div class="col {% if filename == 'dev diaries' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
</div>
</div>
<!-- End category selector: desktop -->
<!-- Category selector: mobile -->
<div class="container full">
<div class="info-block row center-xs" id="pick-platform">
<div class="mob dropdowndrop">
<input id="filter" type="checkbox" name="category-filter"/>
<label for="filter">{% t blog.filter %}</label>
<ul id="menu">
<li><a href="{{ site.baseurl_root }}/blog">{% t blog.allposts %}</a></li>
<li><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
<li><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
<li><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></li>
<li><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
</ul>
</div>
</div>
</div>
<!-- End category selector: mobile -->
</div>
<div class="site-wrap"> <div class="site-wrap">
<section class="container"> <section class="container">
<div class="row"> <div class="row">
<!-- left two-thirds block--> <!-- left two-thirds block-->
<div class="left two-thirds col-lg-8 col-md-8 col-sm-8 col-xs-12"> <div class="left two-thirds col-lg-8 col-md-8 col-sm-8 col-xs-12">
<div class="info-block"> <div class="info-block">
<div class="row center-xs"> <div class="row center-xs">
<div class="page-title"> <div class="page-title">
<h2 class="inline"><span class="kicks">{{ tag.name }}</span></h2> {% if tag.name != "Dev Diaries" %}
</div> <h2 class="inline"><span class="kicks">{{ tag.name }}</span></h2>
</div> {% else %}
<h2 class="inline"><span class="kicks">{% t blog.meetinglogs %}</span></h2>
{% endif %}
</div>
</div>
{% if site.tags[tag.slug] %} {% if site.tags[tag.slug] %}
{% for post in site.tags[tag.slug] %} {% for post in site.tags[tag.slug] %}
<div class="post-tag"> <div class="post-lead">
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3> <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p> <p>
{{ post.summary }} {{ post.summary }}
@ -33,10 +67,11 @@ layout: custom
</small> </small>
</p> </p>
</div> </div>
{% endfor %}
{% else %} {% endfor %}
<h3>{% t tags.notags %}</h3> {% else %}
{% endif %} <h3>{% t tags.notags %}</h3>
{% endif %}
</div> </div>
</div> </div>

View file

@ -1,36 +1,66 @@
--- ---
layout: base layout: custom
title: titles.allposts title: titles.blogbytag
--- ---
<h1 class="text-center">{% t page.title %}</h1> <div class="blog">
<!-- Category selector: desktop -->
<div class="site-wrap"> <div class="container full desktop-only">
<!-- FULL WIDTH BLOCK --> <div class="info-block blog-nav row">
<section class="container full"> <div class="col {% if page.name == 'index.html' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog">{% t blog.allposts %}</a></div>
<div> <div class="col"><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
{% for post in paginator.posts %} <div class="col"><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
<div class="post-lead info-block"> <div class="col"><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></div>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3> <div class="col"><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
<p> </div>
{{ post.summary }} </div>
</p> <!-- End category selector: desktop -->
<p> <!-- Category selector: mobile -->
<small> <div class="container full">
{% t blog.author %} {{ post.author }} | {{ post.date | date: "%-d %B %Y" }}<br> <div class="info-block row center-xs" id="pick-platform">
Category: <div class="mob dropdowndrop">
{% for tag in post.tags %} <input id="filter" type="checkbox" name="category-filter"/>
<a href="/blog/tags/{{ tag }}.html">{{ tag }}</a>{% unless forloop.last %},{% endunless %} <label for="filter">{% t blog.filter %}</label>
{% endfor %} <ul id="menu">
</small> <li><a href="{{ site.baseurl_root }}/blog">{% t blog.allposts %}</a></li>
</p> <li><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
</div> <li><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
{% endfor %} <li><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></li>
</div> <li><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
</section> </ul>
<!-- END FULL WIDTH BLOCK --> </div>
</div>
</div>
<!-- End category selector: mobile -->
</div> </div>
<div class="site-wrap">
<section class="container full">
<div class="row">
<!-- Full block-->
<div class="info-block">
<h2>{% t blog.allposts %}</h2>
{% for post in paginator.posts %}
<div class="post-lead">
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p>
{{ post.summary }}
</p>
<p>
<small>
{% t blog.author %} {{ post.author }} | {{ post.date | date: "%-d %B %Y" }}<br>
Category:
{% for tag in post.tags %}
<a href="/blog/tags/{{ tag }}.html">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
{% endfor %}
</small>
</p>
</div>
{% endfor %}
</div>
<!-- End full block-->
</section>
</div>
{% if paginator.total_pages > 1 %} {% if paginator.total_pages > 1 %}
<div class="text-center page-numbers"><p> <div class="text-center page-numbers"><p>

View file

@ -1929,6 +1929,7 @@ img.monero-logo {
.white-nav { .white-nav {
margin-bottom: 1rem; margin-bottom: 1rem;
line-height: 1; line-height: 1;
text-align: center;
} }
.white-nav>.nav-items>.nav-item { .white-nav>.nav-items>.nav-item {
@ -3890,6 +3891,42 @@ h3#months {
/***********************************POST STYLING********************************/ /***********************************POST STYLING********************************/
.blog .blog-nav a {
display: -ms-flexbox;
display: -webkit-box;
display: flex;
justify-content: center;
padding: 1rem 2rem;
font-weight: bold;
font-size: 0.92rem;
font-family: 'Hind', sans-serif;
-webkit-transition: all ease-out .2s;
-moz-transition: all ease-out .2s;
-o-transition: all ease-out .2s;
transition: all ease-out .2s;
border: none;
}
.blog-nav a:hover {
background-color: #d26e2b;
color: #fff;
text-decoration: none;
}
.blog .full>.info-block.blog-nav {
padding: 0;
}
.blog .col {
width: 20%;
}
.checked a {
background-color: #d26e2b;
color: #fff;
text-decoration: none;
}
.post-tag { .post-tag {
padding-top: 1.5rem; padding-top: 1.5rem;
} }