meta_data.go 619 B

1234567891011121314151617181920212223242526272829303132
  1. package fetdata
  2. import (
  3. "golang-fave/utils"
  4. )
  5. func (this *FERData) MetaTitle() string {
  6. if this.dataRow != nil {
  7. if this.wrap.CurrModule == "index" {
  8. return this.dataRow.(*utils.MySql_page).A_meta_title
  9. }
  10. }
  11. return ""
  12. }
  13. func (this *FERData) MetaKeywords() string {
  14. if this.dataRow != nil {
  15. if this.wrap.CurrModule == "index" {
  16. return this.dataRow.(*utils.MySql_page).A_meta_keywords
  17. }
  18. }
  19. return ""
  20. }
  21. func (this *FERData) MetaDescription() string {
  22. if this.dataRow != nil {
  23. if this.wrap.CurrModule == "index" {
  24. return this.dataRow.(*utils.MySql_page).A_meta_description
  25. }
  26. }
  27. return ""
  28. }