How to use the nextein/posts function in nextein

To help you get started, we’ve selected a few nextein 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 elmasse / nextein-example / pages / index.js View on Github external
.map((post, idx) => )
        }
      
      <section style="{styles.section}">  
        <h1>/home</h1>
        <p>{inHome.length} entries found.</p>    
        {
          inHome
          .map((post, idx) =&gt; )
        }
      </section>
    
  )
}

export default withPosts(Index)

const styles = {
  main: {    
    fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
    fontWeight: 100,
    display: 'flex',
    flexDirection: 'column'
  },
  section: {
    display: 'flex',
    flexDirection: 'column',
    alignSelf: 'center',
    width: '60vw' 
  },
  navigation: {
    position: 'absolute',
github elmasse / nextein-example / pages / tags.js View on Github external
const inTag = posts.filter(containsTag(tag))

              return (
                <div>
                  <h1>{tag}</h1>
                  { inTag.map((post, idx) =&gt; ())}
                </div>
              )
            })
        }
      
    
  )
}

export default withPosts(Index)

const styles = {
  main: {
    fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
    fontWeight: 100,
    display: 'flex',
    flexDirection: 'column'
  },
  section: {
    display: 'flex',
    flexDirection: 'column',
    alignSelf: 'center',
    width: '60vw'
  },
  navigation: {
    position: 'absolute',
github elmasse / nextein-example / pages / all-posts.js View on Github external
return (
    <main style="{styles.main}">
      
      
      <section style="{styles.section}">  
        {
          posts
          .map((post, idx) =&gt; )
        }
      </section>
    </main>
  )
}

export default withPosts(Index)

const styles = {
  main: {    
    fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
    fontWeight: 100,
    display: 'flex',
    flexDirection: 'column'
  },
  section: {
    display: 'flex',
    flexDirection: 'column',
    alignSelf: 'center',
    width: '60vw' 
  },
  navigation: {
    position: 'absolute',
github elmasse / nextein-starter / pages / index.js View on Github external
{author &amp;&amp; `Written by ${author.name}`}
                  {author &amp;&amp; source &amp;&amp; ` ${String.fromCharCode(183)} `}
                  {source &amp;&amp; `From ${source.name}`}
                  <p></p>
                
                <content>
              
            )
          })}
        
      
    )
  }
}

export default withPosts(Index)
</content>

nextein

A static site and blog generator based on Next.js

ISC
Latest version published 1 year ago

Package Health Score

48 / 100
Full package analysis