Browse Source

add a simple wiki system inside jekyll

thezero 4 years ago
parent
commit
f7daabdc31
9 changed files with 47 additions and 3 deletions
  1. 1 1
      _config.yml
  2. 1 0
      _layouts/default.html
  3. 1 1
      _layouts/post.html
  4. 10 0
      _layouts/wiki.html
  5. 14 0
      _posts/2019-07-06-compilare_tor.md
  6. 1 0
      _posts/2019-07-06-welcome.md
  7. 1 1
      archivio.html
  8. 4 0
      css/style.css
  9. 14 0
      wiki.html

+ 1 - 1
_config.yml

@@ -8,4 +8,4 @@ torfamily: "CE65299CA61BAF11BBD75CD0B7D700EB96008E09"
 
 # Build settings
 markdown: kramdown
-permalink: /:year/:month/:title
+permalink: /:categories/:year/:month/:title/

+ 1 - 0
_layouts/default.html

@@ -23,6 +23,7 @@
         <p><a href="/partecipa">Partecipa!</a></p>
         <p><a href="/donazioni">Donazioni</a></p>
         <p><a href="/tor-exit-notice">"Questo e' un Exit Node"</a></p>
+        <p><a href="/wiki">Wiki</a></p>
         <p>&nbsp;</p>
         <p class="view"><a href="https://metrics.torproject.org/rs.html#search/family:{{ site.torfamily }}">Visita la pagina Tor Metrics</a></p>
         <p class="view"><a href="https://twitter.com/{{ site.twitter }}">Visita il profilo Twitter</a></p>

+ 1 - 1
_layouts/post.html

@@ -4,7 +4,7 @@ layout: default
 
 <div class="post">
   <div class="post-head">
-    <h2 class="post-title">{{ page.title }}</h2>
+    <h1 class="post-title">{{ page.title }}</h1>
     <span class="post-date">{{ page.date | date: "%b %-d, %Y" }}</span>
   </div>
   {{ content }}

+ 10 - 0
_layouts/wiki.html

@@ -0,0 +1,10 @@
+---
+layout: default
+---
+
+<div class="post">
+  <div class="post-head">
+    <h1 class="post-title">Wiki - {{ page.title }}</h1>
+  </div>
+  {{ content }}
+</div>

+ 14 - 0
_posts/2019-07-06-compilare_tor.md

@@ -0,0 +1,14 @@
+---
+layout: wiki
+title: "Compilare Tor manualmente"
+categories: wiki
+permalink: /wiki/:title/
+---
+
+## Step 1
+
+`execute this`
+
+## Step 2
+
+`execute that`

+ 1 - 0
_posts/2019-07-06-welcome.md

@@ -1,6 +1,7 @@
 ---
 layout: post
 title: "Parte Tropea Italia"
+categories: blog
 ---
 
 Si parte!

+ 1 - 1
archivio.html

@@ -7,7 +7,7 @@ permalink: /archivio/
 <div class="archive">
   <h1>{{ page.title }}</h1>
   <ul class="post-list">
-    {% for post in site.posts %}
+    {% for post in site.categories.blog %}
       <li class="post-meta">
         <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
         <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>

+ 4 - 0
css/style.css

@@ -513,6 +513,10 @@ footer {
   margin-left: 15px;
 }
 
+.post-date {
+  color: #bd25bd;
+}
+
 .post .post-head {
   margin-bottom: 20px;
 }

+ 14 - 0
wiki.html

@@ -0,0 +1,14 @@
+---
+layout: default
+title: Wiki
+permalink: /wiki/
+---
+
+<h1 class="category">{{ page.title }}</h1>
+<ul class="posts">
+  {% for post in site.categories.wiki %}
+    <li>
+      <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
+    </li>
+  {% endfor %}
+</ul>