public function frontmatter($var = null)
    {

        if ($var) {
            $this->frontmatter = (string)$var;

            // Update also file object.
            $file = $this->file();
            if ($file) {
                $file->frontmatter((string)$var);
            }

            // Force content re-processing.
            $this->id(time() . md5($this->filePath()));
        }
        if (!$this->frontmatter) {
            $this->header();
        }

        return $this->frontmatter;
    }
public function frontmatter($var = null)
    {

        if ($var) {
            $this->frontmatter = (string)$var;

            // Update also file object.
            $file = $this->file();
            if ($file) {
                $file->frontmatter((string)$var);
            }

            // Force content re-processing.
            $this->id(time() . md5($this->filePath()));
        }
        if (!$this->frontmatter) {
            $this->header();
        }

        return $this->frontmatter;
    }
public function frontmatter ( $ var = null ) { if ( $ var ) { $ this -> frontmatter = ( string ) $ var ; // Update also file object. $ file = $ this -> file ( ) ; if ( $ file ) { $ file -> frontmatter ( ( string ) $ var ) ; } // Force content re-processing. $ this -> id ( time ( ) . md5 ( $ this -> filePath ( ) ) ) ; } if ( ! $ this -> frontmatter ) { $ this -> header ( ) ; } return $ this -> frontmatter ; }
Gets and Sets the page frontmatter

@param string|null $var

@return string
Gets and Sets the page frontmatter