Giter Site home page Giter Site logo

ayaxxchanz / simplebloggertemplate Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 3.0 1.46 MB

Simple Custom is a template that is aimed for fast page load, simple and minimalistic design that can list many blog posts title in one page. Inspired by torrent websites template, customized from Blogger default template.

Home Page: https://simplecustomv3.blogspot.com/

blogger-template blogger blogspot blogspot-template

simplebloggertemplate's Introduction

Github Releases (by Release) Donate

Simple Blogger Template

A simple template inspired by torrent sites customized from Blogger's default template.

Demo

V3: https://simplecustomv3.blogspot.com/

Feature

  • Simple and minimalist
  • Fast loading
  • List many blog post in homepage
  • Toggle dark mode

Cons

  • Messy code
  • May contain error but will be improved from time to time

Installation

Blogger > Theme > Restore > Upload .xml file

Important notes

  • Make sure to choose Theme > Choose Mobile Theme > Desktop
  • Change date format and number of post in Layout > Blog Posts > Edit
  • Change navigation link in Theme > Edit HTML
  • Change JST (Japan Standard Time) in the template to the timezone you use for your blog
  • Use class="btn" and id="download" to display download button.

Example: <a class="btn" id="download" href="#">Download</a>

  • The download button on the homepage will open the link inside a post that has id="download" in the same tab. I want to make it open in a new tab, but most browsers will mark it as untrusted event and block it from opening. So the best way if you want to use this is, use a direct download link in the post. This is because even when the link is open in the same tab, it will just automatically download the file instead of redirecting visitor to other page. If you want to remove the download button on the homepage, just remove this in the template:

<span class='home-dl'><a expr:href='data:post.link ? data:post.link : data:post.url + &quot;#download&quot; '><i class='fas fa-download fa-sm' style='float: right;font-size:16px;'/></a></span>

<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <script>
  $( document ).ready(function() {
      if ( document.location.href.indexOf(&#39;#download&#39;) &gt; -1 ) {
          window.open(document.getElementById(&quot;download&quot;).href, &quot;_self&quot;);
      }else{return false;}
  });
  </script>
</b:if>
  • There is 2 versions of table. Choose which one you like

    • Version 1
      Instruction: None. You don't need to do anything to use it
      alt text

    • Version 2
      Instruction: Add class table-responsive to table tag and data-label="TH-NAME" in table data tag (Replace TH-NAME with your table heading text). This is for VERTICAL TABLE ONLY
      Example:

    <table class="table-responsive">
      <thead><th scope="col">TABLE HEADING</th></thead>
      <tbody>
        <tr>
          <td data-label="TABLE HEADING">Table data</td>
        </tr>
      </tbody>
    </table>
    

    alt text

  • To embed YouTube video, copy embed code and paste inside <div class="video"></div>.
    Example:

    <div class="video">
      <embed code>
    </div>
    
  • You can insert ad at the bottom of each post by replacing the code inside <div class='banner-f'> and <div class='square-f'> tag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.