Git Product home page Git Product logo

clean-blog-textpattern's People

Contributors

brahm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clean-blog-textpattern's Issues

Error Handling for Post_Description Custom Field

Note: This field was not mentioned in the documentation.

clean_head line 10

Line 10

Current:

<txp:if_individual_article>
    <meta name="description" content="<txp:custom_field name="Post_Description" />" />
</txp:if_individual_article>

Suggestion:

  <txp:if_individual_article>
    <txp:if_custom_field name="Post_Description">
        <meta name="description" content="<txp:custom_field name="Post_Description" />" />
    </txp:if_custom_field>
  </txp:if_individual_article>

Article excerpt does not display on page single

page single line 20:

<h2 class="subheading"><txp:excerpt /></h2>

Unfortunately, this generates an error:

Textpattern Notice: Article tags cannot be used outside an article context.

To correct it, I made a new form called clean_excerpt:

<txp:excerpt />

and replaced the code on line 20 with:

<h2 class="subheading"><txp:article form="clean_excerpt" limit="1" /></h2>

Static Comment Date in comments

Line 10

Current:

 <time datetime="2016-04-14T23:18:22+00:00">April 14, 2016 at 11:18 pm</time>

Suggestion:

<time datetime="<txp:comment_time format="%FT%H:%M:%S+00:00" />"><txp:comment_time format="%B %e, %Y" /> at <txp:comment_time format="%H:%M %p" /></time>

incorrect form action in comment_form

Line 11

Current:

<form action="http://job.brahm.com.br/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate>

Suggestion:

<form action="<txp:permlink />#cpreview" method="post" id="commentform" class="comment-form" novalidate>

Default if Article BG Custom Field has not been set

default Line 31

Current:

 <header class="intro-header" style="background-image: url('<txp:custom_field name="Article BG" />')">

Suggestion:

<txp:if_custom_field name="Article BG">
    <header class="intro-header" style="background-image: url('<txp:custom_field name="Article BG" />')">
<txp:else />
    <header class="intro-header" style="background-image: url('<txp:site_url />assets/img/home-bg.jpg')">
</txp:if_custom_field>

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.