Giter Club home page Giter Club logo

koser.us-metalsmith's People

Contributors

briankoser avatar

Stargazers

 avatar

Watchers

 avatar  avatar

koser.us-metalsmith's Issues

Gulp for applicable items

  • Copy recipe text files from Dropbox to recipes data folder
  • If dev, local server and live reload
  • If prod, push build to server

Make it easier to link to headings

https://github.com/Automattic/jquery-anchorify

From [Emmet}(http://docs.emmet.io/) CSS:

<h2><a name="elements" href="#elements" class="anchor"></a>Elements</h2>

.anchor {
    color: inherit;
    display: inline-block;
    margin-left: -1em;
    opacity: 0;
    position: absolute;
    width: 1em;
}

.anchor:before {
    content: '¶';
}

*:hover > .anchor,
.anchor:hover {
    opacity: 0.8;
}

Style active nav link

Something like:

{% capture location %}{{ page.url | remove_first:'/' | split:'/' | first }}{% endcapture %}
<nav><ul>
<li><a {% if location == 'about' %}class="active" {% endif %}href="/about/">About</a></li>
<li><a {% if location == 'projects' %}class="active" {% endif %}href="/projects/">Projects</a></li>
<li><a {% if location == 'blog' %}class="active" {% endif %}href="/blog/">Blog</a></li>
<li><a {% if location == 'contact' %}class="active" {% endif %}href="/contact/">Contact</a></li>

Add .active-link to CSS:

a:hover,
    .active-link {
        -webkit-transition: border-bottom-width 300ms cubic-bezier(1, 0, 0, 1);
                transition: border-bottom-width 300ms cubic-bezier(1, 0, 0, 1);
        border-bottom: solid 3px #006b9f;
    }

abbr

  • Markup abbreviations/initialisms/acronyms with <abbr>.
  • Write a Metalsmith plugin to apply a small-caps class to <abbr>s with 3+ letters, as well as: ad, bc, am, and pm.
$(document).ready(function() {
            var convertToSmallCaps = ['am', 'pm', 'ad', 'bc'];

            $('abbr').each(function() {
                var abbr = $(this);
                var text = abbr.text().toLowerCase();

                if(text.length >= 3 || $.inArray(text, convertToSmallCaps) > -1)
                {
                    abbr.addClass('small-caps');
                }
            });

Link styles

text-shadow: .03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff;
background-image: -webkit-linear-gradient(#333,#333);
background-image: linear-gradient(#333,#333);
background-size: 1px 1px;
background-repeat: repeat-x;
background-position: 0 85%;
color: #333;
text-decoration: none;

kbd

Use <kbd> according to the spec:

  • <kbd>user input</kbd>
  • <kbd><kbd>specific key</kbd></kbd>
  • <kbd><kbd>first key in combination</kbd> + <kbd>second key in combination</kbd></kbd>
  • <kbd><samp>menu item</samp></kbd>

Thumbnail images

Add <meta name="thumbail" content="my_image_link.jpg" /> to head to get thumbnails for social media and search results

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.