]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Optionnal footer support
authorBastien Wirtz <bastien.wirtz@gmail.com>
Thu, 27 Feb 2020 05:56:25 +0000 (21:56 -0800)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Thu, 27 Feb 2020 05:56:25 +0000 (21:56 -0800)
app.css
app.scss
config.yml
index.html

diff --git a/app.css b/app.css
index 2cdb5074b3266d8469482449682696e0760bec4c..b514059be2f3a8c8d343f168f5895c8bf33262df 100644 (file)
--- a/app.css
+++ b/app.css
@@ -230,6 +230,10 @@ body {
     color: #676767;
     font-size: 0.85rem;
     transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; }
+  body .no-footer #main-section {
+    margin-bottom: 0; }
+  body .no-footer .footer {
+    display: none; }
   body .search-bar {
     position: relative;
     display: inline-block; }
index 476ee09121170ab970a4d2ba9f22b2115f872769..a0b1d42dcdfaec20d08d1c855412fb7f5e105407 100644 (file)
--- a/app.scss
+++ b/app.scss
@@ -302,6 +302,16 @@ body {
     transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
   }
 
+  .no-footer {
+    #main-section {
+      margin-bottom: 0;
+    }
+    
+    .footer {
+      display: none;
+    }
+  }
+
   .search-bar {
     position: relative;
     display: inline-block;
index fa29d6521c2e357db84b6337ac6c7b5626ef7701..e8c4352b275520b41c37d8850da709a4fb0a7db8 100644 (file)
@@ -6,9 +6,9 @@ title: "Demo homepage"
 subtitle: "Homer"
 logo: "assets/logo.png"
 # icon: "fas fa-skull-crossbones" Optional icon
+footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>'  # set false if you want to hide it.
 
 # Optional message
-# 
 message:
   # url: https://....
   style: "is-dark" # See https://bulma.io/documentation/components/message/#colors for styling options.
index 4bc82c1a1d8475da86ff8728ffe4ff3ffc2da29c..070656dad7fc8a2a7affa987167375ca86553470 100644 (file)
@@ -13,7 +13,7 @@
 </head>
 
 <body>
-  <div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light']">
+  <div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light', !config.footer ? 'no-footer': '']">
     <div id="bighead">
       <section class="first-line">
         <div v-cloak class="container">
     </section>
     <footer class="footer">
         <div class="container">
-          <div class="content has-text-centered">
-            <p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a
-                href="https://vuejs.org/">vuejs</a>
-              & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i
-                  class="fab fa-github-alt"></i></a></p>
+          <div class="content has-text-centered" v-if="config.footer" v-html="config.footer">
+            
           </div>
         </div>
       </footer>