How to use the config.config.siteTitle function in config

To help you get started, we’ve selected a few config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iamdustan / react-hardware / docs / pages / _template.jsx View on Github external
render: function() {
    const docsActive = includes(this.props.location.pathname, '/docs/');
    const supportActive = includes(this.props.location.pathname, '/support/');
    const examplesActive = includes(this.props.location.pathname, '/examples/');

    return (
      <div>
        <div style="{{background:">
          
            
              {/* Ugly hack. How better to constrain height of div?*/}
              <span style="{{height:">
                
                  {config.siteTitle}
                
              </span>
              <span>
                <a href="https://github.com/iamdustan/react-hardware" style="{{float:">
                  Github
                </a>
                
                  Docs
                
                
                  Support
                
                
                  Examples
                
              </span></div></div>
github SpencerCDixon / blog / wrappers / md.js View on Github external
render() {
    const post = this.props.route.page.data;
    const { title, description, tags } = post;
    const finalTags = tags ? tags.split(',') : [];
    const buttonText = this.state.isShowingComments
      ? 'Hide Comments'
      : 'Show Comments';

    return (
      <div>
        
</div>
github tadeuzagallo / blog / html.js View on Github external
render() {
        const {body, routes, location } = this.props
        const route = routes &amp;&amp; routes[routes.length - 1];
        const data = routes ? route.page.data : {};

        const root = config.siteUrl;
        const title = data.title || config.siteTitle;
        const description = data.description || config.siteDescr;
        const url = root + (location ? location.pathname : prefixLink('/'));


        let css = '';
        let image = root + logo;
        if (process.env.NODE_ENV === 'production') {
            css =
github tinacms / tina-starter-grande / wrappers / toml.js View on Github external
render () {
    const data = this.props.route.page.data
    return (
      <div>
        
        <h1>{data.title}</h1>
        <p>Raw view of toml file</p>
        <pre>      </pre></div>
    )
  },
})
github reactiflux / reactiflux.com / wrappers / md.js View on Github external
);
    });
    const Markdown = isTranscripts ? (
      
    ) : (
      
    );

    return (
      
        
        {post.title}
        {isTranscripts &amp;&amp; (
          
        )}
        {isLearning &amp;&amp; (
          
        )}
github tinacms / tina-starter-grande / wrappers / json.js View on Github external
render () {
    const data = this.props.route.page.data
    return (
      <div>
        
        <h1>{data.title}</h1>
        <p>Raw view of json file</p>
        <pre>      </pre></div>
    )
  },
})
github kylegach / kylegach_com / pages / index.js View on Github external
render () {
    const { route } = this.props

    return (
      <div>

        
          <div>
        
        <main role="main">

          
            
          

          </main></div></div>
github spb-frontend / spb-frontend.ru / wrappers / json.js View on Github external
render() {
    const data = this.props.route.page.data
    return (
      <div>
        
        <h1>{data.title}</h1>
        <p>Raw view of json file</p>
        <pre>      </pre></div>
    )
  },
})
github tinacms / tina-starter-grande / wrappers / html.js View on Github external
render () {
    const page = this.props.route.page.data
    return (
      <div>
        
        <div>
      </div>
    )
  },
})</div>