Parcourir la source

added links to sidebar

Harlan Iverson il y a 7 ans
Parent
commit
9564211122

+ 4 - 0
tinydatacenter.com-v2/app/resources/templates/config.edn

@@ -3,6 +3,10 @@
  :description          "Tiny Data Center"
  :site-url             "https://tinydatacenter.com/"
  :post-root            "posts"
+ :sidebar-links-title  "TinyDC Sites"
+ :sidebar-links        [{:title "Author Website" :uri "https://harlanji.com"}
+                        {:title "iSpooge Media" :uri "https://ispooge.com"}
+                        {:title "This website" :uri "https://tinydatacenter.com"}]
  :page-root            "pages"
  :post-root-uri        "journal"
  :page-root-uri        ""

+ 13 - 2
tinydatacenter.com-v2/app/resources/templates/themes/blue/html/base.html

@@ -57,12 +57,23 @@
 
         <div class="col-md-3">
             <div id="sidebar">
-                <h3>Links</h3>
-                <ul id="links">
+                <h3>Pages</h3>
+                <ul id="pages">
                     {% for page in sidebar-pages %}
                     <li><a href="{{page.uri}}">{{page.title}}</a></li>
                     {% endfor %}
                 </ul>
+                {% if sidebar-links|not-empty %}
+                <div id="links">
+                    <h3>{{ sidebar-links-title }}</h3>
+                    <ul>
+                        {% for post in sidebar-links %}
+                        <li><a href="{{post.uri}}">{{post.title}}</a></li>
+                        {% endfor %}
+                    </ul>
+                </div>
+                {% endif %}
+
                 {% if latest-posts|not-empty %}
                 <div id="recent">
                     <h3>Recent Posts</h3>